2016-01-21 52 views
2

目前正在爲WordPress編寫一個插件,其中包括一個用於WordPress內置編輯器的TinyMCE插件。用Wordpress包含TinyMCE插件wp_editor?

然而,當我在一個自定義的管理頁面打印TinyMCE的編輯器:

wp_editor($content, $editor_id, $settings); 

編輯器不來與上述插件。我將如何去包括他們與wp_editor?

謝謝。

+1

看看這裏:http://wordpress.stackexchange.com/questions/48356/creating-a-wp-editor-instance-with-custom-tinymce-buttons – Thariama

+0

謝謝,我會看看! –

回答

2

這只是我很愚蠢。我創建了WordPress的菜單之前添加在TinyMCE插件..

所以對別人卡住的東西這個愚蠢的,請確保您已

add_filter("mce_external_plugins", array($this, 'add_tinymce_plugin')); 
add_filter('mce_buttons', array($this, 'register_my_tc_button')); 
// Rest of the code for adding your TinyMCE Plugins 
// ... 

開始之前在你的

wp_editor() 

期待它的工作!