vue-quill-editor小图标没对齐解决方法

73 阅读1分钟

<quill-editor class="ql-editor-class" v-model="ruleForm.content" ref="myQuillEditor" :options="editorOption"> </quill-editor>

添加class属性 通过修改样式进行解决

.ql-editor-class { -webkit-box-sizing: border-box; box-sizing: border-box; line-height: 1.42; height: 100%; outline: none; padding: 0 !important; tab-size: 4; -moz-tab-size: 4; text-align: left; word-wrap: break-word; }