Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24067, comment 86


Ignore:
Timestamp:
01/22/2014 03:50:19 AM (11 years ago)
Author:
josh401
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24067, comment 86

    initial v1  
    11Not 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:
    22
    3     add_filter( 'wp_default_editor', create_function('', 'return "html";') );
     3    add_filter( 'wp_default_editor', create_function(' ', 'return "html";') );
    44
    55This works fine when setting the default view to 'html'.
     
    77However... if we attempt to change it to the 'visual' by defualt:
    88
    9     add_filter( 'wp_default_editor', create_function('', 'return "tmce";') );
     9    add_filter( 'wp_default_editor', create_function(' ', 'return "tmce";') );
    1010
    1111or... (I also tried)
    1212
    13     add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
     13    add_filter( 'wp_default_editor', create_function(' ', 'return "tinymce";') );
    1414
    1515It breaks the visual side of the editor (no buttons, white text on white background).