Note that there are some explanatory texts on larger screens.

plurals
  1. POConfiguration / Cleanup problem
    primarykey
    data
    text
    <p>Using copy-paste (or the code plugin) users are able to insert content including spans yielding to nested spans even though i thought that my settings forbid nested spans. <strong>I do want to have nested spans been filtered out when the "cleanup" action gets performed.</strong></p> <p>Doing a manual cleanup (command "mceCleanup" which is triggered after pasting text) does not help either.</p> <p>Reffering to the <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_child_elements" rel="nofollow noreferrer">TinyMCE documentation</a> a user may choose which child elements tinymce discards when performing "cleanup" for defined parent nodes.</p> <p><strong>Is there a problem with my config? If yes, what is wrong? Any suggestions?</strong></p> <p>Here's my configuration (the relevant part, i am using the newest tinymce version (3.3.8), occurs in all major browsers):</p> <pre><code> cleanup : true, encoding: "xml", dialog_type : "modal", object_resizing: false, paste_strip_class_attributes: "all", entity_encoding: "raw", fix_nesting: true, invalid_elements: "strong,ul,ol,li", // The valid_elements option defines which elements will remain in the edited text when the editor saves. valid_elements: "@[id|class|title|style]," + "a[name|href|target|title]," + "#p,-ol,-ul,-li,br,img[src],-sub,-sup,-b,-i," + "-span,hr", valid_child_elements : "body[p|ol|ul]" //EDIT: had some ","s instead of "|"s + ",p[a|span|b|i|sup|sub|img|hr|#text]" + ",span[a|b|i|sup|sub|img|#text]" + ",a[span|b|i|sup|sub|img|#text]" + ",b[span|a|i|sup|sub|img|#text]" + ",i[span|a|b|sup|sub|img|#text]" + ",sup[span|a|i|b|sub|img|#text]" + ",sub[span|a|i|b|sup|img|#text]" + ",li[span|a|b|i|sup|sub|img|ol|ul|#text]" + ",ol[li]" + ",ul[li]" </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload