backdrop-contrib / tinymce

Integration for the TinyMCE editor in Backdrop CMS
https://backdropcms.org/project/tinymce
GNU General Public License v2.0
2 stars 1 forks source link

Image in figure and switching between TinyMCE and CKEditor #1

Closed indigoxela closed 1 year ago

indigoxela commented 1 year ago

This is a lot trickier than I hoped.

As CKEditor (the default editor in B) actually doesn't handle <figure> tags at all (just does some fake stuff), I'm a bit concerned what happens, when people switch the editor on existing content.

Tiny handles these (valid!) tags just fine, so you can add that, but when you switch from TinyMCE to CKEditor (4 or 5), captions are lost.

The other way round, switching from CKEditor to TinyMCE - people will be astounded, that they don't get any nested "figure" - they've never been there.

Currently, this is the only problematic tag I'm aware of.

indigoxela commented 1 year ago

Got it working! Toggling between CKE4 and Tiny now handles figure tags correctly.