- Issue created by @javitan
- π¬π§United Kingdom scott_euser
I believe we need to register the element as a block level element rather than an inline element.
At https://ckeditor.com/docs/ckeditor5/latest/tutorials/widgets/implementin...
Take a look at this bit of the page:inheritAllFrom: '$blockObject'
We need to implement that here: https://git.drupalcode.org/project/ckeditor_div_manager/-/blob/3.0.x/js/...
So I think this:
schema.register('divContent', { inheritAllFrom: '$inlineObject', allowContentOf: '$root', allowAttributes: ['class', 'title', 'id', 'lang', 'style'], });
Becomes something like this:
schema.register('divContent', { inheritAllFrom: '$blockObject', allowContentOf: '$root', allowAttributes: ['class', 'title', 'id', 'lang', 'style'], });
- First commit to issue fork.
- πΏπ¦South Africa uberellis
Updating the changes from #3 π Div into but outside of after saving the content Active works for me.
Note, I had to also update the compiled plugin code, in/js/build/divManagerPlugin.js
for it to work. Forgive me, I'm not sure how to compile the source for this.