我正在使用wp\\u tiny\\u mce()在插件设置中显示TinyMCE:
<?php wp_tiny_mce( false , array("editor_selector" => "a_nice_textarea"));?>
<textarea class="a_nice_textarea" id="a_nice_textarea" name="a_nice_textarea"></textarea>
 一切正常,但我只想显示HTML编辑器,但wp\\u tiny\\u mce似乎只输出可视化编辑器。
我知道这些是初始设置,但我已经玩了一段时间了,没有任何运气:
// TinyMCE init settings
$initArray = array (
    \'mode\'                              => \'none\',
    \'onpageload\'                        => \'switchEditors.edInit\',
    \'width\'                             => \'100%\',
    \'theme\'                             => \'advanced\',
    \'skin\'                              => \'wp_theme\',
    \'theme_advanced_buttons1\'           => "$mce_buttons",
    \'theme_advanced_buttons2\'           => "$mce_buttons_2",
    \'theme_advanced_buttons3\'           => "$mce_buttons_3",
    \'theme_advanced_buttons4\'           => "$mce_buttons_4",
    \'language\'                          => "$mce_locale",
    \'spellchecker_languages\'            => "$mce_spellchecker_languages",
    \'theme_advanced_toolbar_location\'   => \'top\',
    \'theme_advanced_toolbar_align\'      => \'left\',
    \'theme_advanced_statusbar_location\' => \'bottom\',
    \'theme_advanced_resizing\'           => true,
    \'theme_advanced_resize_horizontal\'  => false,
    \'dialog_type\'                       => \'modal\',
    \'relative_urls\'                     => false,
    \'remove_script_host\'                => false,
    \'convert_urls\'                      => false,
    \'apply_source_formatting\'           => false,
    \'remove_linebreaks\'                 => true,
    \'paste_convert_middot_lists\'        => true,
    \'paste_remove_spans\'                => true,
    \'paste_remove_styles\'               => true,
    \'gecko_spellcheck\'                  => true,
    \'entities\'                          => \'38,amp,60,lt,62,gt\',
    \'accessibility_focus\'               => true,
    \'tab_focus\'                         => \':prev,:next\',
    \'content_css\'                       => "$mce_css",
    \'save_callback\'                     => \'switchEditors.saveCallback\',
    \'wpeditimage_disable_captions\'      => $no_captions,
    \'plugins\'                           => "$plugins"
);
 这里甚至有一个很好的问题解释和解决方案,但提供的代码也不适用于我(也不完全符合我的目标):
http://keighl.com/post/switching-visualhtml-modes-with-tinymce/
有什么提示吗?