Wordpress Visual Editor Problem After Upgrade – Fix
Many users of wordpress face a problem wherein the visual editor stop working or is stuck after an upgrade. The below screenshot shows the problem.
Even though this is a serious, annoying and quite widely observed problem, there has been no official fix for it. Lot of posts describe various possible solutions (see links section at the end), this is the one that worked for me.
The culprit here is the file “wp-includes/js/tinymce/tiny_mce_config.php” which tries to gzip the tinymce js and the output is just messed up. Disable compression in this file and you are good to go.
Open tiny_mce_config.php located at wp-includes/js/tinymce with your favorite text editor, look for an array initArray
// TinyMCE init settings $initArray = array ( 'mode' => 'none', 'onpageload' => 'wpEditorInit', 'width' => '100%', 'theme' => 'advanced', 'skin' => 'wp_theme', 'theme_advanced_buttons1' => "$mce_buttons", 'theme_advanced_buttons2' => "$mce_buttons_2", 'theme_advanced_buttons3' => "$mce_buttons_3", 'theme_advanced_buttons4' => "$mce_buttons_4", 'language' => "$mce_locale", 'spellchecker_languages' => "$mce_spellchecker_languages", 'theme_advanced_toolbar_location' => 'top', 'theme_advanced_toolbar_align' => 'left', 'theme_advanced_statusbar_location' => 'bottom', 'theme_advanced_resizing' => true, 'theme_advanced_resize_horizontal' => false, 'dialog_type' => 'modal', 'relative_urls' => false, 'remove_script_host' => false, 'convert_urls' => false, 'apply_source_formatting' => false, 'remove_linebreaks' => true, 'paste_convert_middot_lists' => true, 'paste_remove_spans' => true, 'paste_remove_styles' => true, 'gecko_spellcheck' => true, 'entities' => '38,amp,60,lt,62,gt', 'accessibility_focus' => false, 'tab_focus' => ':next', 'content_css' => "$mce_css", 'save_callback' => 'switchEditors.saveCallback', 'wpeditimage_disable_captions' => $no_captions, 'plugins' => "$plugins", // pass-through the settings for compression and caching, so they can be changed with "tiny_mce_before_init" 'disk_cache' => true, 'compress' => true, 'old_cache_max' => '1' // number of cache files to keep );
Change the value of the variable compress to false.
Hope this helps.
Links that might help:
Visual Editor Not Working on Upgrade
2.5 Visual Editor/TinyMCE problems
Wordpress Visual editor not working stuck in HMTL mode
More problems with visual editor not working
Visual editor problem with wordpress 2.5
No related posts.
Tags: rich editor, tiny mce, TinyMCE, visual editor, wordpress
