Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter J-Ro

    (@j-ro)

    Got a fix here, if you want to incorporate. Line 121 in sb_preserved_markup.php should be changed to:

    $init['valid_children'] = "+a[em|strong|small|mark|abbr|dfn|i|b|s|u|code|var|samp|kbd|sup|sub|q|cite|span|bdo|bdi|br|wbr|ins|del|img|embed|object|iframe|map|area|noscript|ruby|video|audio|input|textarea|select|button|label|output|datalist|keygen|progress|command|canvas|time|meter|p|hr|pre|ul|ol|dl|div|h1|h2|h3|h4|h5|h6|hgroup|address|blockquote|section|nav|article|aside|header|footer|figure|table|f|m|fieldset|menu|details|style|link],+body[style|link]";

    To allow for style and link tags as children of the body tag. This was actually a change caused by TinyMCE 4.0, included in WP 3.9, which now is stricter about its XHTML stuff I guess.

    I have the same problem since upgrade editor is removing removing some code I wish to retain the code is

    <a title="Click here to,," href="JavaScript:newPopup('https://url');">
    when i switch to visual editor it becomes
    <a title="Click here to..">`

    I have installed plugins TinyMCE Advanced and Preserved HTML Editor Markup but no joy yet.

    Any suggestions please?

    Thread Starter J-Ro

    (@j-ro)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Newer version of wordpress strips style tags’ is closed to new replies.