Having just migrated from Drupal 6, I am now considering how best to embed images into the node body field. Entity embed or Insert modules seem to be the obvious choice. I'd be grateful for views on the following:

  1. Is there a "better" module/way to insert images into node body than those two?
  2. Assuming there isn't, which of the two approaches is more likely to be supported in future Drupal versions?

The way I used to embed images in D6 is no longer supported and I would like to avoid having to do another complicated migration in a few years because I chose a path that isn't aligned with the general direction of Drupal development.

Comments

vm’s picture

IMO - the drupal media team is handing the media integration into core so I'd stay with features coming of out that group if it fits in your feature set. That said, anything/everything can always change.

Anonymous’s picture

Thank you for your response. That's a good point, I hadn't realised that Entity Embed is developed by the Drupal Media team!

mortona2k’s picture

The default wysiwyg image button will upload an image file and embed it with an <img> tag.

Entity Embed gives you a configurable wysiwyg button to add or select an entity to embed. If you want to use this for images, set up an embed button for image media type. This is my go-to method.

Insert can do what entity embed does, but it needs an existing entity reference field. IMO the UX is not as good as using entity embed's wysiwyg button. However I would choose this if I needed the reference field for other reasons and still wanted the ability to embed content.

The other Andrew Morton

Anonymous’s picture

Thank you very much for your comments. I had already gone with Entity Embed due to other feedback I have had, but it's good to hear that it matches with the approach others are taking!