<p>It turns out that the latest redactor seems to now have a plugin for viewing the source. You can enable this in your redactor JSON config file under plugins. Just add the "source" plugin like so:</p>

<pre>
{
    "buttons": ["format", "bold", "italic", "lists", "image"],
    "plugins":["fullscreen", "source"],
    "toolbarFixed": true
}
</pre>

CC BY-SA 3.0
2015-12-04T20:12:36.623Z
I have two files, Simple.json, and Standard.json. All of my Rich Text fields were set to default. So I added another file in /config/redactor/Default.json with the above and this adds another Default option if I change it to the new Default it works. Is there not a way to change the default options without adding another Default option. It's going to be a pain to go through and change them all to standard as I have a lot of different matrix blocks, fields, etc.
Bowenac
CC BY-SA 3.0
2015-12-04T21:35:34.897Z
I could be wrong, but I imagine the "default" setting will use the defaults set by the redactor library. It might be worth asking this as a separate question. One thing you could try is to backup your database, then go to the craft_fields table and then do a find and replace in the settings column on the rich text fields.

They're set like this: {"configFile":"Standard.json","columnType":"text"}
A rich text field with default selected will look something like this: {"configFile":"","columnType":"text"}.

Not tried this myself but it may work.
Andy
CC BY-SA 3.0
2015-12-04T23:09:33.723Z
I already changed them all to Standard, and updated Standard.json. Just seems like an odd redactor update. Also images are now no longer able to be dragged around to resize etc. Now looking into that.
Bowenac
CC BY-SA 3.0
2015-12-04T23:54:22.763Z
Good luck! There have been a few issues with image magic and the latest update. I highly recommend joining the Craft slack channel if you haven't already. Quite a few people are having issues and sharing fixes etc due to the update.
Andy
CC BY-SA 3.0
2015-12-03T10:55:35.123Z
2015-12-03T10:55:35.123Z
Andy
<p>You need to add "html" in the <code>buttons</code> array, and not "source" in the <code>plugins</code> array.</p>

CC BY-SA 4.0
2018-12-11T15:51:49.190Z
2018-12-12T06:35:10.983Z
2018-12-12T06:35:10.983Z
Andrew Terry Loveday
<p>The "HTML" button no longer seems to show in the WYSIWYG. The button is set in the Redactor config file like so:</p>

<pre><code>{
    "buttons": ["html","formatting","bold","italic","unorderedlist","orderedlist","link","image","video"],"plugins":["fullscreen","video"],
    "toolbarFixed": true
}
</code></pre>

CC BY-SA 3.0
2015-12-03T11:07:56.830Z
https://craftcms.com/help/redactor-ii-configs
carlcs
CC BY-SA 3.0
2015-12-03T11:30:12.780Z
Wish I saw that earlier :(. I could not find any info in the Craft docs.
Andy
CC BY-SA 3.0
2015-12-03T11:35:02.797Z
Yeah, Brandon posted it on Slack. I also didn't find a link from the docs.
carlcs
<redactor><json><wysiwyg>
HTML/View Source button not working/showing in WYSIWYG Craft 2.5 / Redactor II 1.1.0
# HTML/View Source button not working/showing in WYSIWYG Craft 2.5 / Redactor II 1.1.0

(Asked by: username_0 on 2015-12-03)

The "HTML" button no longer seems to show in the WYSIWYG. The button is set in the Redactor config file like so:
{
    "buttons": ["html","formatting","bold","italic","unorderedlist","orderedlist","link","image","video"],"plugins":["fullscreen","video"],
    "toolbarFixed": true
}

**Tags:** redactor, json, wysiwyg
> **Comments:**
> **username_1**: https://craftcms.com/help/redactor-ii-configs  
> **username_0**: Wish I saw that earlier :(. I could not find any info in the Craft docs.  
> **username_1**: Yeah, Brandon posted it on Slack. I also didn't find a link from the docs.  

---

## 2 answers

### Answer by username_0 on 2015-12-03. Score: 8

It turns out that the latest redactor seems to now have a plugin for viewing the source. You can enable this in your redactor JSON config file under plugins. Just add the "source" plugin like so:

{
    "buttons": ["format", "bold", "italic", "lists", "image"],
    "plugins":["fullscreen", "source"],
    "toolbarFixed": true
}

> **Comments:**
> **username_2**: I have two files, Simple.json, and Standard.json. All of my Rich Text fields were set to default. So I added another file in /config/redactor/Default.json with the above and this adds another Default option if I change it to the new Default it works. Is there not a way to change the default options without adding another Default option. It's going to be a pain to go through and change them all to standard as I have a lot of different matrix blocks, fields, etc.  
> **username_0**: I could be wrong, but I imagine the "default" setting will use the defaults set by the redactor library. It might be worth asking this as a separate question. One thing you could try is to backup your database, then go to the craft_fields table and then do a find and replace in the settings column on the rich text fields.  They're set like this: {"configFile":"Standard.json","columnType":"text"} A rich text field with default selected will look something like this: {"configFile":"","columnType":"text"}.  Not tried this myself but it may work.  
> **username_2**: I already changed them all to Standard, and updated Standard.json. Just seems like an odd redactor update. Also images are now no longer able to be dragged around to resize etc. Now looking into that.  
> **username_0**: Good luck! There have been a few issues with image magic and the latest update. I highly recommend joining the Craft slack channel if you haven't already. Quite a few people are having issues and sharing fixes etc due to the update.  

---

### Answer by username_3 on 2018-12-11. Score: 7

You need to add "html" in the `buttons` array, and not "source" in the `plugins` array.


---

