vue-quill-editor富文本 回显数据样式失效
1.首先排查的css文件是否引入,在min.js中查看import VueQuillEditor from 'vue-quill-editor'import 'quill/dist/quill.core.css'import 'quill/dist/quill.snow.css'import 'quill/dist/quill.bubble.css'Vue.use(VueQuillEditor)2
·
1.首先排查的css文件是否引入,在min.js中查看
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)
2.重点检查v-html 回显代码片段
3.将回显的html内容,包裹在一个div容器中,并加上对应的class
<div class="ql-container ql-snow">
<div class="ql-editor" v-html="list.content">
</div>
更多推荐
已为社区贡献2条内容
所有评论(0)