1

Topic: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

Hi,
I have tabs in ajax (removing and adding textarea), and mceRemoveControl and mceAddControl isn't in tinymce 4.
How to re-activate the editor in tinymce 4?

Thx.

Last edited by algodata (2013-06-13 17:32:07)

2

Re: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

Use mceRemoveEditor/mceAddEditor.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

they do not exist for tinymce version 4.

4

Re: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

Got removed in the cleanup. Use mceRemoveEditor/mceAddEditor exactly the same commands.

Best regards,
Spocke - Main developer of TinyMCE

5

Re: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

Sorry I didn't see the changing.
Thx, it works:)

6

Re: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

I tried mceAddEditor and it works but loads default tinymce settings and not the ones that have been setup for other existing tinymce textareas.

FYI, I am using the jquery version of tinymce.

Any help on this will be highly appreciated

Kind Regards,
Pratik

7

Re: [Resolved] mceRemoveControl and mceAddControl in tinymce 4

I am having the same problem as pratik.thakkar.

i use this line to remove an editor:
tinymce.EditorManager.execCommand('mceRemoveEditor', false, "#reply_text");

i then use this line to re-add an editor:
tinymce.EditorManager.execCommand('mceAddEditor', false, "#reply_text");

but the added editor is broken (cannot accept focus, cannot accept typed characters) and also is blank white (ignoring my css configuration).  Does anyone know what might be causing this?

Last edited by vecima (2014-04-27 21:08:57)