#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 fredck):

 Replying to [comment:4 martinkou]:
 > 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.

 Be sure that bookmark.StartNode and bookmark.EndNode are null before
 calling range.SelectBookmark(). The node could have been cached in the
 bookmark for performance.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1355#comment:7>
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

Reply via email to