Answers.Body: <p>This is the solution</p>
  
  <pre><code>$('.CodeMirror &gt; div &gt; textarea').attr('readonly','readonly');
  </code></pre>
  
  <p>in init{} redactor calback</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-27T12:32:46.657Z
Answers.LastActivityDate: 2017-02-27T12:32:46.657Z
Answers.UserDisplayName: Carlos Vieira
Body: <p>I have redactor with plugin code mirror installed
  however i want to put code mirror read only.</p>
  
  <p>How can i do that the read only?
  Thanks in advance.
  Carlos Vieira</p>
  
Tags: <redactor>
Title: Redactor plugin Code Mirror read only
ThreadText: # Redactor plugin Code Mirror read only
  
  (Asked by: username_0 on 2017-02-27)
  
  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.
  username_0 username_0
  
  **Tags:** redactor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-02-27. Score: 1
  
  This is the solution
  
  ```
  $('.CodeMirror > div > textarea').attr('readonly','readonly');
  
  ```
  
  in init{} redactor calback
  
  
  ---
  
  