Question: How to render a media entity in the WYSIWYG using Entity Embed module?
I have installed the following modules:
- Media Entity
- Video Embed Field
- Video Embed Media (which was bundled w/ Video Embed Field)
- Colorbox
- Entity Embed
I created a new media bundle with the Type provider of Video Embed Field - and called it "YouTube". I set this field to use YouTube videos. I modified the display of the Media bundle to only show the video as Colorbox. I added some content and confirmed that the Media was showing the thumbnail and when clicked on launched the Colorbox modal.
I now wanted to embed the entity into the Basic page's WYSIWYG. To do that I:
- Went to Configuration > Content Authoring > Text Editor Embed Buttons.
- Clicked the Add embed button
- Gave it a label and selected Entity under Embed type
- Under Entity type I selected Media
- Under Media bundle I selected the "YouTube" bundle I created
- I checked all of the Allowed Entity Embed Display plugins
Now that the button was created, I needed to add it to the WYSIWYG:
- I went to Configuration > Content Authoring > Text formats and editors
- I clicked configure button beside Full HTML
- I dragged my new Entity Embed button into the WYSIWYG
- I checked the box for Display embedded entities
- I made sure that Limit allowed HTML tags and correct faulty HTML was NOT checked
I then added a new basic page of content, clicked the new Entity Embed button and searched/selected the media entity YouTube video I created. At this point I could only get the Media ID to embed into the WYSIWYG. There was no display option to simply render the media in the WYSIWYG.
How can I render the media entity in the WYSIWYG?