Disabling a tinyMCE Editor using javascript

158 Views Asked by At

I have a form that has a tinyMCE editor on its textarea.
I post form content using Ajax.
I need to disable editor and its textarea (disabling I mean and not removing it) while Ajax code is working.
How can do it?

Thanks

1

There are 1 best solutions below

0
On

For this use case you will need to apply the class mceButtonDisabled to the a-element of your button. Tinymce will then take care of the greying-out.