TinyMCE, allow data attribute
问题 I have to use the HTML 5 data attribute in Tiny MCE, but the editor always clear them, as it's not an attribute known by the default valid_elements configuration. So I have 2 problems here: the data attribute is dynamic ( it could be data-options, data-test, data-foo, etc... ) So I would need a wildcard value or something. I want to allow the data attribute for all tags. So far, I've tried: extended_valid_elements : '@[id|class|title|style|data-options]', And: extended_valid_elements : '*[id