TinyMCE spellchecker markup disappears during auto-save
|Reported by:||rsmudge||Owned by:||AO|
The WordPress spell checker strips the spellchecker markup during an auto-save event.
How to reproduce?
- Type: "I can't spel, AO plz help." into the WordPress Visual Editor
- Click the spellcheck button.
- Wait for the auto-save.
On auto-save the before get content event is fired and the spellchecker removes the markup for the misspelled words.
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.
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.
Change History (5)
- Component changed from General to TinyMCE
- Keywords upstream added
- Milestone changed from Unassigned to Future Release
- Version set to 2.9