- Issue created by @miiimooo
- Status changed to Postponed
9 months ago 10:56am 26 March 2024
I am trying to add support for a simple tag so it's preserved in CKEditor 5
I read #3335991-10: [upstream] [GHS] CKEditor 5 does not retain custom HTML tags that are not defined by CKEditor 5 plugins whenever /.*/ is not allowed (e.g. when filter_html is enabled) → and ended up here copying the starterkit
I've copied the starter template and modified:
MODULE.ckeditor5.yml
elements:
- <foo>
simpleboxediting.js
_defineConverters() {
// Converters are registered via the central editor object.
const { conversion } = this.editor;
conversion.for('upcast').elementToElement({
model: 'foo',
view: {
name: 'foo',
},
});
<span data-ck-unsafe-element="foo"></span>
Postponed
1.0
Documentation