4
我想将TinyMCE的WP编辑器添加到我的自定义文本小部件中,但它不会显示只显示textarea的TinyMCE按钮。
当我在page.php上测试我的代码时,它完美地工作 - 编辑器显示所有按钮和元框。
你能告诉我我做错了什么吗?
编辑
Widgets screenshot。
Same code used in page.php screenshot将wp_editor添加到自定义WP小部件
的代码我使用:
$settings = array(
'wpautop' => true,
'media_buttons' => false,
'textarea_name' => 'test-editor',
'textarea_rows' => get_option('default_post_edit_rows', 10),
'tabindex' => '',
'editor_css' => '',
'editor_class' => '',
'teeny' => true,
'dfw' => true,
'tinymce' => array(
'theme_advanced_buttons1' => 'bold,italic,underline'
),
'quicktags' => false
);
wp_editor('Text in editor', 'test-editor', $settings);
js-console上的任何js错误? – Thariama 2013-02-15 10:22:06
没有js错误。 – user1909823 2013-02-15 11:11:46