1 | initial version |
There are two ways to make the TinyMCE textarea read-only/disabled:
// Get the editor instance
var editor = tinymce.get('mytextarea');
// Disable the editor
editor.setMode('readonly');
// Enable the editor
editor.setMode('design');
<textarea id="mytextarea" readonly></textarea>
or
<textarea id="mytextarea" disabled></textarea>
Note: the readonly attribute allows the user to view the content, but not edit it. The disabled attribute prevents the user from interacting with the textarea at all.