John Magnolia John Magnolia - 1 year ago 63
Javascript Question

Tinymce auto set readonly if the textarea has readonly

How would I set tinymce to automatically set the editor as readonly if the

already has the

Answer Source

A more general solution might be

    setup: function(ed) {
            ed.settings.readonly = true;

This will work for all textareas without you having to specify any ids. In addition it will actually set the editor to readonly mode, and not only prevent editing.