Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now, the imported elements fall in the selected element, there should be an option for the plugins so that the wysiwyg editor closes or splits the previous html element to allow the new block element, whether an image or a youtube video.
Comments
Comment #1
TwoDI agree. Drupal plugins are currently limited to inserting only "HTML strings", and editors usually leave it up to the browser to decide how to parse/merge that with existing content. Many editors have an insertElement() method or similar to do this, but we need to extend the plugin API so it can deal with DOM Eleements and not just strings. This comes with a few cross-browser issues, but I think the editors take care of most of them.