#1717: Table inside of Div producing unresponsive script
----------------------------+-----------------------------------------------
Reporter: mattleff | Owner: fredck
Type: Bug | Status: new
Priority: High | Milestone: FCKeditor 2.6
Component: Core : Styles | Version: SVN
Resolution: | Keywords: Confirmed
----------------------------+-----------------------------------------------
Changes (by fredck):
* owner: martinkou => fredck
* status: assigned => new
Comment:
I'm proposing a patch to it. The idea is quite simple. If we find a block
boundary, which stops the range expansion, potentially splitting the
block, that block is now forced to be the next one to be processed when
calling GetNextParagraph again, no matter what happens when splitting.
I'm not calling this one for review because there is still a chance for
enhancement. The problems is that the function will still return a block
containing only "<span> </span>", which has no value. So, one enhancement
to it would be forcing the function to ignore such "visually empty
blocks", so the final output would be just like this:
{{{
<div><span class="text">
<table>
<tbody>
<tr>
<td style="text-align: center;">test</td>
</tr>
</tbody>
</table>
</span></div>
}}}
Martin has proposed something similar. But for that, we could introduce
Range.CheckIsVisuallyEmpty(), that would work is some ways similarly to
CheckStartOfBlock and CheckEndOfBlock. In that we can do the range check
inside the expansion loop (at line 214). I'll work on that.
--
Ticket URL: <http://dev.fckeditor.net/ticket/1717#comment:5>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac