I have redactor with plugin code mirror installed however i want to put code mirror read only.

How can i do that the read only? Thanks in advance. Carlos Vieira


This is the solution

$('.CodeMirror > div > textarea').attr('readonly','readonly');

in init{} redactor calback

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.