Changes between Initial Version and Version 1 of Ticket #24067, comment 86
- Timestamp:
- 01/22/2014 03:50:19 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24067, comment 86
initial v1 1 1 Not sure if this is a bug or not; but we are able to set the default tab of the editor (visual or html) via a filter: 2 2 3 add_filter( 'wp_default_editor', create_function(' ', 'return "html";') );3 add_filter( 'wp_default_editor', create_function(' ', 'return "html";') ); 4 4 5 5 This works fine when setting the default view to 'html'. … … 7 7 However... if we attempt to change it to the 'visual' by defualt: 8 8 9 add_filter( 'wp_default_editor', create_function(' ', 'return "tmce";') );9 add_filter( 'wp_default_editor', create_function(' ', 'return "tmce";') ); 10 10 11 11 or... (I also tried) 12 12 13 add_filter( 'wp_default_editor', create_function(' ', 'return "tinymce";') );13 add_filter( 'wp_default_editor', create_function(' ', 'return "tinymce";') ); 14 14 15 15 It breaks the visual side of the editor (no buttons, white text on white background).