in reply to Re: TinyMCE javascript toolbar
in thread TinyMCE javascript toolbar

It is also posting unapproved attributes (seems just "style=...") that show up as error indications if you have error reporting turned up.

- tye        

  • Comment on Re^2: TinyMCE javascript toolbar (style=)

Replies are listed 'Best First'.
Re^3: TinyMCE javascript toolbar (style=)
by Anonymous Monk on Dec 14, 2014 at 21:57 UTC
Re^3: TinyMCE javascript toolbar (style=)
by Steve_BZ (Chaplain) on Dec 14, 2014 at 21:22 UTC
    Hi Tye
    Thanks for noticing that, I hadn't. I did wonder why the colours I had specified did not come out :)
    I'll check the tinyMCE user manual. I thought you could specify allowed tags, but I don't recall seeing attributes.
    Regards
    Steve

     

      Speaking of http://www.tinymce.com/wiki.php/Configuration:valid_elements and Perl Monks Approved HTML tags
      valid_elements : "a[href|name|target|class|title|rel],abbr[title],b,bi +g,blockquote[class|cite|lang|dir],br,c,caption[class],center,code,col +[align|col|span|width|class],colgroup[align|col|span|width|class],dd, +del[class|datetime|cite],div[class],dl,dt,em,font[size|color|class],h +[class|align],h3[class|align],h4[class|align],h5[class|align],h6[clas +s|align],hr,i,ins[class|datetime|cite],li[value],ol[type|start],p[ali +gn|class],pre[class],readmore3[title],small,span[class|title],spoiler +4,strike,strong,sub,sup,table[width|cellpadding|cellspacing|border|bg +color|class],tbody[width|align|valign|colspan|rowspan|bgcolor|height| +class],td[width|align|valign|colspan|rowspan|bgcolor|height|class],tf +oot[width|align|valign|colspan|rowspan|bgcolor|height|class],th[width +|align|valign|colspan|rowspan|bgcolor|height|class],thead[width|align +|valign|colspan|rowspan|bgcolor|height|class],tr[width|align|valign|c +olspan|bgcolor|height|class],tt[class],u,ul[type],wbr"