-
I am trying to find a way to disable and enable all editors on one page on click. It seems that it can not be done by class or disabling textareas. Using unique ids will not work with universal function. Any advice would be appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
ketna11
Dec 12, 2022
Replies: 1 comment
-
Found it:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ketna11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found it:
Object.keys(Jodit.instances).forEach(function (id) {
Jodit.instances[id].setReadOnly(true);
});