工作,我試圖嵌入在前端WP編輯器,但它不工作WordPress的更新4.5,最新版本後,WP編輯器沒有前端在WordPress
$settings = array(
'wpautop' => true,
'postContent' => 'content',
'media_buttons' => false,
'tinymce' => array(
'theme_advanced_buttons1' => 'bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist,justifyleft,justifycenter,justifyright,undo,redo,link,unlink,fullscreen',
'theme_advanced_buttons2' => 'pastetext,pasteword,removeformat,|,charmap,|,outdent,indent,|,undo,redo',
'theme_advanced_buttons3' => '',
'theme_advanced_buttons4' => ''
),
'quicktags' => array(
'buttons' => 'b,i,ul,ol,li,link,close'
)
);
wp_editor($postContent, 'postContent', $settings);
輸出注意到。
您是否啓用了'WP_DEBUG'標誌爲'true'來檢查錯誤? – Milap
@Milap感謝評論,是的,已經做到了,但沒有顯示錯誤。 –
任何javascript錯誤?請檢查js控制檯。 –