@itshixun/qckeditor-vue3 1.1.2 → 1.1.4
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 +91 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +234 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3197 -3082
- package/dist/src/components/QCKClassic.vue.d.ts +89 -13
- package/dist/src/components/QCKClassic.vue.d.ts.map +1 -1
- package/dist/src/components/QCKEditor.vue.d.ts +57 -0
- package/dist/src/components/QCKEditor.vue.d.ts.map +1 -0
- package/dist/src/components/QCKEditorPro.vue.d.ts +90 -17
- package/dist/src/components/QCKEditorPro.vue.d.ts.map +1 -1
- package/dist/src/types.d.ts +10 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/headingConfig.d.ts +3 -0
- package/dist/src/utils/headingConfig.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ClassicEditor, EventInfo, EditorConfig } from 'ckeditor5';
|
|
3
|
-
import { ExtractEditorType } from '../types';
|
|
4
|
-
type ClassicEditorType = ExtractEditorType<typeof ClassicEditor>;
|
|
5
|
-
type CKEditorExposed = {
|
|
6
|
-
instance: Ref<ClassicEditorType | undefined>;
|
|
7
|
-
lastEditorData: Ref<string | undefined>;
|
|
8
|
-
};
|
|
9
3
|
type __VLS_Props = {
|
|
10
4
|
config?: EditorConfig;
|
|
11
5
|
tagName?: string;
|
|
@@ -17,10 +11,7 @@ type __VLS_PublicProps = {
|
|
|
17
11
|
modelValue?: string;
|
|
18
12
|
} & __VLS_Props;
|
|
19
13
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
20
|
-
ckeditorRef:
|
|
21
|
-
instance: ClassicEditor | undefined;
|
|
22
|
-
lastEditorData: string | undefined;
|
|
23
|
-
} | null, CKEditorExposed | {
|
|
14
|
+
ckeditorRef: import('vue').ComputedRef<{
|
|
24
15
|
instance: ClassicEditor | undefined;
|
|
25
16
|
lastEditorData: string | undefined;
|
|
26
17
|
} | null>;
|
|
@@ -45,9 +36,94 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
45
36
|
disableTwoWayDataBinding: boolean;
|
|
46
37
|
dataNormalizer: (data: string) => string;
|
|
47
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
qckEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
40
|
+
modelValue?: string;
|
|
41
|
+
} & {
|
|
42
|
+
type?: import('../types').QEditorType;
|
|
43
|
+
config?: EditorConfig;
|
|
44
|
+
tagName?: string;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
disableTwoWayDataBinding?: boolean;
|
|
47
|
+
dataNormalizer?: (data: string) => string;
|
|
48
|
+
}> & Readonly<{
|
|
49
|
+
onBlur?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
50
|
+
onFocus?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
51
|
+
onInput?: ((data: string, event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
52
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
53
|
+
onReady?: ((editor: import('../types').QEditorInstance) => any) | undefined;
|
|
54
|
+
onDestroy?: (() => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
ckeditorRef: Ref<{
|
|
57
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
58
|
+
lastEditorData: string | undefined;
|
|
59
|
+
} | null, {
|
|
60
|
+
instance: Ref<import('../types').QEditorInstance | undefined>;
|
|
61
|
+
lastEditorData: Ref<string | undefined>;
|
|
62
|
+
} | {
|
|
63
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
64
|
+
lastEditorData: string | undefined;
|
|
65
|
+
} | null>;
|
|
66
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
blur: (event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any;
|
|
68
|
+
focus: (event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any;
|
|
69
|
+
input: (data: string, event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any;
|
|
70
|
+
"update:modelValue": (value: string) => any;
|
|
71
|
+
ready: (editor: import('../types').QEditorInstance) => any;
|
|
72
|
+
destroy: () => any;
|
|
73
|
+
}, import('vue').PublicProps, {
|
|
74
|
+
type: import('../types').QEditorType;
|
|
75
|
+
config: EditorConfig;
|
|
76
|
+
tagName: string;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
disableTwoWayDataBinding: boolean;
|
|
79
|
+
dataNormalizer: (data: string) => string;
|
|
80
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
81
|
+
toolbarRef: HTMLDivElement;
|
|
82
|
+
ckeditorRef: import('vue').ShallowUnwrapRef<{
|
|
83
|
+
instance: Ref<ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined, ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined>;
|
|
84
|
+
lastEditorData: Ref<string, string>;
|
|
85
|
+
}> | null;
|
|
86
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
87
|
+
P: {};
|
|
88
|
+
B: {};
|
|
89
|
+
D: {};
|
|
90
|
+
C: {};
|
|
91
|
+
M: {};
|
|
92
|
+
Defaults: {};
|
|
93
|
+
}, Readonly<{
|
|
94
|
+
modelValue?: string;
|
|
95
|
+
} & {
|
|
96
|
+
type?: import('../types').QEditorType;
|
|
97
|
+
config?: EditorConfig;
|
|
98
|
+
tagName?: string;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
disableTwoWayDataBinding?: boolean;
|
|
101
|
+
dataNormalizer?: (data: string) => string;
|
|
102
|
+
}> & Readonly<{
|
|
103
|
+
onBlur?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
104
|
+
onFocus?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
105
|
+
onInput?: ((data: string, event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
106
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
107
|
+
onReady?: ((editor: import('../types').QEditorInstance) => any) | undefined;
|
|
108
|
+
onDestroy?: (() => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
ckeditorRef: Ref<{
|
|
111
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
112
|
+
lastEditorData: string | undefined;
|
|
113
|
+
} | null, {
|
|
114
|
+
instance: Ref<import('../types').QEditorInstance | undefined>;
|
|
115
|
+
lastEditorData: Ref<string | undefined>;
|
|
116
|
+
} | {
|
|
117
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
118
|
+
lastEditorData: string | undefined;
|
|
119
|
+
} | null>;
|
|
120
|
+
}, {}, {}, {}, {
|
|
121
|
+
type: import('../types').QEditorType;
|
|
122
|
+
config: EditorConfig;
|
|
123
|
+
tagName: string;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
disableTwoWayDataBinding: boolean;
|
|
126
|
+
dataNormalizer: (data: string) => string;
|
|
51
127
|
}> | null;
|
|
52
128
|
}, any>;
|
|
53
129
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCKClassic.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKClassic.vue"],"names":[],"mappings":"AAgBA;
|
|
1
|
+
{"version":3,"file":"QCKClassic.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKClassic.vue"],"names":[],"mappings":"AAgBA;AAwEE,OAAO,EAAiB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAiB7E,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C,CAAC;AA4CN,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;YAnDD,YAAY;aACX,MAAM;cACL,OAAO;8BACS,OAAO;oBACjB,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4I/C,wBAWG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ClassicEditor, InlineEditor, DecoupledEditor, EventInfo, EditorConfig } from 'ckeditor5';
|
|
3
|
+
import { QEditorInstance, QEditorType } from '../types';
|
|
4
|
+
type CKEditorExposed = {
|
|
5
|
+
instance: Ref<QEditorInstance | undefined>;
|
|
6
|
+
lastEditorData: Ref<string | undefined>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
/** 编辑器类型:classic / inline / document */
|
|
10
|
+
type?: QEditorType;
|
|
11
|
+
config?: EditorConfig;
|
|
12
|
+
tagName?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
disableTwoWayDataBinding?: boolean;
|
|
15
|
+
dataNormalizer?: (data: string) => string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = {
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
} & __VLS_Props;
|
|
20
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
21
|
+
ckeditorRef: Ref<{
|
|
22
|
+
instance: QEditorInstance | undefined;
|
|
23
|
+
lastEditorData: string | undefined;
|
|
24
|
+
} | null, CKEditorExposed | {
|
|
25
|
+
instance: QEditorInstance | undefined;
|
|
26
|
+
lastEditorData: string | undefined;
|
|
27
|
+
} | null>;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
blur: (event: EventInfo<string, unknown>, editor: QEditorInstance) => any;
|
|
30
|
+
focus: (event: EventInfo<string, unknown>, editor: QEditorInstance) => any;
|
|
31
|
+
input: (data: string, event: EventInfo<string, unknown>, editor: QEditorInstance) => any;
|
|
32
|
+
"update:modelValue": (value: string) => any;
|
|
33
|
+
ready: (editor: QEditorInstance) => any;
|
|
34
|
+
destroy: () => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
+
onBlur?: ((event: EventInfo<string, unknown>, editor: QEditorInstance) => any) | undefined;
|
|
37
|
+
onFocus?: ((event: EventInfo<string, unknown>, editor: QEditorInstance) => any) | undefined;
|
|
38
|
+
onInput?: ((data: string, event: EventInfo<string, unknown>, editor: QEditorInstance) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
40
|
+
onReady?: ((editor: QEditorInstance) => any) | undefined;
|
|
41
|
+
onDestroy?: (() => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
type: QEditorType;
|
|
44
|
+
config: EditorConfig;
|
|
45
|
+
tagName: string;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
disableTwoWayDataBinding: boolean;
|
|
48
|
+
dataNormalizer: (data: string) => string;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
50
|
+
toolbarRef: HTMLDivElement;
|
|
51
|
+
ckeditorRef: import('vue').ShallowUnwrapRef<{
|
|
52
|
+
instance: Ref<ClassicEditor | InlineEditor | DecoupledEditor | undefined, ClassicEditor | InlineEditor | DecoupledEditor | undefined>;
|
|
53
|
+
lastEditorData: Ref<string, string>;
|
|
54
|
+
}> | null;
|
|
55
|
+
}, any>;
|
|
56
|
+
export default _default;
|
|
57
|
+
//# sourceMappingURL=QCKEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QCKEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKEditor.vue"],"names":[],"mappings":"AA8BA;AAqIE,OAAO,EAAiB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5G,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK7D,OAAO,yBAAyB,CAAC;AAEjC,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,GAAG,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IAC3C,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACzC,CAAC;AAQF,KAAK,WAAW,GAAG;IACf,wCAAwC;IACxC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C,CAAC;AAsFN,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;UA9FH,WAAW;YACT,YAAY;aACX,MAAM;cACL,OAAO;8BACS,OAAO;oBACjB,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM;;;;;;;;AAgP/C,wBAUG"}
|
|
@@ -76,13 +76,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
76
76
|
onReady?: ((editor: ClassicEditor) => any) | undefined;
|
|
77
77
|
onDestroy?: (() => any) | undefined;
|
|
78
78
|
}>, {
|
|
79
|
-
ckeditorRef: import('vue').
|
|
80
|
-
instance: ClassicEditor | undefined;
|
|
81
|
-
lastEditorData: string | undefined;
|
|
82
|
-
} | null, {
|
|
83
|
-
instance: import('vue').Ref<ClassicEditor | undefined>;
|
|
84
|
-
lastEditorData: import('vue').Ref<string | undefined>;
|
|
85
|
-
} | {
|
|
79
|
+
ckeditorRef: import('vue').ComputedRef<{
|
|
86
80
|
instance: ClassicEditor | undefined;
|
|
87
81
|
lastEditorData: string | undefined;
|
|
88
82
|
} | null>;
|
|
@@ -100,9 +94,94 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
100
94
|
disableTwoWayDataBinding: boolean;
|
|
101
95
|
dataNormalizer: (data: string) => string;
|
|
102
96
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
qckEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
98
|
+
modelValue?: string;
|
|
99
|
+
} & {
|
|
100
|
+
type?: import('../types').QEditorType;
|
|
101
|
+
config?: EditorConfig;
|
|
102
|
+
tagName?: string;
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
disableTwoWayDataBinding?: boolean;
|
|
105
|
+
dataNormalizer?: (data: string) => string;
|
|
106
|
+
}> & Readonly<{
|
|
107
|
+
onBlur?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
108
|
+
onFocus?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
109
|
+
onInput?: ((data: string, event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
110
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
111
|
+
onReady?: ((editor: import('../types').QEditorInstance) => any) | undefined;
|
|
112
|
+
onDestroy?: (() => any) | undefined;
|
|
113
|
+
}>, {
|
|
114
|
+
ckeditorRef: import('vue').Ref<{
|
|
115
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
116
|
+
lastEditorData: string | undefined;
|
|
117
|
+
} | null, {
|
|
118
|
+
instance: import('vue').Ref<import('../types').QEditorInstance | undefined>;
|
|
119
|
+
lastEditorData: import('vue').Ref<string | undefined>;
|
|
120
|
+
} | {
|
|
121
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
122
|
+
lastEditorData: string | undefined;
|
|
123
|
+
} | null>;
|
|
124
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
125
|
+
blur: (event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any;
|
|
126
|
+
focus: (event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any;
|
|
127
|
+
input: (data: string, event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any;
|
|
128
|
+
"update:modelValue": (value: string) => any;
|
|
129
|
+
ready: (editor: import('../types').QEditorInstance) => any;
|
|
130
|
+
destroy: () => any;
|
|
131
|
+
}, import('vue').PublicProps, {
|
|
132
|
+
type: import('../types').QEditorType;
|
|
133
|
+
config: EditorConfig;
|
|
134
|
+
tagName: string;
|
|
135
|
+
disabled: boolean;
|
|
136
|
+
disableTwoWayDataBinding: boolean;
|
|
137
|
+
dataNormalizer: (data: string) => string;
|
|
138
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
139
|
+
toolbarRef: HTMLDivElement;
|
|
140
|
+
ckeditorRef: import('vue').ShallowUnwrapRef<{
|
|
141
|
+
instance: import('vue').Ref<ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined, ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined>;
|
|
142
|
+
lastEditorData: import('vue').Ref<string, string>;
|
|
143
|
+
}> | null;
|
|
144
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
145
|
+
P: {};
|
|
146
|
+
B: {};
|
|
147
|
+
D: {};
|
|
148
|
+
C: {};
|
|
149
|
+
M: {};
|
|
150
|
+
Defaults: {};
|
|
151
|
+
}, Readonly<{
|
|
152
|
+
modelValue?: string;
|
|
153
|
+
} & {
|
|
154
|
+
type?: import('../types').QEditorType;
|
|
155
|
+
config?: EditorConfig;
|
|
156
|
+
tagName?: string;
|
|
157
|
+
disabled?: boolean;
|
|
158
|
+
disableTwoWayDataBinding?: boolean;
|
|
159
|
+
dataNormalizer?: (data: string) => string;
|
|
160
|
+
}> & Readonly<{
|
|
161
|
+
onBlur?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
162
|
+
onFocus?: ((event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
163
|
+
onInput?: ((data: string, event: EventInfo<string, unknown>, editor: import('../types').QEditorInstance) => any) | undefined;
|
|
164
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
165
|
+
onReady?: ((editor: import('../types').QEditorInstance) => any) | undefined;
|
|
166
|
+
onDestroy?: (() => any) | undefined;
|
|
167
|
+
}>, {
|
|
168
|
+
ckeditorRef: import('vue').Ref<{
|
|
169
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
170
|
+
lastEditorData: string | undefined;
|
|
171
|
+
} | null, {
|
|
172
|
+
instance: import('vue').Ref<import('../types').QEditorInstance | undefined>;
|
|
173
|
+
lastEditorData: import('vue').Ref<string | undefined>;
|
|
174
|
+
} | {
|
|
175
|
+
instance: import('../types').QEditorInstance | undefined;
|
|
176
|
+
lastEditorData: string | undefined;
|
|
177
|
+
} | null>;
|
|
178
|
+
}, {}, {}, {}, {
|
|
179
|
+
type: import('../types').QEditorType;
|
|
180
|
+
config: EditorConfig;
|
|
181
|
+
tagName: string;
|
|
182
|
+
disabled: boolean;
|
|
183
|
+
disableTwoWayDataBinding: boolean;
|
|
184
|
+
dataNormalizer: (data: string) => string;
|
|
106
185
|
}> | null;
|
|
107
186
|
}, any, import('vue').ComponentProvideOptions, {
|
|
108
187
|
P: {};
|
|
@@ -127,13 +206,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
127
206
|
onReady?: ((editor: ClassicEditor) => any) | undefined;
|
|
128
207
|
onDestroy?: (() => any) | undefined;
|
|
129
208
|
}>, {
|
|
130
|
-
ckeditorRef: import('vue').
|
|
131
|
-
instance: ClassicEditor | undefined;
|
|
132
|
-
lastEditorData: string | undefined;
|
|
133
|
-
} | null, {
|
|
134
|
-
instance: import('vue').Ref<ClassicEditor | undefined>;
|
|
135
|
-
lastEditorData: import('vue').Ref<string | undefined>;
|
|
136
|
-
} | {
|
|
209
|
+
ckeditorRef: import('vue').ComputedRef<{
|
|
137
210
|
instance: ClassicEditor | undefined;
|
|
138
211
|
lastEditorData: string | undefined;
|
|
139
212
|
} | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCKEditorPro.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKEditorPro.vue"],"names":[],"mappings":"AAwCA;AA8YA,OAAO,EACL,aAAa,EAEb,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAqB,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAI1E,gEAAgE;AAChE,KAAK,iBAAiB,GAAG,iBAAiB,GAAG,MAAM,CAAC;AAQpD,KAAK,WAAW,GAAG;IACf,MAAM,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+azB,wBAUG"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorConfig } from 'ckeditor5';
|
|
1
|
+
import { ClassicEditor, DecoupledEditor, EditorConfig, InlineEditor } from 'ckeditor5';
|
|
2
2
|
/**
|
|
3
3
|
* This file contains types for the CKEditor 5 Vue component.
|
|
4
4
|
* These types were moved to a separate file, because the `vue-tsc`
|
|
@@ -38,4 +38,13 @@ export interface QCKImagePreviewOptions {
|
|
|
38
38
|
/** 是否显示全屏按钮,默认 true */
|
|
39
39
|
fullscreen?: boolean;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* QCKEditor 支持的编辑器类型。
|
|
43
|
+
* - classic:经典编辑器(工具栏固定顶部)
|
|
44
|
+
* - inline:行内编辑器(工具栏浮动,选中内容时显示)
|
|
45
|
+
* - document:文档编辑器(工具栏分离挂载,高度自适应容器)
|
|
46
|
+
*/
|
|
47
|
+
export type QEditorType = 'classic' | 'inline' | 'document';
|
|
48
|
+
/** QCKEditor 事件回调(ready/blur/focus/input)中的编辑器实例联合类型 */
|
|
49
|
+
export type QEditorInstance = ClassicEditor | InlineEditor | DecoupledEditor;
|
|
41
50
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE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