In my Ckeditor config i have a custom allowedContent. I don't use allowedContent:true
because i don't want to allow the style attribute in the span tags
So this is my allowedContent
allowedContent : 'span[class]; a[!href](*); caption; div; em; h1; h2; h3; h4; h5; h6; hr; i; img; li; ol; p[*]{*}; pre; strong; sub; sup; table; thead; tbody; tfoot; td; th; tr; tt; u; ul; dl; dt; dd; iframe;'
With this configuration, the style attributes are not allowed anymore on the span tags
The problem is with my stylesSets :
stylesSet:
- { name: "style 1", element: ['div', 'p', 'a', 'span'], attributes: { class:"display_only_in_popup" } }
- { name: "style 2", element: ['div', 'p', 'a', 'span'], attributes: { class:"blockquote" } }
- { name: "style 3", element: ['div', 'p', 'a', 'span'], attributes: { class:"note" } }
- { name: "style 4", element: ['p', 'span'], attributes: { class:"highlight" } }
- { name: "style 5", element: 'span', attributes: { class:"visuallyhidden" } }
Before, when i had allowedContent:true
, i was able to see and use all of my 5 stylesets, but now, for some reason, i only see the "style 5" in the Styles field
Is it possible to keep my 5 stylesets without using allowedContent:true
?
Thanks a lot
allowedContent
to its default value and make changes instead toextraAllowedContent
– Wizard