首页 > 解决方案 > 在 tinymce-vue 组件中设置整个编辑器的高度

问题描述

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

<editor api-key="myapikey" :init="{plugins: 'wordcount,'"></editor>

标签: vue.jstinymce

解决方案


我只是想通了,只需要将height属性添加到:initprop中,如下所示:

<editor api-key="myapikey" :init="{plugins: 'wordcount',height: 500}"></editor>

推荐阅读