Viewing 3 replies - 1 through 3 (of 3 total)
  • Same for me. Visual editor is broken. Its a plugin but an essential plugin for the theme I’m using – Goodlayers Flawless – which uses the Goodlayers Shortcode plugin. It adds an icon to the visual editor. Once I delete it its ok but I need it.

    Equally as bad is the fact the WooCommerce Shortcode button is now gone from my sites visual editors. I develop for around 6 WooCommerce shops – this wont do..

    🙁 What do we do?

    Here’s what I did to fix this. If you are using this snippet to “fix” TinyMCE, comment out the ‘plugins’ line.

    function formatTinyMCE($in)
    {
        $in['remove_linebreaks']=false;
        $in['gecko_spellcheck']=false;
        $in['keep_styles']=true;
        $in['accessibility_focus']=true;
        $in['tabfocus_elements']='major-publishing-actions';
        $in['media_strict']=false;
        $in['paste_remove_styles']=false;
        $in['paste_remove_spans']=false;
        $in['paste_strip_class_attributes']='none';
        $in['paste_text_use_dialog']=true;
        $in['wpeditimage_disable_captions']=true;
        // This breaks Visual Editor in v3.9 -> $in['plugins']='inlinepopups,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,wpfullscreen';
        $in['content_css']= "/golf/content/themes/verb_base/css/editor-style.css?v2";
        $in['wpautop']=false;
        $in['apply_source_formatting']=false;
        $in['theme_advanced_buttons1']='formatselect,forecolor,|,bold,italic,underline,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,wp_fullscreen,wp_adv';
        $in['theme_advanced_buttons2']='pastetext,pasteword,removeformat,|,charmap,|,undo,redo';
        $in['theme_advanced_buttons3']='';
        $in['theme_advanced_buttons4']='';
        return $in;
    }
    add_filter('tiny_mce_before_init', 'formatTinyMCE' );
    Thread Starter darkhorse20

    (@darkhorse20)

    Version 2.2, released today fixes it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Visual Editor broken with WP 3.9’ is closed to new replies.