【问题标题】:Problems with wp_editor in plugin admin page插件管理页面中 wp_editor 的问题
【发布时间】:2014-01-11 18:12:19
【问题描述】:

我正在尝试将 wordpress 编辑器添加到我正在使用此代码构建的插件的管理页面:

$editor_id = "mailbody";
$content = "hello";
$settings = array( 'textarea_name' => 'mailbody' );

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

当代码将编辑器实例返回到插件管理页面时,未显示任何按钮,但选项卡不工作且媒体按钮不工作。 在控制台中,我收到错误:单击可视/文本选项卡时未定义未捕获的 ReferenceError: switchEditors。

对我哪里出错有什么想法吗?

【问题讨论】:

    标签: php wordpress


    【解决方案1】:

    对于其他有此问题的人,请看这里: http://www.presscoders.com/2011/11/how-to-reuse-the-post-editor-in-wordpress-3-3/

    我的问题是由此处找到的模板“空白插件”中的错误退出引起的:http://graemewilson.co.nz/wordpress-plugins/wordpress-blank-plugin/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-07
      • 2015-02-07
      • 2012-03-05
      • 2017-09-19
      • 1970-01-01
      • 2014-08-08
      • 1970-01-01
      • 2020-11-26
      相关资源
      最近更新 更多