Answers.Body: <p>Sounds like you are coming from something like WordPress. In Craft there are asset fields where you can relate assets to your text. Together with matrix fields you can create a powerful layout rather than inserting everything into one huge wysiwyg.</p>
  
  <p>If you really want to fetch images in html editors you'll need a plugin for that. It's not possible in Craft per default because it's not really the intended way </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-28T09:18:52.210Z
Answers.Text: I'm just migrating from Wordpress. In fact, we spoke before, you helped me with displaying some images on my site. The posts I am migrating have their images within a rich text field, instead of in the featured image field. I guess I need a way to migrate my image from the rich text field in Wordpress into the asset field for Craft. Have you ever done this before?
Answers.UserDisplayName: timbutcher
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-28T09:23:11.657Z
Answers.Text: Ah now I remember.. Well as I said before, forget everything you know about WordPress - you should not use Craft the way WordPress is used. Why do you even want to access images in html editors? Maybe you can do something with reg ex but if you just want to use wp methods you should drop your idea in the client's sake
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-27T13:16:23.007Z
Answers.LastActivityDate: 2018-01-28T00:37:41.470Z
Answers.LastEditDate: 2018-01-28T00:37:41.470Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I need to reference an image in a rich text field separately to the text. </p>
  
  <p>So I can't just use {{entry.body}} I need to be able to do {{entry.body.image}} or something comparable. </p>
  
  <p>How can I do something like this?</p>
  
  <p>Hopefully my question makes sense, I am new to Craft.</p>
  
  <p>Thanks!</p>
  
Tags: <templating><image><richtext>
Title: How can I reference images in a rich text field?
ThreadText: # How can I reference images in a rich text field?
  
  (Asked by: username_0 on 2018-01-27)
  
  I need to reference an image in a rich text field separately to the text.
  
  So I can't just use {{entry.body}} I need to be able to do {{entry.body.image}} or something comparable.
  
  How can I do something like this?
  
  Hopefully my question makes sense, I am new to Craft.
  
  Thanks!
  
  **Tags:** templating, image, richtext
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-01-27. Score: 1
  
  Sounds like you are coming from something like WordPress. In Craft there are asset fields where you can relate assets to your text. Together with matrix fields you can create a powerful layout rather than inserting everything into one huge wysiwyg.
  
  If you really want to fetch images in html editors you'll need a plugin for that. It's not possible in Craft per default because it's not really the intended way
  
  > **Comments:**
  > **username_0**: I'm just migrating from Wordpress. In fact, we spoke before, you helped me with displaying some images on my site. The posts I am migrating have their images within a rich text field, instead of in the featured image field. I guess I need a way to migrate my image from the rich text field in Wordpress into the asset field for Craft. Have you ever done this before?  
  > **username_1**: Ah now I remember.. Well as I said before, forget everything you know about WordPress - you should not use Craft the way WordPress is used. Why do you even want to access images in html editors? Maybe you can do something with reg ex but if you just want to use wp methods you should drop your idea in the client's sake  
  
  ---
  
  