[wp-trac] [WordPress Trac] #24067: TinyMCE 4.0

WordPress Trac noreply at wordpress.org
Wed Jan 22 03:49:25 UTC 2014


#24067: TinyMCE 4.0
-------------------------+-----------------------
 Reporter:  josh401      |       Owner:  azaozz
     Type:  enhancement  |      Status:  accepted
 Priority:  high         |   Milestone:  3.9
Component:  TinyMCE      |     Version:  3.8
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by josh401):

 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:

     add_filter( 'wp_default_editor', create_function('', 'return "html";')
 );

 This works fine when setting the default view to 'html'.

 However... if we attempt to change it to the 'visual' by defualt:

     add_filter( 'wp_default_editor', create_function('', 'return "tmce";')
 );

 or... (I also tried)

     add_filter( 'wp_default_editor', create_function('', 'return
 "tinymce";') );

 It breaks the visual side of the editor (no buttons, white text on white
 background).

 I see in `wp-admin/js/editor.js' where you are checking if the mode is
 'html' or 'tmce'... so I'm pretty sure the 'tmce' is still valid.

 Can anyone else replicate this issue?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24067#comment:86>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list