Answer the question
In order to leave comments, you need to log in
TinyMCE, how to disable wrapping of a given tag?
The need for a tag was needed: <component data-name=""></component>
To process it, I had to write a plugin:
editor.on('preInit', function() {
editor.schema.addValidElements('component');
editor.parser.addNodeFilter('component', function(nodes,name) { ... }
...
}
<p><component data-name=""></component></p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question