[wp-trac] [WordPress Trac] #10515: TinyMCE spellchecker markup disappears during auto-save

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 29 17:16:27 UTC 2009


#10515: TinyMCE spellchecker markup disappears during auto-save
--------------------------+-------------------------------------------------
 Reporter:  rsmudge       |       Owner:  AO        
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 The WordPress spell checker strips the spellchecker markup during an auto-
 save event.

 How to reproduce?

 1. Type: "I can't spel, AO plz help." into the WordPress Visual Editor
 2. Click the spellcheck button.
 3. Wait for the auto-save.

 What happened?

 On auto-save the before get content event is fired and the spellchecker
 removes the markup for the misspelled words.

 http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.Editor/onBeforeGetContent

 This is the only good client side time for the spellchecker to strip its
 markup from a post.  A possible work around is to do the stripping on the
 server side but this is extremely error prone.

 Suggested fix:

 Consider updating TinyMCE to pass a why parameter to onBeforeGetContent or
 at least setting some property readable editor propery before auto-save
 and unsetting it afterwards.  This will allow plugins that choose to look
 at these values to not strip their markup during an auto-save event.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10515>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list