Answers.Body: <p>I don’t think it’s possible at all and what’s the benefit of using a WYSIWYG field at all when you don’t use any of the features.</p>
  
  <p>I’d rather use a plain text field or even better, a field type which is optimized for code editing like the Simple Text field type.</p>
  
  <p><a href="https://github.com/craftcms/simple-text/tree/v1" rel="nofollow noreferrer">https://github.com/craftcms/simple-text/tree/v1</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-05T14:23:56.993Z
Answers.Text: Great plugin recommendation! The reason for not using a plain text field was to make the code more readable. But this plugin does that!
Answers.UserDisplayName: bravokiloecho
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-05T14:21:36.373Z
Answers.LastActivityDate: 2017-10-05T14:21:36.373Z
Answers.UserDisplayName: carlcs
Body: <p>Is there a way to make a Rich Text field using Redactor, to only display and allow input in the HTML view?</p>
  
  <p>The first step I tried was making a redactor config file that looks like this:</p>
  
  <pre><code>{
      "buttons": ["html"],
      "plugins": [],
      "toolbarFixed": false
  }
  </code></pre>
  
  <p>But the default view is still the WYSIWYG view. I want the HTML button to be toggled by default...</p>
  
  <p>Many thanks for any help!</p>
  
Tags: <redactor><richtext>
Title: Force redactor to only display HTML editor view
ThreadText: # Force redactor to only display HTML editor view
  
  (Asked by: username_0 on 2017-10-05)
  
  Is there a way to make a Rich Text field using Redactor, to only display and allow input in the HTML view?
  
  The first step I tried was making a redactor config file that looks like this:
  
  ```
  {
      "buttons": ["html"],
      "plugins": [],
      "toolbarFixed": false
  }
  
  ```
  
  But the default view is still the WYSIWYG view. I want the HTML button to be toggled by default...
  
  Many thanks for any help!
  
  **Tags:** redactor, richtext
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-10-05. Score: 1 | Accepted answer
  
  I don’t think it’s possible at all and what’s the benefit of using a WYSIWYG field at all when you don’t use any of the features.
  
  I’d rather use a plain text field or even better, a field type which is optimized for code editing like the Simple Text field type.
  
  <https://github.com/craftcms/simple-text/tree/v1>
  
  > **Comments:**
  > **username_0**: Great plugin recommendation! The reason for not using a plain text field was to make the code more readable. But this plugin does that!  
  
  ---
  
  