Hi guys
I’m not 100% sure this is a theme issue, but I feel quite confident it is.
Since the latest update to WP 4.1, Newspaper 4.6 and VC 4.3.5, the editor constantly pops over to Text mode instead of Visual mode. Quite frustrating.
Even when swapping back to Visual and then saving an article, it returns to Text mode after save is completed.
Am I the only one with this issue or has anyone else experienced the same?
Same in Safari, Firefox and Chrome.
My editor always defaults to text/HTML view on the post page, which is what I prefer. Supposedly the “visual editor” is the default, but not for my installs for some reason – regardless of theme.
So, not really a theme issue … however there is a hook you can add to your functions.php to set the specific editor you want as default, e.g.,
add_filter( 'wp_default_editor', create_function('', 'return "html";') );
Hi Chris
I tried to add the filter, but doesn’t seem to make a difference.
The odd thing is, that it only happened after the latest update.
Here’s a screendump showing it:
https://cloud.creativegroup.dk/public.php?service=files&t=9a4f92968eaaff9fa64fa4367434048b
Be sure to clear all your web cache, reset CDN feed as applicable and do full cache clear on your web browser.
Also the code I provided was “example” — you need to obviously change that from 'return "html"; to whatever the visual editor directive is (sorry, don’t know what that is… see the WP Codex for info!).
Hi,
Thanks Chris!
@Keld Bendtsen
Adding this line: add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') ); ..to functions.php file like this: http://screencast.com/t/Fdx0665vgRg defaults the tinymce/visual editor on post editor.
I have also tested this and work fine using the latest theme version (4.6.1) so please make sure as Chris stated that you empty caches and purge files if you use CDN.
Thanks