Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-13T10:23:16.227Z
Answers.Text: 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.
Answers.UserDisplayName: Michal
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-13T17:43:48.670Z
Answers.Text: 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.
Answers.UserDisplayName: SamC
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T18:37:04.207Z
Answers.Text: But I'm not looking for the HTML source button, I'm missing the "insert image from URL" button.
Answers.UserDisplayName: Michal
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T20:15:52.267Z
Answers.Text: 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.
Answers.UserDisplayName: SamC
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T20:18:51.510Z
Answers.Text: 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.
Answers.UserDisplayName: SamC
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-09T21:42:42.287Z
Answers.LastActivityDate: 2020-01-13T17:38:20.427Z
Answers.LastEditDate: 2020-01-13T17:38:20.427Z
Answers.UserDisplayName: SamC
Body: <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>
  
Tags: <craft3>
Title: Craft CMS 3 Rich Text Editor
ThreadText: # 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.  
  
  ---
  
  