#13106 closed Bug (invalid)
Issues using AllowedExtraContent
Reported by: | Thierry | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Hi, I have issues to correctly parameter the "allowedExtraContent" option. In my textarea there is custom HTML tag that I want to keep.
There is an example : <foo>bar</foo> <foo attr="value"/>
I successfully manage to keep the first one using : extraAllowedContent : 'foo' But the I can't manage to keep the second one.
Thanks for your help.
Change History (3)
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.4.7 |
comment:2 Changed 10 years ago by
I think @thierry-finemedia is also talking about self-closing custom tags.
CKEditor doesn't support custom tags. It is impossible at the moment to use block-level custom-tags #10340.
If you want to use self-closing tags you need to change the http://docs.ckeditor.com/#!/api/CKEDITOR.dtd (http://docs.ckeditor.com/#!/api/CKEDITOR.dtd-property-S-empty to solve this issue) if you want to load custom tags. Remember that CKEditor is an HTML editor, not XML editor, so it's not guaranteed that every kind of markup will work.
comment:3 Changed 10 years ago by
I replied to this question on SO too - http://stackoverflow.com/questions/29297936/ckeditor-allowedextracontent-with-closing-html-tag
Simply:
extraAllowedContent: 'foo[value]'
. And that's all.Please remember that this is not a forum, but a bug tracker. You can ask questions on http://stackoveflow.com