How to write rule accepting any tag with defined class?
Particulary I'm trying to make a widget and faild to write `allowContent`, `requireContent` rules. This code works fine:
template: '<div class="foo">Hello world</div>', editables: { content: { selector: '.foo' } }, allowedContent: 'div(!foo)', requiredContent: 'div(foo)',
But it fails if you try something like this:
allowedContent: '*(!foo)', requiredContent: '*(foo)',
You also have to allow those
You also have to allow those tags. *(foo) means allow foo class for all allowed elements. The "!" is not allowed in this case (I don't know how it'll work) so something like this would make some sense: 'h1 h2 h3 h4 p; *(foo)'. It would require those tags and they could have foo class.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
So it's impossible to allow
So it's impossible to allow ANY tag with defined class? You should list whole bunch of possible tags? It's a little bit frustrating. In my case user should be able to choose tag he wants.