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. I do want to have nested spans been filtered out when the "cleanup" action gets performed.
Doing a manual cleanup (command "mceCleanup" which is triggered after pasting text) does not help either.
Reffering to the TinyMCE documentation a user may choose which child elements tinymce discards when performing "cleanup" for defined parent nodes.
Is there a problem with my config? If yes, what is wrong? Any suggestions?
Here's my configuration (the relevant part, i am using the newest tinymce version (3.3.8), occurs in all major browsers):
    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]"