WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/06/2008 07:01:32 PM (13 years ago)
Author:
ryan
Message:

Remember last editor chosen. Props mdawaffe. fixes #3978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/tiny_mce_config.php

    r6405 r6567  
    5555?>
    5656
     57wpEditorInit = function() {
     58    // Activate tinyMCE if it's the user's default editor
     59    if ( ( 'undefined' == typeof wpTinyMCEConfig ) || 'tinymce' == wpTinyMCEConfig.defaultEditor )
     60        tinyMCE.execCommand("mceAddControl", true, 'content');
     61};
     62
    5763initArray = {
    5864    mode : "specific_textareas",
    5965    editor_selector : "mceEditor",
     66    oninit : "wpEditorInit",
    6067    width : "100%",
    6168    theme : "advanced",
Note: See TracChangeset for help on using the changeset viewer.