@burh/nuxt-core 1.0.62 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</div>
|
|
2
|
+
<div class="quill">
|
|
3
|
+
<div :id="toolbarId"></div>
|
|
4
|
+
<div :id="editorId" :name="name" class ref="editor"></div>
|
|
5
|
+
</div>
|
|
7
6
|
</template>
|
|
8
7
|
<script>
|
|
9
8
|
import 'quill/dist/quill.core.css'
|
|
@@ -17,6 +16,10 @@ export default {
|
|
|
17
16
|
default: "",
|
|
18
17
|
},
|
|
19
18
|
name: String,
|
|
19
|
+
configTools: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: () => null
|
|
22
|
+
}
|
|
20
23
|
},
|
|
21
24
|
data() {
|
|
22
25
|
return {
|
|
@@ -32,25 +35,25 @@ export default {
|
|
|
32
35
|
this.editor = new Quill(`#${this.editorId}`, {
|
|
33
36
|
theme: "snow",
|
|
34
37
|
modules: {
|
|
35
|
-
toolbar: [
|
|
36
|
-
[{ 'font': [] }],
|
|
37
|
-
[{ 'color': [] }, { 'background': [] }],
|
|
38
|
+
toolbar: this.configTools || [
|
|
39
|
+
//[{ 'font': [] }],
|
|
40
|
+
//[{ 'color': [] }, { 'background': [] }],
|
|
38
41
|
|
|
39
42
|
[{ 'size': ['small', false, 'large', 'huge'] }], // custom dropdown
|
|
40
|
-
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
|
43
|
+
//[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
|
41
44
|
|
|
42
|
-
[{ 'align': '' }, {'align': 'center'}, {'align': 'justify'}, {'align': 'right'}],
|
|
45
|
+
//[{ 'align': '' }, {'align': 'center'}, {'align': 'justify'}, {'align': 'right'}],
|
|
43
46
|
|
|
44
47
|
['bold', 'italic', 'underline', 'strike'], // toggled buttons
|
|
45
48
|
|
|
46
49
|
[ 'link', 'image' ], // add's image support
|
|
47
50
|
|
|
48
|
-
['blockquote', 'code-block'],
|
|
51
|
+
//['blockquote', 'code-block'],
|
|
49
52
|
|
|
50
53
|
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
|
51
|
-
[{ 'script': 'sub'}, { 'script': 'super' }], // superscript/subscript
|
|
54
|
+
//[{ 'script': 'sub'}, { 'script': 'super' }], // superscript/subscript
|
|
52
55
|
[{ 'indent': '-1'}, { 'indent': '+1' }], // outdent/indent
|
|
53
|
-
[{ 'direction': 'rtl' }], // text direction
|
|
56
|
+
//[{ 'direction': 'rtl' }], // text direction
|
|
54
57
|
|
|
55
58
|
['clean']
|
|
56
59
|
]
|
|
@@ -112,16 +115,15 @@ export default {
|
|
|
112
115
|
};
|
|
113
116
|
</script>
|
|
114
117
|
<style lang="scss">
|
|
115
|
-
|
|
116
118
|
.ql-clipboard {
|
|
117
|
-
|
|
119
|
+
display: none;
|
|
118
120
|
}
|
|
119
121
|
.ql-editor {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
margin-bottom: 1.5rem;
|
|
123
|
+
resize: vertical;
|
|
124
|
+
overflow-y: scroll;
|
|
123
125
|
}
|
|
124
126
|
.ql-container.ql-snow {
|
|
125
|
-
|
|
127
|
+
border: 0;
|
|
126
128
|
}
|
|
127
129
|
</style>
|