@itshixun/qckeditor-vue3 1.0.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/README.md +191 -0
- package/dist/index.css +4 -0
- package/dist/index.d.ts +259 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +359 -0
- package/dist/src/components/CKEditor.vue.d.ts +30 -0
- package/dist/src/components/CKEditor.vue.d.ts.map +1 -0
- package/dist/src/components/QCKClassic.vue.d.ts +52 -0
- package/dist/src/components/QCKClassic.vue.d.ts.map +1 -0
- package/dist/src/components/QCKContent.vue.d.ts +21 -0
- package/dist/src/components/QCKContent.vue.d.ts.map +1 -0
- package/dist/src/components/QCKEditorPro.vue.d.ts +134 -0
- package/dist/src/components/QCKEditorPro.vue.d.ts.map +1 -0
- package/dist/src/types.d.ts +25 -0
- package/dist/src/types.d.ts.map +1 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
export { default as CKEditor } from './src/components/CKEditor.vue';
|
|
2
|
+
export { default as QCKClassic } from './src/components/QCKClassic.vue';
|
|
3
|
+
export { default as QCKEditorPro } from './src/components/QCKEditorPro.vue';
|
|
4
|
+
export { default as QCKContent } from './src/components/QCKContent.vue';
|
|
5
|
+
export type { Props, ExtractEditorType } from './src/types';
|
|
6
|
+
declare const _default: {
|
|
7
|
+
CKEditor: <TEditor extends {
|
|
8
|
+
create(...args: any[]): Promise<import('ckeditor5').Editor>;
|
|
9
|
+
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {};
|
|
12
|
+
emit: (((evt: "update:modelValue", data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "ready", editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "destroy") => void) & ((evt: "blur", event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "focus", event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "input", data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void)) & ((evt: "update:modelValue", value: string) => void);
|
|
13
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
14
|
+
props: {
|
|
15
|
+
readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
16
|
+
readonly onReady?: ((editor: import('.').ExtractEditorType<TEditor>) => any) | undefined;
|
|
17
|
+
readonly onDestroy?: (() => any) | undefined;
|
|
18
|
+
readonly onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => any) | undefined;
|
|
19
|
+
readonly onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => any) | undefined;
|
|
20
|
+
readonly onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => any) | undefined;
|
|
21
|
+
modelValue?: string | undefined;
|
|
22
|
+
editor: TEditor;
|
|
23
|
+
config?: import('ckeditor5').EditorConfig | undefined;
|
|
24
|
+
tagName?: string | undefined;
|
|
25
|
+
disabled?: boolean | undefined;
|
|
26
|
+
disableTwoWayDataBinding?: boolean | undefined;
|
|
27
|
+
} & import('vue').PublicProps;
|
|
28
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
29
|
+
instance: import('vue').Ref<import('.').ExtractEditorType<TEditor> | undefined, import('.').ExtractEditorType<TEditor> | undefined>;
|
|
30
|
+
lastEditorData: import('vue').Ref<string | undefined, string | undefined>;
|
|
31
|
+
}>): void;
|
|
32
|
+
attrs: any;
|
|
33
|
+
slots: {};
|
|
34
|
+
emit: (((evt: "update:modelValue", data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "ready", editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "destroy") => void) & ((evt: "blur", event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "focus", event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void) & ((evt: "input", data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').ExtractEditorType<TEditor>) => void)) & ((evt: "update:modelValue", value: string) => void);
|
|
35
|
+
}>) => import('vue').VNode & {
|
|
36
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
37
|
+
};
|
|
38
|
+
QCKClassic: import('vue').DefineComponent<{
|
|
39
|
+
modelValue?: string;
|
|
40
|
+
} & {
|
|
41
|
+
config?: import('ckeditor5').EditorConfig;
|
|
42
|
+
tagName?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
disableTwoWayDataBinding?: boolean;
|
|
45
|
+
}, {
|
|
46
|
+
ckeditorRef: import('vue').Ref<{
|
|
47
|
+
instance: import('ckeditor5').ClassicEditor | undefined;
|
|
48
|
+
lastEditorData: string | undefined;
|
|
49
|
+
} | null, {
|
|
50
|
+
instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined>;
|
|
51
|
+
lastEditorData: import('vue').Ref<string | undefined>;
|
|
52
|
+
} | {
|
|
53
|
+
instance: import('ckeditor5').ClassicEditor | undefined;
|
|
54
|
+
lastEditorData: string | undefined;
|
|
55
|
+
} | null>;
|
|
56
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
"update:modelValue": (value: string) => any;
|
|
58
|
+
ready: (editor: import('ckeditor5').ClassicEditor) => any;
|
|
59
|
+
destroy: () => any;
|
|
60
|
+
blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
61
|
+
focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
62
|
+
input: (data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
63
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
64
|
+
modelValue?: string;
|
|
65
|
+
} & {
|
|
66
|
+
config?: import('ckeditor5').EditorConfig;
|
|
67
|
+
tagName?: string;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
disableTwoWayDataBinding?: boolean;
|
|
70
|
+
}> & Readonly<{
|
|
71
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
72
|
+
onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
73
|
+
onDestroy?: (() => any) | undefined;
|
|
74
|
+
onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
75
|
+
onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
76
|
+
onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
config: import('ckeditor5').EditorConfig;
|
|
79
|
+
tagName: string;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
disableTwoWayDataBinding: boolean;
|
|
82
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
83
|
+
ckeditorRef: import('vue').ShallowUnwrapRef<{
|
|
84
|
+
instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined, import('ckeditor5').ClassicEditor | undefined>;
|
|
85
|
+
lastEditorData: import('vue').Ref<string | undefined, string | undefined>;
|
|
86
|
+
}> | null;
|
|
87
|
+
}, any>;
|
|
88
|
+
QCKEditorPro: import('vue').DefineComponent<{
|
|
89
|
+
modelValue?: string;
|
|
90
|
+
} & {
|
|
91
|
+
config?: import('ckeditor5').EditorConfig;
|
|
92
|
+
tagName?: string;
|
|
93
|
+
disabled?: boolean;
|
|
94
|
+
disableTwoWayDataBinding?: boolean;
|
|
95
|
+
content?: string;
|
|
96
|
+
containerClass?: string;
|
|
97
|
+
sanitize?: boolean;
|
|
98
|
+
placeholder?: string;
|
|
99
|
+
minHeight?: number;
|
|
100
|
+
height?: number;
|
|
101
|
+
fitHeight?: boolean;
|
|
102
|
+
contentBgColor?: string;
|
|
103
|
+
contentBgHoverColor?: string;
|
|
104
|
+
borderRadius?: number;
|
|
105
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
106
|
+
"update:modelValue": (value: string) => any;
|
|
107
|
+
ready: (editor: import('ckeditor5').ClassicEditor) => any;
|
|
108
|
+
destroy: () => any;
|
|
109
|
+
blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
110
|
+
focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
111
|
+
input: (data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
112
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
113
|
+
modelValue?: string;
|
|
114
|
+
} & {
|
|
115
|
+
config?: import('ckeditor5').EditorConfig;
|
|
116
|
+
tagName?: string;
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
disableTwoWayDataBinding?: boolean;
|
|
119
|
+
content?: string;
|
|
120
|
+
containerClass?: string;
|
|
121
|
+
sanitize?: boolean;
|
|
122
|
+
placeholder?: string;
|
|
123
|
+
minHeight?: number;
|
|
124
|
+
height?: number;
|
|
125
|
+
fitHeight?: boolean;
|
|
126
|
+
contentBgColor?: string;
|
|
127
|
+
contentBgHoverColor?: string;
|
|
128
|
+
borderRadius?: number;
|
|
129
|
+
}> & Readonly<{
|
|
130
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
131
|
+
onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
132
|
+
onDestroy?: (() => any) | undefined;
|
|
133
|
+
onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
134
|
+
onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
135
|
+
onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
136
|
+
}>, {
|
|
137
|
+
config: import('ckeditor5').EditorConfig;
|
|
138
|
+
tagName: string;
|
|
139
|
+
disabled: boolean;
|
|
140
|
+
disableTwoWayDataBinding: boolean;
|
|
141
|
+
placeholder: string;
|
|
142
|
+
content: string;
|
|
143
|
+
containerClass: string;
|
|
144
|
+
sanitize: boolean;
|
|
145
|
+
minHeight: number;
|
|
146
|
+
height: number;
|
|
147
|
+
fitHeight: boolean;
|
|
148
|
+
contentBgColor: string;
|
|
149
|
+
contentBgHoverColor: string;
|
|
150
|
+
borderRadius: number;
|
|
151
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
152
|
+
container: HTMLDivElement;
|
|
153
|
+
classicRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
154
|
+
modelValue?: string;
|
|
155
|
+
} & {
|
|
156
|
+
config?: import('ckeditor5').EditorConfig;
|
|
157
|
+
tagName?: string;
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
disableTwoWayDataBinding?: boolean;
|
|
160
|
+
}> & Readonly<{
|
|
161
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
162
|
+
onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
163
|
+
onDestroy?: (() => any) | undefined;
|
|
164
|
+
onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
165
|
+
onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
166
|
+
onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
167
|
+
}>, {
|
|
168
|
+
ckeditorRef: import('vue').Ref<{
|
|
169
|
+
instance: import('ckeditor5').ClassicEditor | undefined;
|
|
170
|
+
lastEditorData: string | undefined;
|
|
171
|
+
} | null, {
|
|
172
|
+
instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined>;
|
|
173
|
+
lastEditorData: import('vue').Ref<string | undefined>;
|
|
174
|
+
} | {
|
|
175
|
+
instance: import('ckeditor5').ClassicEditor | undefined;
|
|
176
|
+
lastEditorData: string | undefined;
|
|
177
|
+
} | null>;
|
|
178
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
179
|
+
"update:modelValue": (value: string) => any;
|
|
180
|
+
ready: (editor: import('ckeditor5').ClassicEditor) => any;
|
|
181
|
+
destroy: () => any;
|
|
182
|
+
blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
183
|
+
focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
184
|
+
input: (data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
185
|
+
}, import('vue').PublicProps, {
|
|
186
|
+
config: import('ckeditor5').EditorConfig;
|
|
187
|
+
tagName: string;
|
|
188
|
+
disabled: boolean;
|
|
189
|
+
disableTwoWayDataBinding: boolean;
|
|
190
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
191
|
+
ckeditorRef: import('vue').ShallowUnwrapRef<{
|
|
192
|
+
instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined, import('ckeditor5').ClassicEditor | undefined>;
|
|
193
|
+
lastEditorData: import('vue').Ref<string | undefined, string | undefined>;
|
|
194
|
+
}> | null;
|
|
195
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
196
|
+
P: {};
|
|
197
|
+
B: {};
|
|
198
|
+
D: {};
|
|
199
|
+
C: {};
|
|
200
|
+
M: {};
|
|
201
|
+
Defaults: {};
|
|
202
|
+
}, Readonly<{
|
|
203
|
+
modelValue?: string;
|
|
204
|
+
} & {
|
|
205
|
+
config?: import('ckeditor5').EditorConfig;
|
|
206
|
+
tagName?: string;
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
disableTwoWayDataBinding?: boolean;
|
|
209
|
+
}> & Readonly<{
|
|
210
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
211
|
+
onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
212
|
+
onDestroy?: (() => any) | undefined;
|
|
213
|
+
onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
214
|
+
onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
215
|
+
onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
216
|
+
}>, {
|
|
217
|
+
ckeditorRef: import('vue').Ref<{
|
|
218
|
+
instance: import('ckeditor5').ClassicEditor | undefined;
|
|
219
|
+
lastEditorData: string | undefined;
|
|
220
|
+
} | null, {
|
|
221
|
+
instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined>;
|
|
222
|
+
lastEditorData: import('vue').Ref<string | undefined>;
|
|
223
|
+
} | {
|
|
224
|
+
instance: import('ckeditor5').ClassicEditor | undefined;
|
|
225
|
+
lastEditorData: string | undefined;
|
|
226
|
+
} | null>;
|
|
227
|
+
}, {}, {}, {}, {
|
|
228
|
+
config: import('ckeditor5').EditorConfig;
|
|
229
|
+
tagName: string;
|
|
230
|
+
disabled: boolean;
|
|
231
|
+
disableTwoWayDataBinding: boolean;
|
|
232
|
+
}> | null;
|
|
233
|
+
}, HTMLDivElement>;
|
|
234
|
+
QCKContent: import('vue').DefineComponent<{
|
|
235
|
+
modelValue?: string;
|
|
236
|
+
} & {
|
|
237
|
+
content?: string;
|
|
238
|
+
containerClass?: string;
|
|
239
|
+
sanitize?: boolean;
|
|
240
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
241
|
+
"update:modelValue": (value: string) => any;
|
|
242
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
243
|
+
modelValue?: string;
|
|
244
|
+
} & {
|
|
245
|
+
content?: string;
|
|
246
|
+
containerClass?: string;
|
|
247
|
+
sanitize?: boolean;
|
|
248
|
+
}> & Readonly<{
|
|
249
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
250
|
+
}>, {
|
|
251
|
+
content: string;
|
|
252
|
+
containerClass: string;
|
|
253
|
+
sanitize: boolean;
|
|
254
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
255
|
+
container: HTMLDivElement;
|
|
256
|
+
}, HTMLDivElement>;
|
|
257
|
+
};
|
|
258
|
+
export default _default;
|
|
259
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAGxE,YAAY,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;;;eAcssM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAipT,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANv5f,wBAKE"}
|