#3690: Selection is lost after Enable SCAYT
-----------------------+----------------------------------------------------
 Reporter:  garry.yao  |       Owner:              
     Type:  Bug        |      Status:  new         
 Priority:  Normal     |   Milestone:  CKEditor 3.0
Component:  General    |     Version:              
 Keywords:  Confirmed  |  
-----------------------+----------------------------------------------------

Comment(by garry.yao):

 The culprit here is the spell check markers is breaking the selection:
 {{{
 scayt_control.setDisabled( false ); //async
 }}}
 We need some '''callback function''' here to properly bookmark the range
 and restore it:
 {{{
 var sel = editor.getSelection(),
  bms = sel.createBookmarks();
 scayt_control.setDisabled( false , function()
 {
   // inside callback...
   sel.selectBookmarks( bms );
 });
 }}}
 Not sure if we can do this with SCAYT engine API?

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3690#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to