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

TwoD’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Category: task » feature

I 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.