关于vue-editor中设置限高不管用的bug
在vue的项目中引用vue-editor引入vue-editor的文章很多,参考其他就行,本文记录一个限高不管用的问题<vue-editor v-model="form.comment"useCustomImageHandler@image-added="handleImageAdded"@image-remo...
·
在vue的项目中引用vue-editor
引入vue-editor的文章很多,参考其他就行,本文记录一个限高不管用的问题
<vue-editor v-model="form.comment"
useCustomImageHandler
@image-added="handleImageAdded"
@image-removed="backImage"
placeholder="内容至少5个字符"
:editorToolbar="customToolbar"
class="editor">
</vue-editor>
<style>
.editor .ql-editor{
height: 300px;
}
</style>
在一个.vue文件里这样写就好了。重点是
① <vue-editor class="editor"></vue-editor>
②<style></style>标签里去掉scoped
更多推荐
已为社区贡献1条内容
所有评论(0)