无法调整Wordpress插件的编辑器高度

时间:2018-10-31 19:13:17

标签: wordpress

我有一个插件WpDocs,该插件使用plugin's editor创建了一个自定义帖子类型,但是我似乎无法弄清楚如何在init上调整编辑器的高度。该插件使用TinyMCE编辑器,我发现了information on how to add a filter to the main TinyMCE editor,但我不知道如何定位this editor here。这可能吗?

1 个答案:

答案 0 :(得分:0)

有两个参数可用于更改由wp_editor()生成的文本编辑器的大小:

$settings = array(
    'editor_height' => 425, // In pixels, takes precedence and has no default value
    'textarea_rows' => 20,  // Has no visible effect if editor_height is set, default is 20
);