#2326: Using SpellerPages/aspell causing odd behavior
---------------------------------+------------------------------------------
  Reporter:  auralvance          |       Owner:                 
      Type:  Bug                 |      Status:  new            
  Priority:  Normal              |   Milestone:  FCKeditor 2.6.4
 Component:  UI : Spell Checker  |     Version:  FCKeditor 2.6.2
Resolution:                      |    Keywords:                 
---------------------------------+------------------------------------------
Changes (by MarkWB):

  * milestone:  => FCKeditor 2.6.4


Comment:

 Problems here are caused by the client side searching for misspelled words
 in places the server discards for spell checking. Misspelled words the
 server returns will never be located within a tag.

 Attached are two versions of only the writeBody() function of
 'wordWindow.js'. Either version should fix the problems of this ticket.

 'writebody0.js' is hack on original script that'll fix wrong rendering and
 wrong word sequence alignment as illustrated here. It does this by
 skipping over tags as it looks for misspelled words. This additionally
 discards words it can't find, which will fix most unfound word cases, but
 not truly handle ALL possible cases if any words can't be found. I'm
 unaware of any case when this won't find words returned by Aspell; but if
 it doesn't, the original script in all (unknown to me) cases will
 certainly do as line 164 says it will:
 {{{
         // word not found? messed up!
 }}}
 'writebody1.js' is a redesign of logic that 'should' always for all cases
 be able to handle unfound words by omitting only those words, and also
 only looks between tags for words. I needed this for my own server side
 implementation that uses pspell of php for which unfound words (those
 containing html markup) are certainly a possibility.

 (Note that both versions here also include the suggestion of ticket #2470)

 I hope this helps.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2326#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to