Hi,
I tried to convince ckeditor to accept a custom html tag.
Unfortunately, this does not seem to be possible.
If I try to add support through addFeature, the tag is supported but the browser mangles it during the 'toHtml' event. The html with my custom tag is inserted into a DOM node, but upon extraction of html from that node, the custom tag elements are empty. The browser does not support them.
This can be circumvented if I call the browser's registerElement function. However, registerElement requires that the element name starts with something like "x-". You can registerElement("x-custom") but not registerElement("custom").
OK, I don't mind calling my tag "x-custom", but then it can't be added through addFeaure, because the regex in addFeature requires the tagname to be alphanumeric (see the rulePattern variable in filter.js). allowedContent with a tag name like "x-custom" generates an empty rule.
I'd be grateful to get the official (or otherwise learned) take on this.
