#1355: Converting <p> to <pre> may add additional line breaks
----------------------+-----------------------------------------------------
Reporter: fredck | Owner: martinkou
Type: Bug | Status: assigned
Priority: Normal | Milestone: FCKeditor 2.6
Component: General | Version: SVN
Resolution: | Keywords: Review-
----------------------+-----------------------------------------------------
Comment (by martinkou):
The regex method sounds simple in theory, unfortunately it seems to
trigger a nasty Firefox bug which causes JavaScript error in the
range.SelectBookmark() function.
After we modified the <pre> node by assigning innerHTML instead of by DOM
tree operations, the bookmark nodes inside the <pre> block can still be
retrieved by document.getElementId() in range.SelectBookmark(), which is
correct. However, the bookmark nodes retrieved this way would then have a
null parentNode property, which does not make sense. That caused the
SelectBookmark() function to throw JavaScript errors.
This is very unfortunate, I'm trying to see if a workaround can be
created.
--
Ticket URL: <http://dev.fckeditor.net/ticket/1355#comment:4>
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