Oh hai
I have an ajax request, which works way:
- request starts: tinyMCE gets disabled (controls are removed)
- request ends: tinyMCE gets reinitialized because the DOM changes, so basically a new editor is instantiated.
The problem is that for 1-2 seconds I'm seeing the editor controls being removed, then added again when the ajax completes.
Is there any way I could avoid this? By removing the editor somehow in the background for example?
I tried leaving out tinyMCE.execCommand('mceRemoveControl', false, editor);
before the ajax starts, but then I can't get the editor back... Which is kind of weird because the text area gets replaced. It seems that tinyMCE stays in memory somehow or something