Hi.
config.allowedContent = { $1: { elements: CKEDITOR.dtd, attributes: true, styles: true, classes: true } }; config.disallowedContent = 'script; *[on*]; p[style*]; span[style*]; ul[style*]; ol[style*]; li[style*]; table[style*]; tr[style*]; th[style*]; td[style*]; a[style*]; b[style*]; strong[style*]; i[style*]; em[style*]; h1[style*]; h2[style*]; h3[style*]; h4[style*]; h5[style*]; h6[style*]; br[style*]; img[style*]; hr[style*]; blockquote[style*]';
Why does this code not working?
Script elements not allowed, "on-" attributes too, but style attributes allowed.
Full config:
config.removePlugins = 'scayt,autosave'; config.allowedContent = { $1: { elements: CKEDITOR.dtd, attributes: true, styles: true, classes: true } }; config.disallowedContent = 'script; *[on*]; p[style*]; span[style*]; ul[style*]; ol[style*]; li[style*]; table[style*]; tr[style*]; th[style*]; td[style*]; a[style*]; b[style*]; strong[style*]; i[style*]; em[style*]; h1[style*]; h2[style*]; h3[style*]; h4[style*]; h5[style*]; h6[style*]; br[style*]; img[style*]; hr[style*]; blockquote[style*]';
I need allow all elements, but "div" can contain style attribute, other elements not.
Sorry for my english )