Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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 4 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed
Version: 4.4.7

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

comment:2 Changed 4 years ago by Jakub Ś

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy