#2071: FCK.EditorDocument.selection.createRange().text does not return selected
text
----------------------+-----------------------------------------------------
  Reporter:  ayh      |       Owner:                  
      Type:  Bug      |      Status:  new             
  Priority:  Normal   |   Milestone:                  
 Component:  General  |     Version:  FCKeditor 2.6 RC
Resolution:           |    Keywords:                  
----------------------+-----------------------------------------------------
Changes (by martinkou):

  * keywords:  selection IE =>
  * milestone:  FCKeditor 2.6 =>

Comment:

 I guess you're trying to read the selected text when a floating dialog has
 opened, am I correct?

 If yes, then FCK.EditorDocument.selection wouldn't return a selection
 object inside the editing document, but rather the selection object inside
 the floating dialog iframe. This is an IE bug in which it is limited to
 having only one selection per browser window, and that it can return a
 selection object from another iframe document even though you asked for
 document.selection.

 We've included an updated API in FCKeditor 2.6 to workaround this problem.
 Try to use FCKSelection.GetSelection() in place of
 FCK.EditorDocument.selection - it should always give you the selection
 object inside the editing iframe.

 I'm leaving this ticket for a little while in case the suggested solution
 doesn't work.

-- 
Ticket URL: <https://dev.fckeditor.net/ticket/2071#comment:3>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to