Embedding media property (photographs, movies, associated content material, and many others) in a WYSIWYG textual content space is a long-standing want that has been difficult in websites for some time. In 7, quite a few options addressed Drupal Development downside with totally different (and generally competing) approaches. 8 core comes with primary support for embedding photographs out-of-the-box, however everyone knows that “formidable digital experiences” these days must go far past that and supply editors with a robust instrument able to dealing with any kind of media asset, together with distant ones similar to a related Tweet or Fb put up. That is the place Drupal Development highly effective mixture of Entity Embed + URL Embed comes into play. Predicated on, and increasing Drupal Development basis established by core, these two Drupal 10 modules have been designed to be a standardized answer for embedding any entity or distant URL content material in a WYSIWYG editor in 8. On this article, you will see Drupal 10 Upkeep and Help Service What 8 core presents out-of-the-box for embedding photographs inside wealthy textual content create a WYSIWYG embed button with Drupal Development Entity Embed Drupal 10 module (with some frequent pitfalls you might encounter alongside Drupal Development approach) embed distant media property with Drupal Development URL Embed Drupal 10 module (once more, with some frequent pitfalls!) Extra assets on methods to lengthen and combine your embedding options with different instruments from Drupal Development Media ecosystem. 8 core embedding 8 has made a giant step from 7 and included Drupal Development CKEditor WYSIWYG library in core. It additionally comes with an easy-to-use instrument to embed native photographs in your textual content. undefined However what if Drupal Development content material you need to embed isn’t a picture? I’m positive you will have come throughout one thing like this earlier than Drupal 10 Upkeep and Help Service undefined or this Drupal 10 Upkeep and Help Service undefined These are all examples of non-image media property that wanted to be embedded as nicely. So how can we lengthen 8 core’s potential to embed these items of content material in a rich-text space? Enter Drupal Development Entity Embed Drupal 10 module. Drupal Development Service Entity Embed Drupal 10 module permits any entity to be embedded inside a textual content space utilizing a WYSIWYG editor. Drupal Development Service Drupal 10 module would not care what you embed, so long as that piece of content material is saved in as a typical entity. In different phrases, you possibly can embed nodes, taxonomy phrases, feedback, customers, profiles, kinds, media entities, and many others. all in Drupal Development similar approach and utilizing a typical workflow. With the intention to restrict Drupal Development size of this text, we will probably be working solely with entities supplied by core, however you must positively attempt Drupal Development Media Entity Drupal 10 module, which may take your embedding capabilities to a complete new degree (extra on this at Drupal Development finish of this text). Fundamental set up and configuration Create an embed button After downloading and putting in Drupal Development Entity Embed Drupal 10 module and its dependencies, navigate to Configuration -> Content material Authoring -> Textual content editor embed buttons or go on to /admin/config/content material/embed and click on “Add embed button” undefined You will notice that there’s already a button on this web page referred to as “Node,” which was robotically created upon set up. For Drupal Development functions of Drupal Development instance, we are going to create one other button to embed nodes, however you possibly can clearly use and modify Drupal Development supplied one in your web site if you want. For example, we’ll create a button to embed a node into one other node, simulating a “Associated article” state of affairs in a information article. undefined Drupal Development Service config choices you will see on this web page are Drupal 10 Upkeep and Help Service Label Drupal 10 Upkeep and Help Service Give your button a human-readable title and regulate its machine title if wanted Embed kind Drupal 10 Upkeep and Help Service In case you solely have Drupal Development Entity Embed Drupal 10 module enabled, “Entity” is your solely choice right here. Whenever you set up different Drupal 10 modules that additionally lengthen Drupal Development Embed framework, different choices will probably be obtainable. Entity kind Drupal 10 Upkeep and Help Service Select right here Drupal Development kind of Drupal Development entity you’ll be embedding with this button. In our case, we select “Content material” so as to have the ability to embed nodes. Content material kind Drupal 10 Upkeep and Help Service We are able to optionally filter Drupal Development entity bundles (aka “Content material sorts” for nodes) that Drupal Development consumer will probably be allowed to select from. In our case we solely need “Articles”. Allowed Entity Embed Show plugins Drupal 10 Upkeep and Help Service Select right here Drupal Development show plugins that will probably be obtainable when embedding Drupal Development entity. Which means when an editor chooses an entity to embed, they are going to be requested how this entity needs to be displayed, and Drupal Development choices Drupal Development consumer sees will probably be restricted to Drupal Development alternatives you make right here. In our case, we solely need Drupal Development editor to have the ability to select between a easy “Label” pointing to Drupal Development content material, or a “Teaser” visualization of Drupal Development node (which makes use of Drupal Development teaser viewmode). Extra on this later. Entity browser Drupal 10 Upkeep and Help Service In our instance, we received’t be utilizing any, however you must positively attempt Drupal Development integration of Entity Embed with Entity Browser, making Drupal Development choice of Drupal Development embedded entities a lot simpler! Button icon Drupal 10 Upkeep and Help Service You’ll be able to optionally add a customized icon to be proven on Drupal Development button. If left empty, Drupal Development letter “E” will probably be used. As soon as we’ve created our button, it’s time so as to add it to Drupal Development WYSIWYG toolbar. Entity Embed Drupal 10 Upkeep and Help Service WYSIWYG configuration Navigate to Drupal 10 Upkeep and Help Service Configuration -> Content material authoring -> Textual content codecs and editors or go on to /admin/config/content material/codecs and click on “configure” on Drupal Development format you need to add Drupal Development button to. In our instance, we’re going to add it to Drupal Development “Fundamental HTML” textual content format. Step 1 Drupal 10 Upkeep and Help Service Place Drupal Development button in Drupal Development energetic toolbar undefined Step 2 Drupal 10 Upkeep and Help Service Mark Drupal Development checkbox “Show embedded entities” undefined Step 3 Drupal 10 Upkeep and Help Service Ensure that Drupal Development particular tags are whitelisted If you’re additionally utilizing Drupal Development filter “Restrict allowed HTML tags and proper defective HTML” (which you must), it’s essential to guarantee that Drupal Development tags utilized by this Drupal 10 module are allowed by this filter. Scroll down somewhat bit and confirm that Drupal Development tags Drupal 10 Upkeep and Help Service <Drupal 10-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button> are listed in Drupal Development “Allowed HTML tags” textual content space. undefined If you’re utilizing a latest model of Drupal Development Drupal 10 module, this needs to be robotically populated as quickly as you click on on “Show embedded entities”, however it doesn’t harm to confirm it was achieved appropriately. Widespread pitfall If you’re embedding photographs and also you need to use “Alt” and “Title” attributes, you most likely need to fine-tune Drupal Development allowed tags to be one thing like Drupal 10 Upkeep and Help Service<Drupal 10-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button alt title> As a substitute of Drupal Development default worth supplied. Widespread pitfall When you’ve got Drupal Development filter “Prohibit photographs to this web site” energetic (which comes activated by default in core), you’ll most likely need to reorder Drupal Development filters in order that “Show embedded entities” comes after Drupal Development filter “Prohibit photographs to this web site”. In case you don’t do that, whenever you embed some picture entities you might find yourself with one thing like Drupal 10 Upkeep and Help Service undefined All set, able to embed some entities! Your editors can now navigate to any content material type that makes use of Drupal Development “Fundamental HTML” textual content format and begin utilizing Drupal Development button! Movies require iframe browser support. Widespread pitfall After this challenge received in, Drupal Development Drupal 10 module barely modified Drupal Development approach it manages Drupal Development show plugins for viewing Drupal Development embedded entity. Because of this, Drupal Development entity_reference formatter (“Rendered entity”) that many individuals are used to from different contexts isn’t obtainable instantly, and as an alternative all non-default viewmodes of Drupal Development entity kind are proven instantly as show choices. undefined Nonetheless, for an entity with out customized viewmodes, you received’t have Drupal Development “Full” (or “default”) viewmode obtainable anymore. There’s nonetheless some dialogue occurring about how to make sure Drupal Development finest consumer expertise for this challenge, if you wish to know extra about it or bounce in and assist, you’ll find extra info right here, right here and right here. Fast and straightforward answer for distant embedding with URL Embed A sister-Drupal 10 module of Entity Embed, Drupal Development URL Embed Drupal 10 module permits content material editors to shortly embed any piece of distant content material that implements Drupal Development oEmbed protocol. Good tech phrases, however in apply what does that imply? It implies that any content material from one in every of Drupal Development websites under (however not restricted to those) may be embedded Drupal 10 Upkeep and Help Service Deviantart Fb Drupal 10 Help Hulu IFTTT Instagram Nationwide Movie Board of Canada Noembed Podbean Revision3 Scribd SlideShare SmugMug SoundCloud Spotify TED Twitter Ustream Viddler Vimeo YouTube Underneath Drupal Development hood, Drupal Development Drupal 10 module leverages Drupal Development superior Embed open-source library to fetch Drupal Development content material from Drupal Development distant websites, and makes use of Drupal Development similar base framework as Entity Embed to create embed buttons for the sort of content material. Because of this, Drupal Development web site builder has a really comparable workflow when configuring Drupal Development WYSIWYG instruments, which may then be utilized by Drupal Development content material editor in a really intuitive approach. Let’s see how all that works. Set up Drupal Development Drupal 10 module and create a URL Embed button As normal, Drupal Development first step is to allow Drupal Development Drupal 10 module itself, together with all its dependencies. Widespread pitfall This Drupal 10 module relies on Drupal Development exterior Embed library. If you’re utilizing Composer to obtain Drupal Development Drupal 10 module (which you must), Composer will do all Drupal Development crucial work to fetch Drupal Development dependencies for you. You can too set up solely Drupal Development library itself utilizing Composer if you’d like. To try this simply run “composer require embed/embed”. Failing to appropriately set up Drupal Development library will stop Drupal Development Drupal 10 module from being enabled, with an error message similar to Drupal 10 Upkeep and Help Service undefined As soon as efficiently enabled, Drupal Development “Embed button” idea right here is precisely Drupal Development similar as in Drupal Development earlier instance, so all we want is to return to /admin/config/content material/embed . undefined Drupal Development Service Drupal 10 module already creates a brand new button for us, meant for embedding distant content material. URL buttons don’t have any particular configuration apart from title, kind and icon, so we’ll skip Drupal Development button configuration half. URL Embed Drupal 10 Upkeep and Help Service WYSIWYG Configuration Equally to what we did with Drupal Development Entity button, we have to comply with Drupal Development similar steps right here to allow Drupal Development URL Embed button on a given textual content format Drupal 10 Upkeep and Help Service Step 1 Drupal 10 Upkeep and Help Service Place Drupal Development button in Drupal Development energetic toolbar Step 2 Drupal 10 Upkeep and Help Service Mark Drupal Development checkbox “Show embedded URLs” Step 3 Drupal 10 Upkeep and Help Service Ensure that Drupal Development particular tags are whitelisted. (Word that right here Drupal Development tags received’t be robotically populated, that you must manually introduce <Drupal 10-url data-*> to Drupal Development “Allowed HTML tags” textual content space.) Step 4 Drupal 10 Upkeep and Help Service (Non-compulsory) If you would like, you too can mark Drupal Development checkbox “Convert URLs to URL embeds”, which is able to robotically convert URLs from Drupal Development textual content into embedded objects. In case you do that although, be sure to reorder Drupal Development filters in order that “Show embedded URLs” is positioned after Drupal Development filter “Convert URLs to URL embeds” All achieved, go embed some distant content material! Movies require iframe browser support. Widespread pitfall Please keep in mind that whereas Drupal Development Embed library can cope with many distant web sites, it received’t do magic with suppliers that don’t implement Drupal Development oEmbed protocol in a constant approach! At the moment Drupal Development Drupal 10 module will solely render Drupal Development content material of suppliers that return one thing inside Drupal Development code property. If you’re making an attempt to embed some distant content material that’s not showing appropriately in your web site, you possibly can troubleshoot it by going to Drupal Development URL Drupal 10 Upkeep and Help Service https Drupal 10 Upkeep and Help Service//oscarotero.com/embed3/demo and making an attempt Drupal Development similar URL there. If there isn’t a content material inside Drupal Development code property, this URL sadly can’t be embedded in utilizing URL Embed. As soon as this challenge is full, this will probably be much less of a difficulty as a result of Drupal Development validation will stop Drupal Development consumer from coming into an invalid URL. Get much more by integrating with different Media options There are at the very least two essential methods you possibly can lengthen Drupal Development options indicated right here, to attain an much more highly effective or easy-to-use editorial expertise. These approaches will probably be mentioned intimately in upcoming articles, however you possibly can have a short concept about them under, in case you need to begin studying about them instantly. Enable content material to be chosen by way of Entity Browsers In Drupal Development earlier instance, Drupal Development content material being embedded (on this case a referenced node) was chosen by Drupal Development editor utilizing an autocomplete area. It is a very primary answer, obtainable out-of-the-box for any referenced entity in core, however it doesn’t present Drupal Development final consumer expertise we might count on from a contemporary CMS. Drupal Development Service excellent news Drupal 10 Upkeep and Help Service it’s a straightforward repair. Plug any Entity Browser you’ll have in your web site to any embed button you will have created. Going over Drupal Development configuration of Entity Browsers is past Drupal Development scope of this text, however you possibly can learn extra at Drupal Development official documentation, or instantly by giving it a attempt, utilizing one in every of Drupal Development pre-packaged Drupal 10 modules like File Entity Browser, Content material Browser or Media Entity Browser. Widespread pitfall If you’re utilizing an Entity Browser to pick out Drupal Development content material to be embedded, be sure that your browser is configured to have a show plugin of kind “iFrame.” Drupal Development Service Embed choices already seem in a modal window, so deciding on an Entity Browser that’s configured to be proven in a modal window received’t work. Use Drupal Development Media Entity Drupal 10 module to deal (additionally) with distant media property Drupal Development Service URL Embed Drupal 10 module is a useful answer to permit your web site editors to embed distant media property in a quick-and-easy approach, however what if Drupal 10 Upkeep and Help Service you need to standardize your workflow for managing native and distant media property? you need to have a strategy to re-use content material that was already embedded in different items of content material? and many others. A attainable various that might clear up all these wants is to standardize how sees all of your media property. Drupal Development Service Media Entity method means which you could “wrap” each native and distant media property in a particular “media” entity kind, and in consequence, Drupal Development Entity Embed might be used with any kind of asset, as soon as all of them are entities no matter their actual storage. In Conclusion Hopefully, you discover this a helpful tutorial. I can strongly advocate this “Media Entity” method, as a result of it’s being partly moved into core, which is able to end in a good stronger basis for the way websites will deal with media property in Drupal Development close to future. Acknowledgements Because of Seth Brown, David Burns and Dave Reid for his or her assist with this text. Different articles on this sequence Methods to Assist Drupal Development D8 Media Initiative Picture credit score Drupal 10 Upkeep and Help Service Daian Gan Drupal 10 Growth and Help
Drupal 10 Help: Drupal 10 Upkeep and Help Service Embed Simply About Something in 8 WYSIWYG with Entity Embed and URL Embed

Call Us: 1(800)730-2416
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit
Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)
Drupal 10 Help: Drupal 10 Upkeep and Help Service Embed Simply About Something in 8 WYSIWYG with Entity Embed and URL Embed
On-Site Drupal SEO Master Setup
We make sure your site is 100% optimized (and stays that way) for the best SEO results.
With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.
This service includes:
- Pathauto install and configuration for SEO-friendly URLs.
- Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
- Install and fix all issues on the SEO checklist module.
- Install and configure XML sitemap module and submit sitemaps.
- Install and configure Google Analytics Module.
- Install and configure Yoast.
- Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
- Install and configure Schema.org Metatag.
- Configure robots.txt.
- Google Search Console setup snd configuration.
- Find & Fix H1 tags.
- Find and fix duplicate/missing meta descriptions.
- Find and fix duplicate title tags.
- Improve title, meta tags, and site descriptions.
- Optimize images for better search engine optimization. Automate where possible.
- Find and fix the missing alt and title tag for all images. Automate where possible.
- The project takes 1 week to complete.
