visual editor - RTE always on text mode by default

admin2025-06-05  2

I have installed a theme with visual composer on my wordpress and everything was working fine until I added a widget above the header.

From that moment on, every time I want to create a new entry the RTE is always on text mode instead of visual.

I find it really weird that my customization have caused this, does anyone has another explanation and/or solution?

Thanks in advance!

I have installed a theme with visual composer on my wordpress and everything was working fine until I added a widget above the header.

From that moment on, every time I want to create a new entry the RTE is always on text mode instead of visual.

I find it really weird that my customization have caused this, does anyone has another explanation and/or solution?

Thanks in advance!

Share Improve this question asked Jul 10, 2015 at 7:38 viriatoviriato 1111 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Can't really think of a reason for the behaviour, maybe it is just a bug in the theme, of course I can't say anything specific without knowing the code. But you should be able get around it by making use of the wp_default_editor hook and explicitly set the type of editor you want to show first, which is inside the function with the same name, so wp_default_editor().

function wpse194059_set_wp_default_editor( $editor ) {
  // possible values are: 
  // tinymce - visual mode
  // html - text mode
  return 'tinymce';
}
add_filter( 'wp_default_editor', 'wpse194059_set_wp_default_editor' );
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749115926a316498.html

最新回复(0)