8000 remove redundant code · supercoderhawk/emr-processor@8e5341e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e5341e

Browse files
remove redundant code
1 parent 57f2579 commit 8e5341e

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

app/src/renderer/components/VueEditor.vue

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@
88
import 'quill/dist/quill.core.css'
99
import 'quill/dist/quill.snow.css'
1010
11-
let defaultToolbar = [
12-
['bold', 'italic', 'underline', 'strike'],
13-
['blockquote', 'code-block', 'image'],
14-
15-
[{'list': 'ordered'}, {'list': 'bullet'}],
16-
17-
[{'indent': '-1'}, {'indent': '+1'}],
18-
[{'header': [1, 2, 3, 4, 5, 6, false]}],
19-
20-
[{'color': []}, {'background': []}],
21-
[{'font': []}],
22-
[{'align': []}],
23-
24-
['clean']
25-
]
26-
2711
export default {
2812
name: 'vue-editor',
2913
props: {
@@ -33,15 +17,13 @@
3317
'default': 'quill-container'
3418
},
3519
placeholder: String,
36-
disabled: Boolean,
37-
editorToolbar: Array
20+
disabled: Boolean
3821
},
3922
4023
data () {
4124
return {
4225
quill: null,
43-
editor: null,
44-
toolbar: this.editorToolbar ? this.editorToolbar : defaultToolbar
26+
editor: null
4527
}
4628
},
4729
@@ -71,7 +53,7 @@
7153
setQuillElement () {
7254
this.quill = new Quill(this.$refs.quillContainer, {
7355
modules: {
74-
toolbar: false // this.toolbar
56+
toolbar: false
7557
},
7658
placeholder: this.placeholder ? this.placeholder : '',
7759
theme: 'snow',

0 commit comments

Comments
 (0)
0