@vueup/vue-quill 1.2.1 → 1.3.0
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.
- package/dist/vue-quill.bubble.css +188 -91
- package/dist/vue-quill.bubble.prod.css +1 -1
- package/dist/vue-quill.cjs.js +371 -373
- package/dist/vue-quill.cjs.prod.js +4 -4
- package/dist/vue-quill.core.css +172 -81
- package/dist/vue-quill.core.prod.css +1 -1
- package/dist/vue-quill.d.ts +20 -21
- package/dist/vue-quill.esm-browser.js +15898 -18028
- package/dist/vue-quill.esm-browser.prod.js +4 -4
- package/dist/vue-quill.esm-bundler.js +370 -365
- package/dist/vue-quill.esm-bundler.prod.js +4 -4
- package/dist/vue-quill.global.js +16602 -18734
- package/dist/vue-quill.global.prod.js +4 -4
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VueQuill @vueup/vue-quill v1.
|
|
2
|
+
* VueQuill @vueup/vue-quill v1.3.0
|
|
3
3
|
* https://vueup.github.io/vue-quill/
|
|
4
4
|
*
|
|
5
|
-
* Includes quill
|
|
5
|
+
* Includes quill v2.0.2 || >=2.0.4 <3
|
|
6
6
|
* https://quilljs.com/
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) 2026 Ahmad Luthfi Masruri
|
|
9
9
|
* Released under the MIT license
|
|
10
|
-
* Date: 2026-06-
|
|
10
|
+
* Date: 2026-06-01T10:26:31.645Z
|
|
11
11
|
*/
|
|
12
|
-
"use strict";
|
|
12
|
+
"use strict";var e=require("quill"),t=require("quill-delta"),o=require("vue");const l={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},n=o.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>"string"!=typeof e||""===e||("#"===e.charAt(0)||-1!==Object.keys(l).indexOf(e))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(n,r)=>{let i,a;o.onMounted(()=>{u()}),o.onBeforeUnmount(()=>{i=null});const s=o.ref(),d=(t,o)=>{const l=e.imports;l&&t in l||e.register(t,o)},u=()=>{var t,o;if(s.value){if(a=c(),n.modules)if(Array.isArray(n.modules))for(const e of n.modules)d(`modules/${e.name}`,e.module);else d(`modules/${n.modules.name}`,n.modules.module);i=new e(s.value,a),x(n.content),i.on("text-change",v),i.on("selection-change",f),i.on("editor-change",y),"bubble"!==n.theme&&s.value.classList.remove("ql-bubble"),"snow"!==n.theme&&s.value.classList.remove("ql-snow"),null===(o=null===(t=m())||void 0===t?void 0:t.container)||void 0===o||o.addEventListener("mousedown",e=>{e.preventDefault()}),r.emit("ready",i)}},c=()=>{const e={};if(""!==n.theme&&(e.theme=n.theme),n.readOnly&&(e.readOnly=n.readOnly),n.placeholder&&(e.placeholder=n.placeholder),n.toolbar&&""!==n.toolbar&&(e.modules={toolbar:(()=>{if("object"==typeof n.toolbar)return n.toolbar;if("string"==typeof n.toolbar){return"#"===n.toolbar.charAt(0)?n.toolbar:l[n.toolbar]}})()}),n.modules){const t=(()=>{var e,t;const o={};if(Array.isArray(n.modules))for(const l of n.modules)o[l.name]=null!==(e=l.options)&&void 0!==e?e:{};else o[n.modules.name]=null!==(t=n.modules.options)&&void 0!==t?t:{};return o})();e.modules=Object.assign({},e.modules,t)}return Object.assign({},n.globalOptions,n.options,e)},b=e=>"object"==typeof e&&e?e.slice():e,m=()=>null==i?void 0:i.getModule("toolbar");let p;const h=e=>{if(typeof p==typeof e){if(e===p)return!0;if("object"==typeof e&&e&&"object"==typeof p&&p)return t=p.diff(e),!Object.values(t.ops).some(e=>!e.retain||1!==Object.keys(e).length)}var t;return!1},v=(e,t,o)=>{p=b(T()),h(n.content)||r.emit("update:content",p),r.emit("textChange",{delta:e,oldContents:t,source:o})},g=o.ref(),f=(e,t,o)=>{g.value=!!(null==i?void 0:i.hasFocus()),r.emit("selectionChange",{range:e,oldRange:t,source:o})};o.watch(g,e=>{r.emit(e?"focus":"blur",s)});const y=(...e)=>{"text-change"===e[0]&&r.emit("editorChange",{name:e[0],delta:e[1],oldContents:e[2],source:e[3]}),"selection-change"===e[0]&&r.emit("editorChange",{name:e[0],range:e[1],oldRange:e[2],source:e[3]})},T=(e,t)=>"html"===n.contentType?C():"text"===n.contentType?O(e,t):null==i?void 0:i.getContents(e,t),x=(e,o="api")=>{const l=e||("delta"===n.contentType?new t:"");"html"===n.contentType?j(l):"text"===n.contentType?q(l,o):null==i||i.setContents(l,o),p=b(l)},O=(e,t)=>{var o;return null!==(o=null==i?void 0:i.getText(e,t))&&void 0!==o?o:""},q=(e,t="api")=>{null==i||i.setText(e,t)},C=()=>{var e;return null!==(e=null==i?void 0:i.root.innerHTML)&&void 0!==e?e:""},j=e=>{i&&(i.root.innerHTML=e)};return o.watch(()=>n.content,e=>{if(!i||!e||h(e))return;const t=i.getSelection();t&&o.nextTick(()=>null==i?void 0:i.setSelection(t)),x(e)},{deep:!0}),o.watch(()=>n.enable,e=>{i&&i.enable(e)}),{editor:s,getEditor:()=>s.value,getToolbar:()=>{var e;return null===(e=m())||void 0===e?void 0:e.container},getQuill:()=>{if(i)return i;throw'The quill editor hasn\'t been instantiated yet,\n make sure to call this method when the editor ready\n or use v-on:ready="onReady(quill)" event instead.'},getContents:T,setContents:x,getHTML:C,setHTML:j,pasteHTML:(e,t="api")=>{const o=null==i?void 0:i.clipboard.convert({html:e});o&&(null==i||i.setContents(o,t))},focus:()=>{null==i||i.focus()},getText:O,setText:q,reinit:()=>{o.nextTick(()=>{var e,t;!r.slots.toolbar&&i&&(null===(t=null===(e=m())||void 0===e?void 0:e.container)||void 0===t||t.remove()),u()})}}},render(){var e,t;return[null===(t=(e=this.$slots).toolbar)||void 0===t?void 0:t.call(e),o.h("div",{ref:"editor",...this.$attrs})]}});exports.Quill=e,exports.Delta=t,exports.QuillEditor=n;
|
package/dist/vue-quill.core.css
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
.ql-container.ql-disabled .ql-tooltip {
|
|
10
10
|
visibility: hidden;
|
|
11
11
|
}
|
|
12
|
-
.ql-container.ql-disabled
|
|
13
|
-
|
|
12
|
+
.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,
|
|
13
|
+
.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui {
|
|
14
|
+
cursor: pointer;
|
|
14
15
|
}
|
|
15
16
|
.ql-clipboard {
|
|
16
17
|
left: -100000px;
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
}
|
|
26
27
|
.ql-editor {
|
|
27
28
|
box-sizing: border-box;
|
|
29
|
+
counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
28
30
|
line-height: 1.42;
|
|
29
31
|
height: 100%;
|
|
30
32
|
outline: none;
|
|
@@ -41,7 +43,6 @@
|
|
|
41
43
|
}
|
|
42
44
|
.ql-editor p,
|
|
43
45
|
.ql-editor ol,
|
|
44
|
-
.ql-editor ul,
|
|
45
46
|
.ql-editor pre,
|
|
46
47
|
.ql-editor blockquote,
|
|
47
48
|
.ql-editor h1,
|
|
@@ -52,144 +53,213 @@
|
|
|
52
53
|
.ql-editor h6 {
|
|
53
54
|
margin: 0;
|
|
54
55
|
padding: 0;
|
|
55
|
-
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
.ql-editor
|
|
57
|
+
@supports (counter-set: none) {
|
|
58
|
+
.ql-editor p,
|
|
59
|
+
.ql-editor h1,
|
|
60
|
+
.ql-editor h2,
|
|
61
|
+
.ql-editor h3,
|
|
62
|
+
.ql-editor h4,
|
|
63
|
+
.ql-editor h5,
|
|
64
|
+
.ql-editor h6 {
|
|
65
|
+
counter-set: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@supports not (counter-set: none) {
|
|
69
|
+
.ql-editor p,
|
|
70
|
+
.ql-editor h1,
|
|
71
|
+
.ql-editor h2,
|
|
72
|
+
.ql-editor h3,
|
|
73
|
+
.ql-editor h4,
|
|
74
|
+
.ql-editor h5,
|
|
75
|
+
.ql-editor h6 {
|
|
76
|
+
counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.ql-editor table {
|
|
80
|
+
border-collapse: collapse;
|
|
81
|
+
}
|
|
82
|
+
.ql-editor td {
|
|
83
|
+
border: 1px solid #000;
|
|
84
|
+
padding: 2px 5px;
|
|
85
|
+
}
|
|
86
|
+
.ql-editor ol {
|
|
59
87
|
padding-left: 1.5em;
|
|
60
88
|
}
|
|
61
|
-
.ql-editor
|
|
62
|
-
.ql-editor ul > li {
|
|
89
|
+
.ql-editor li {
|
|
63
90
|
list-style-type: none;
|
|
91
|
+
padding-left: 1.5em;
|
|
92
|
+
position: relative;
|
|
64
93
|
}
|
|
65
|
-
.ql-editor
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.ql-editor ul[data-checked=true] > li *,
|
|
73
|
-
.ql-editor ul[data-checked=false] > li * {
|
|
74
|
-
pointer-events: all;
|
|
94
|
+
.ql-editor li > .ql-ui:before {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
margin-left: -1.5em;
|
|
97
|
+
margin-right: 0.3em;
|
|
98
|
+
text-align: right;
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
width: 1.2em;
|
|
75
101
|
}
|
|
76
|
-
.ql-editor
|
|
77
|
-
.ql-editor
|
|
102
|
+
.ql-editor li[data-list=checked] > .ql-ui,
|
|
103
|
+
.ql-editor li[data-list=unchecked] > .ql-ui {
|
|
78
104
|
color: #777;
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
pointer-events: all;
|
|
81
105
|
}
|
|
82
|
-
.ql-editor
|
|
106
|
+
.ql-editor li[data-list=bullet] > .ql-ui:before {
|
|
107
|
+
content: '\2022';
|
|
108
|
+
}
|
|
109
|
+
.ql-editor li[data-list=checked] > .ql-ui:before {
|
|
83
110
|
content: '\2611';
|
|
84
111
|
}
|
|
85
|
-
.ql-editor
|
|
112
|
+
.ql-editor li[data-list=unchecked] > .ql-ui:before {
|
|
86
113
|
content: '\2610';
|
|
87
114
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
115
|
+
@supports (counter-set: none) {
|
|
116
|
+
.ql-editor li[data-list] {
|
|
117
|
+
counter-set: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
118
|
+
}
|
|
92
119
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
120
|
+
@supports not (counter-set: none) {
|
|
121
|
+
.ql-editor li[data-list] {
|
|
122
|
+
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
123
|
+
}
|
|
97
124
|
}
|
|
98
|
-
.ql-editor li
|
|
99
|
-
margin-left: 0.3em;
|
|
100
|
-
margin-right: -1.5em;
|
|
101
|
-
}
|
|
102
|
-
.ql-editor ol li:not(.ql-direction-rtl),
|
|
103
|
-
.ql-editor ul li:not(.ql-direction-rtl) {
|
|
104
|
-
padding-left: 1.5em;
|
|
105
|
-
}
|
|
106
|
-
.ql-editor ol li.ql-direction-rtl,
|
|
107
|
-
.ql-editor ul li.ql-direction-rtl {
|
|
108
|
-
padding-right: 1.5em;
|
|
109
|
-
}
|
|
110
|
-
.ql-editor ol li {
|
|
111
|
-
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
125
|
+
.ql-editor li[data-list=ordered] {
|
|
112
126
|
counter-increment: list-0;
|
|
113
127
|
}
|
|
114
|
-
.ql-editor
|
|
128
|
+
.ql-editor li[data-list=ordered] > .ql-ui:before {
|
|
115
129
|
content: counter(list-0, decimal) '. ';
|
|
116
130
|
}
|
|
117
|
-
.ql-editor
|
|
131
|
+
.ql-editor li[data-list=ordered].ql-indent-1 {
|
|
118
132
|
counter-increment: list-1;
|
|
119
133
|
}
|
|
120
|
-
.ql-editor
|
|
134
|
+
.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before {
|
|
121
135
|
content: counter(list-1, lower-alpha) '. ';
|
|
122
136
|
}
|
|
123
|
-
|
|
124
|
-
|
|
137
|
+
@supports (counter-set: none) {
|
|
138
|
+
.ql-editor li[data-list].ql-indent-1 {
|
|
139
|
+
counter-set: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@supports not (counter-set: none) {
|
|
143
|
+
.ql-editor li[data-list].ql-indent-1 {
|
|
144
|
+
counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
145
|
+
}
|
|
125
146
|
}
|
|
126
|
-
.ql-editor
|
|
147
|
+
.ql-editor li[data-list=ordered].ql-indent-2 {
|
|
127
148
|
counter-increment: list-2;
|
|
128
149
|
}
|
|
129
|
-
.ql-editor
|
|
150
|
+
.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before {
|
|
130
151
|
content: counter(list-2, lower-roman) '. ';
|
|
131
152
|
}
|
|
132
|
-
|
|
133
|
-
|
|
153
|
+
@supports (counter-set: none) {
|
|
154
|
+
.ql-editor li[data-list].ql-indent-2 {
|
|
155
|
+
counter-set: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@supports not (counter-set: none) {
|
|
159
|
+
.ql-editor li[data-list].ql-indent-2 {
|
|
160
|
+
counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
|
|
161
|
+
}
|
|
134
162
|
}
|
|
135
|
-
.ql-editor
|
|
163
|
+
.ql-editor li[data-list=ordered].ql-indent-3 {
|
|
136
164
|
counter-increment: list-3;
|
|
137
165
|
}
|
|
138
|
-
.ql-editor
|
|
166
|
+
.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before {
|
|
139
167
|
content: counter(list-3, decimal) '. ';
|
|
140
168
|
}
|
|
141
|
-
|
|
142
|
-
|
|
169
|
+
@supports (counter-set: none) {
|
|
170
|
+
.ql-editor li[data-list].ql-indent-3 {
|
|
171
|
+
counter-set: list-4 list-5 list-6 list-7 list-8 list-9;
|
|
172
|
+
}
|
|
143
173
|
}
|
|
144
|
-
|
|
174
|
+
@supports not (counter-set: none) {
|
|
175
|
+
.ql-editor li[data-list].ql-indent-3 {
|
|
176
|
+
counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.ql-editor li[data-list=ordered].ql-indent-4 {
|
|
145
180
|
counter-increment: list-4;
|
|
146
181
|
}
|
|
147
|
-
.ql-editor
|
|
182
|
+
.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before {
|
|
148
183
|
content: counter(list-4, lower-alpha) '. ';
|
|
149
184
|
}
|
|
150
|
-
|
|
151
|
-
|
|
185
|
+
@supports (counter-set: none) {
|
|
186
|
+
.ql-editor li[data-list].ql-indent-4 {
|
|
187
|
+
counter-set: list-5 list-6 list-7 list-8 list-9;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
@supports not (counter-set: none) {
|
|
191
|
+
.ql-editor li[data-list].ql-indent-4 {
|
|
192
|
+
counter-reset: list-5 list-6 list-7 list-8 list-9;
|
|
193
|
+
}
|
|
152
194
|
}
|
|
153
|
-
.ql-editor
|
|
195
|
+
.ql-editor li[data-list=ordered].ql-indent-5 {
|
|
154
196
|
counter-increment: list-5;
|
|
155
197
|
}
|
|
156
|
-
.ql-editor
|
|
198
|
+
.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before {
|
|
157
199
|
content: counter(list-5, lower-roman) '. ';
|
|
158
200
|
}
|
|
159
|
-
|
|
160
|
-
|
|
201
|
+
@supports (counter-set: none) {
|
|
202
|
+
.ql-editor li[data-list].ql-indent-5 {
|
|
203
|
+
counter-set: list-6 list-7 list-8 list-9;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@supports not (counter-set: none) {
|
|
207
|
+
.ql-editor li[data-list].ql-indent-5 {
|
|
208
|
+
counter-reset: list-6 list-7 list-8 list-9;
|
|
209
|
+
}
|
|
161
210
|
}
|
|
162
|
-
.ql-editor
|
|
211
|
+
.ql-editor li[data-list=ordered].ql-indent-6 {
|
|
163
212
|
counter-increment: list-6;
|
|
164
213
|
}
|
|
165
|
-
.ql-editor
|
|
214
|
+
.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before {
|
|
166
215
|
content: counter(list-6, decimal) '. ';
|
|
167
216
|
}
|
|
168
|
-
|
|
169
|
-
|
|
217
|
+
@supports (counter-set: none) {
|
|
218
|
+
.ql-editor li[data-list].ql-indent-6 {
|
|
219
|
+
counter-set: list-7 list-8 list-9;
|
|
220
|
+
}
|
|
170
221
|
}
|
|
171
|
-
|
|
222
|
+
@supports not (counter-set: none) {
|
|
223
|
+
.ql-editor li[data-list].ql-indent-6 {
|
|
224
|
+
counter-reset: list-7 list-8 list-9;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
.ql-editor li[data-list=ordered].ql-indent-7 {
|
|
172
228
|
counter-increment: list-7;
|
|
173
229
|
}
|
|
174
|
-
.ql-editor
|
|
230
|
+
.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before {
|
|
175
231
|
content: counter(list-7, lower-alpha) '. ';
|
|
176
232
|
}
|
|
177
|
-
|
|
178
|
-
|
|
233
|
+
@supports (counter-set: none) {
|
|
234
|
+
.ql-editor li[data-list].ql-indent-7 {
|
|
235
|
+
counter-set: list-8 list-9;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
@supports not (counter-set: none) {
|
|
239
|
+
.ql-editor li[data-list].ql-indent-7 {
|
|
240
|
+
counter-reset: list-8 list-9;
|
|
241
|
+
}
|
|
179
242
|
}
|
|
180
|
-
.ql-editor
|
|
243
|
+
.ql-editor li[data-list=ordered].ql-indent-8 {
|
|
181
244
|
counter-increment: list-8;
|
|
182
245
|
}
|
|
183
|
-
.ql-editor
|
|
246
|
+
.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before {
|
|
184
247
|
content: counter(list-8, lower-roman) '. ';
|
|
185
248
|
}
|
|
186
|
-
|
|
187
|
-
|
|
249
|
+
@supports (counter-set: none) {
|
|
250
|
+
.ql-editor li[data-list].ql-indent-8 {
|
|
251
|
+
counter-set: list-9;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
@supports not (counter-set: none) {
|
|
255
|
+
.ql-editor li[data-list].ql-indent-8 {
|
|
256
|
+
counter-reset: list-9;
|
|
257
|
+
}
|
|
188
258
|
}
|
|
189
|
-
.ql-editor
|
|
259
|
+
.ql-editor li[data-list=ordered].ql-indent-9 {
|
|
190
260
|
counter-increment: list-9;
|
|
191
261
|
}
|
|
192
|
-
.ql-editor
|
|
262
|
+
.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before {
|
|
193
263
|
content: counter(list-9, decimal) '. ';
|
|
194
264
|
}
|
|
195
265
|
.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
|
|
@@ -300,6 +370,24 @@
|
|
|
300
370
|
.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
|
|
301
371
|
padding-right: 28.5em;
|
|
302
372
|
}
|
|
373
|
+
.ql-editor li.ql-direction-rtl {
|
|
374
|
+
padding-right: 1.5em;
|
|
375
|
+
}
|
|
376
|
+
.ql-editor li.ql-direction-rtl > .ql-ui:before {
|
|
377
|
+
margin-left: 0.3em;
|
|
378
|
+
margin-right: -1.5em;
|
|
379
|
+
text-align: left;
|
|
380
|
+
}
|
|
381
|
+
.ql-editor table {
|
|
382
|
+
table-layout: fixed;
|
|
383
|
+
width: 100%;
|
|
384
|
+
}
|
|
385
|
+
.ql-editor table td {
|
|
386
|
+
outline: none;
|
|
387
|
+
}
|
|
388
|
+
.ql-editor .ql-code-block-container {
|
|
389
|
+
font-family: monospace;
|
|
390
|
+
}
|
|
303
391
|
.ql-editor .ql-video {
|
|
304
392
|
display: block;
|
|
305
393
|
max-width: 100%;
|
|
@@ -380,6 +468,9 @@
|
|
|
380
468
|
.ql-editor .ql-align-right {
|
|
381
469
|
text-align: right;
|
|
382
470
|
}
|
|
471
|
+
.ql-editor .ql-ui {
|
|
472
|
+
position: absolute;
|
|
473
|
+
}
|
|
383
474
|
.ql-editor.ql-blank::before {
|
|
384
475
|
color: rgba(0,0,0,0.6);
|
|
385
476
|
content: attr(data-placeholder);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol > li,.ql-editor ul > li{list-style-type:none}.ql-editor ul > li::before{content:'\2022'}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true] > li *,.ql-editor ul[data-checked=false] > li *{pointer-events:all}.ql-editor ul[data-checked=true] > li::before,.ql-editor ul[data-checked=false] > li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true] > li::before{content:'\2611'}.ql-editor ul[data-checked=false] > li::before{content:'\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl)::before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl::before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0, decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1, lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2, lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3, decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4, lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5, lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6, decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7, lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8, lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}
|
|
1
|
+
.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li > .ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked] > .ql-ui,.ql-editor li[data-list=unchecked] > .ql-ui{color:#777}.ql-editor li[data-list=bullet] > .ql-ui:before{content:'\2022'}.ql-editor li[data-list=checked] > .ql-ui:before{content:'\2611'}.ql-editor li[data-list=unchecked] > .ql-ui:before{content:'\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered] > .ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl > .ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}
|
package/dist/vue-quill.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
|
-
import { ComponentCustomProps } from 'vue';
|
|
3
1
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
4
3
|
import { DefineComponent } from 'vue';
|
|
5
4
|
import Delta from 'quill-delta';
|
|
5
|
+
import type { EmitterSource } from 'quill';
|
|
6
6
|
import { ExtractPropTypes } from 'vue';
|
|
7
7
|
import { PropType } from 'vue';
|
|
8
|
+
import { PublicProps } from 'vue';
|
|
8
9
|
import Quill from 'quill';
|
|
9
|
-
import {
|
|
10
|
+
import type { QuillOptions } from 'quill';
|
|
10
11
|
import { Ref } from 'vue';
|
|
11
|
-
import { Sources } from 'quill';
|
|
12
|
-
import { VNodeProps } from 'vue';
|
|
13
12
|
|
|
14
13
|
declare type ContentPropType = string | Delta | undefined | null;
|
|
15
14
|
|
|
@@ -23,7 +22,7 @@ declare type Module = {
|
|
|
23
22
|
|
|
24
23
|
export { Quill }
|
|
25
24
|
|
|
26
|
-
export declare const QuillEditor: DefineComponent< {
|
|
25
|
+
export declare const QuillEditor: DefineComponent<ExtractPropTypes< {
|
|
27
26
|
content: {
|
|
28
27
|
type: PropType<ContentPropType>;
|
|
29
28
|
};
|
|
@@ -45,7 +44,7 @@ type: StringConstructor;
|
|
|
45
44
|
required: false;
|
|
46
45
|
};
|
|
47
46
|
theme: {
|
|
48
|
-
type: PropType<"" | "
|
|
47
|
+
type: PropType<"snow" | "bubble" | "">;
|
|
49
48
|
default: string;
|
|
50
49
|
validator: (value: string) => boolean;
|
|
51
50
|
};
|
|
@@ -59,28 +58,28 @@ type: PropType<Module | Module[]>;
|
|
|
59
58
|
required: false;
|
|
60
59
|
};
|
|
61
60
|
options: {
|
|
62
|
-
type: PropType<
|
|
61
|
+
type: PropType<QuillOptions>;
|
|
63
62
|
required: false;
|
|
64
63
|
};
|
|
65
64
|
globalOptions: {
|
|
66
|
-
type: PropType<
|
|
65
|
+
type: PropType<QuillOptions>;
|
|
67
66
|
required: false;
|
|
68
67
|
};
|
|
69
|
-
}
|
|
70
|
-
editor: Ref<
|
|
68
|
+
}>, {
|
|
69
|
+
editor: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
71
70
|
getEditor: () => Element;
|
|
72
71
|
getToolbar: () => Element;
|
|
73
72
|
getQuill: () => Quill;
|
|
74
73
|
getContents: (index?: number, length?: number) => string | Delta | undefined;
|
|
75
|
-
setContents: (content: ContentPropType, source?:
|
|
74
|
+
setContents: (content: ContentPropType, source?: EmitterSource) => void;
|
|
76
75
|
getHTML: () => string;
|
|
77
76
|
setHTML: (html: string) => void;
|
|
78
|
-
pasteHTML: (html: string, source?:
|
|
77
|
+
pasteHTML: (html: string, source?: EmitterSource) => void;
|
|
79
78
|
focus: () => void;
|
|
80
79
|
getText: (index?: number, length?: number) => string;
|
|
81
|
-
setText: (text: string, source?:
|
|
80
|
+
setText: (text: string, source?: EmitterSource) => void;
|
|
82
81
|
reinit: () => void;
|
|
83
|
-
},
|
|
82
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("textChange" | "selectionChange" | "editorChange" | "update:content" | "focus" | "blur" | "ready")[], "textChange" | "selectionChange" | "editorChange" | "update:content" | "focus" | "blur" | "ready", PublicProps, Readonly<ExtractPropTypes< {
|
|
84
83
|
content: {
|
|
85
84
|
type: PropType<ContentPropType>;
|
|
86
85
|
};
|
|
@@ -102,7 +101,7 @@ type: StringConstructor;
|
|
|
102
101
|
required: false;
|
|
103
102
|
};
|
|
104
103
|
theme: {
|
|
105
|
-
type: PropType<"" | "
|
|
104
|
+
type: PropType<"snow" | "bubble" | "">;
|
|
106
105
|
default: string;
|
|
107
106
|
validator: (value: string) => boolean;
|
|
108
107
|
};
|
|
@@ -116,14 +115,14 @@ type: PropType<Module | Module[]>;
|
|
|
116
115
|
required: false;
|
|
117
116
|
};
|
|
118
117
|
options: {
|
|
119
|
-
type: PropType<
|
|
118
|
+
type: PropType<QuillOptions>;
|
|
120
119
|
required: false;
|
|
121
120
|
};
|
|
122
121
|
globalOptions: {
|
|
123
|
-
type: PropType<
|
|
122
|
+
type: PropType<QuillOptions>;
|
|
124
123
|
required: false;
|
|
125
124
|
};
|
|
126
|
-
}>> & {
|
|
125
|
+
}>> & Readonly<{
|
|
127
126
|
onTextChange?: ((...args: any[]) => any) | undefined;
|
|
128
127
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
129
128
|
onEditorChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -131,11 +130,11 @@ onEditorChange?: ((...args: any[]) => any) | undefined;
|
|
|
131
130
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
132
131
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
133
132
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
134
|
-
}
|
|
133
|
+
}>, {
|
|
135
134
|
contentType: "delta" | "html" | "text";
|
|
136
135
|
enable: boolean;
|
|
137
136
|
readOnly: boolean;
|
|
138
137
|
theme: "" | "snow" | "bubble";
|
|
139
|
-
}>;
|
|
138
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
140
139
|
|
|
141
140
|
export { }
|