在tinymce-vue组件中设置整个编辑器的高度

Jua*_*rra 2 tinymce vue.js

我使用这个组件https://github.com/tinymce/tinymce-vue,我想将整个编辑器的高度设置为500 px.

<editor api-key="myapikey" :init="{plugins: 'wordcount,'"></editor>
Run Code Online (Sandbox Code Playgroud)

Jua*_*rra 5

我刚刚弄清楚,只需要将height属性添加到:initprop 中,如下所示:

<editor api-key="myapikey" :init="{plugins: 'wordcount',height: 500}"></editor>
Run Code Online (Sandbox Code Playgroud)