|
@@ -48,6 +48,15 @@
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
+ toolbars: [[
|
|
|
+ ['bold','underline', 'strike'],
|
|
|
+ [{'list': 'ordered'}, {'list': 'bullet'}],
|
|
|
+ [{'script': 'sub'}, {'script': 'super'}],
|
|
|
+ [{'color': []}, {'background': []}],
|
|
|
+ [{'align': []}],
|
|
|
+ ['image']
|
|
|
+ ]],
|
|
|
+ toolbarMode:0,
|
|
|
editorOption: {
|
|
|
modules: {
|
|
|
ImageExtend: {
|
|
@@ -80,7 +89,7 @@
|
|
|
'image': function () {
|
|
|
QuillWatch.emit(this.quill.id)
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -116,6 +125,9 @@
|
|
|
this.data.text = this.$refs.quillEditor.quill.root.innerText;
|
|
|
}
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.editorOption.modules.toolbar.container = this.toolbars[this.toolbarMode]
|
|
|
+ },
|
|
|
mounted(){
|
|
|
//显示位置枚举列表
|
|
|
const pos = localStorage.getItem("knowledgeEnumsData");
|