<p>You can do it with <a href="https://plugins.craftcms.com/redactor" rel="nofollow noreferrer">Redactor</a>. </p>

<p>You can configure your toolbar to have a view HTML button. </p>

<p>Also, a caveat, Redactor has an html-purifier function, which will eat some bits of code in the name of making it "clean." But that's relatively easy to configure as well. Just make sure to look at the <a href="https://github.com/craftcms/redactor#configuration" rel="nofollow noreferrer">plugin documentation</a>.</p>

CC BY-SA 4.0
2020-01-13T10:23:16.227Z
I cannot see any way how to configure the toolbar to include an "insert image by URL" button. The only way I see to add such image is in the source code which is note suitable for regular CMS users.
Michal
CC BY-SA 4.0
2020-01-13T17:43:48.670Z
Look at this bit of their github instructions - https://github.com/craftcms/redactor#configuration - Basically, you create different toolbars in a redactor config file, and then when you're making a field in craft, you say field type = redactor. redactor settings = standard, etc. Try copying the `Standard.json` file they have in this example, as it's got the HTML button that you want.
SamC
CC BY-SA 4.0
2020-01-14T18:37:04.207Z
But I'm not looking for the HTML source button, I'm missing the "insert image from URL" button.
Michal
CC BY-SA 4.0
2020-01-14T20:15:52.267Z
AH. I assumed you'd just look at the html and type in `<img src="outside-img-url">` to point at your image. Doesn't look like the redactor will let you add such a button (add external image) without writing a plugin. so, maybe that's not the plugin for you.
SamC
CC BY-SA 4.0
2020-01-14T20:18:51.510Z
FWIW, when I make content areas for articles/long-text, I do a matrix field w/ different layout blocks. (full width text; text left, image right; full width image; etc) Then it's a bunch of blocks, each formatted nicely. And an external image field could just be a text field (or URL field) where you copy and paste in your image link. And then you could wrap it in whatever html you needed, and even check if the image was valid. It's more complex, but it's also more control.
SamC
CC BY-SA 4.0
2020-01-09T21:42:42.287Z
2020-01-13T17:38:20.427Z
2020-01-13T17:38:20.427Z
SamC
<p>Is there a rich text editor for Craft CMS which supports both HTML source code edit as well as adding images by URL (not uploading to assets)?</p>

<craft3>
Craft CMS 3 Rich Text Editor
# Craft CMS 3 Rich Text Editor

(Asked by: username_0 on 2020-01-02)

Is there a rich text editor for Craft CMS which supports both HTML source code edit as well as adding images by URL (not uploading to assets)?

**Tags:** craft3


---

## 1 answers

### Answer by username_1 on 2020-01-09. Score: 3

You can do it with [Redactor](https://plugins.craftcms.com/redactor).

You can configure your toolbar to have a view HTML button.

Also, a caveat, Redactor has an html-purifier function, which will eat some bits of code in the name of making it "clean." But that's relatively easy to configure as well. Just make sure to look at the [plugin documentation](https://github.com/craftcms/redactor#configuration).

> **Comments:**
> **username_0**: I cannot see any way how to configure the toolbar to include an "insert image by URL" button. The only way I see to add such image is in the source code which is note suitable for regular CMS users.  
> **username_1**: Look at this bit of their github instructions - https://github.com/craftcms/redactor#configuration - Basically, you create different toolbars in a redactor config file, and then when you're making a field in craft, you say field type = redactor. redactor settings = standard, etc. Try copying the `Standard.json` file they have in this example, as it's got the HTML button that you want.  
> **username_0**: But I'm not looking for the HTML source button, I'm missing the "insert image from URL" button.  
> **username_1**: AH. I assumed you'd just look at the html and type in `<img src="outside-img-url">` to point at your image. Doesn't look like the redactor will let you add such a button (add external image) without writing a plugin. so, maybe that's not the plugin for you.  
> **username_1**: FWIW, when I make content areas for articles/long-text, I do a matrix field w/ different layout blocks. (full width text; text left, image right; full width image; etc) Then it's a bunch of blocks, each formatted nicely. And an external image field could just be a text field (or URL field) where you copy and paste in your image link. And then you could wrap it in whatever html you needed, and even check if the image was valid. It's more complex, but it's also more control.  

---

