Closed aggied closed 10 years ago
Well after 5 minutes of reading the TinyMce docs a littler harder I believe I have cleared up my own misunderstanding. Looks like this works just fine:
extended_valid_elements:'span[class|style|id|name|title|get-title]',
I just misunderstood what the valid_elements option did. This should probably be closed.
Ok, I'll close this one.
I need to be able to include custom attribs in my TinyMce elements. When I enable the valid_elements config option, the mention plugin doesn't work and I get this error:
which points to this code of the plugin (line 207):
To be more specific, I need to be able to insert a element bound as an AngularJS directive. Without the valid_elements option, when the content is saved TinyMce strips out my custom directive attribute of the element. This is my config for TinyMce:
I've tried changing this to various things, like "p[get]" to no avail.
Any thoughts here?