There is an issue when trying to use readonly mode with inline mode. Normally if using readonly mode, contenteditable would not be set on the tinymce element.
The following code does not take that into account setting contenteditable=true even if readonly is set.
function toggleDisable(disabled) {
if (disabled) {
ensureInstance();
if (tinyInstance) {
tinyInstance.getBody().setAttribute('contenteditable', false);
}
} else {
ensureInstance();
if (tinyInstance) {
tinyInstance.getBody().setAttribute('contenteditable', true);
}
}
}
There is an issue when trying to use readonly mode with inline mode. Normally if using readonly mode, contenteditable would not be set on the tinymce element.
The following code does not take that into account setting contenteditable=true even if readonly is set.