vue-editify 0.2.14 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- package/examples/App.vue +41 -88
- package/lib/components/button/button.vue.d.ts +62 -60
- package/lib/components/button/index.d.ts +4 -0
- package/lib/components/button/props.d.ts +12 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +9 -9
- package/lib/components/checkbox/index.d.ts +4 -0
- package/lib/components/checkbox/props.d.ts +2 -2
- package/lib/components/colors/colors.vue.d.ts +4 -4
- package/lib/components/colors/index.d.ts +4 -0
- package/lib/components/colors/props.d.ts +2 -2
- package/lib/components/icon/index.d.ts +4 -0
- package/lib/components/insertAttachment/index.d.ts +4 -0
- package/lib/{plugins/attachment → components}/insertAttachment/insertAttachment.vue.d.ts +3 -3
- package/lib/{plugins/attachment → components}/insertAttachment/props.d.ts +1 -1
- package/lib/components/insertImage/index.d.ts +4 -0
- package/lib/components/insertImage/insertImage.vue.d.ts +3 -3
- package/lib/components/insertImage/props.d.ts +1 -1
- package/lib/components/insertLink/index.d.ts +4 -0
- package/lib/components/insertLink/insertLink.vue.d.ts +6 -6
- package/lib/components/insertLink/props.d.ts +3 -3
- package/lib/components/insertMathformula/index.d.ts +4 -0
- package/lib/{plugins/mathformula → components}/insertMathformula/insertMathformula.vue.d.ts +3 -3
- package/lib/{plugins/mathformula → components}/insertMathformula/props.d.ts +2 -2
- package/lib/components/insertTable/index.d.ts +4 -0
- package/lib/components/insertTable/insertTable.vue.d.ts +3 -3
- package/lib/components/insertTable/props.d.ts +2 -2
- package/lib/components/insertVideo/index.d.ts +4 -0
- package/lib/components/insertVideo/insertVideo.vue.d.ts +3 -3
- package/lib/components/insertVideo/props.d.ts +1 -1
- package/lib/components/layer/index.d.ts +4 -0
- package/lib/components/layer/layer.vue.d.ts +10 -8
- package/lib/components/tooltip/index.d.ts +4 -0
- package/lib/components/tooltip/tooltip.vue.d.ts +6 -4
- package/lib/components/triangle/index.d.ts +4 -0
- package/lib/components/triangle/triangle.vue.d.ts +1 -1
- package/lib/components/updateLink/index.d.ts +4 -0
- package/lib/components/updateLink/props.d.ts +17 -0
- package/lib/components/updateLink/updateLink.vue.d.ts +38 -0
- package/lib/core/function.d.ts +113 -36
- package/lib/core/rule.d.ts +20 -0
- package/lib/core/tool.d.ts +36 -34
- package/lib/editify/editify.vue.d.ts +18 -28
- package/lib/editify/menu/index.d.ts +4 -0
- package/lib/{components → editify}/menu/menu.vue.d.ts +3 -4
- package/lib/{components → editify}/menu/props.d.ts +1 -1
- package/lib/editify/props.d.ts +3 -7
- package/lib/editify/toolbar/index.d.ts +4 -0
- package/lib/{components → editify}/toolbar/props.d.ts +2 -2
- package/lib/{components → editify}/toolbar/toolbar.vue.d.ts +53 -53
- package/lib/editify.es.js +38964 -37727
- package/lib/editify.umd.js +2 -2
- package/lib/feature/align.d.ts +32 -0
- package/lib/feature/attachment.d.ts +18 -0
- package/lib/feature/backColor.d.ts +32 -0
- package/lib/feature/bold.d.ts +32 -0
- package/lib/feature/code.d.ts +32 -0
- package/lib/feature/codeBlock.d.ts +32 -0
- package/lib/feature/fontFamily.d.ts +32 -0
- package/lib/feature/fontSize.d.ts +32 -0
- package/lib/feature/foreColor.d.ts +32 -0
- package/lib/feature/formatClear.d.ts +32 -0
- package/lib/feature/fullScreen.d.ts +18 -0
- package/lib/feature/heading.d.ts +32 -0
- package/lib/feature/image.d.ts +32 -0
- package/lib/feature/indent.d.ts +18 -0
- package/lib/feature/infoBlock.d.ts +18 -0
- package/lib/feature/italic.d.ts +32 -0
- package/lib/feature/lineHeight.d.ts +32 -0
- package/lib/feature/link.d.ts +26 -0
- package/lib/feature/mathformula.d.ts +22 -0
- package/lib/feature/orderList.d.ts +32 -0
- package/lib/feature/panel.d.ts +18 -0
- package/lib/feature/quote.d.ts +18 -0
- package/lib/feature/redo.d.ts +18 -0
- package/lib/feature/separator.d.ts +18 -0
- package/lib/feature/sourceView.d.ts +18 -0
- package/lib/feature/strikethrough.d.ts +32 -0
- package/lib/feature/sub.d.ts +32 -0
- package/lib/feature/super.d.ts +32 -0
- package/lib/feature/table.d.ts +32 -0
- package/lib/feature/task.d.ts +32 -0
- package/lib/feature/underline.d.ts +32 -0
- package/lib/feature/undo.d.ts +18 -0
- package/lib/feature/unorderList.d.ts +32 -0
- package/lib/feature/video.d.ts +38 -0
- package/lib/index.d.ts +194 -202
- package/package.json +5 -5
- package/src/components/button/button.vue +21 -24
- package/src/components/button/index.ts +5 -0
- package/src/components/button/props.ts +14 -1
- package/src/components/checkbox/checkbox.vue +1 -1
- package/src/components/checkbox/index.ts +5 -0
- package/src/components/checkbox/props.ts +1 -1
- package/src/components/colors/colors.vue +3 -3
- package/src/components/colors/index.ts +5 -0
- package/src/components/colors/props.ts +2 -2
- package/src/components/icon/index.ts +5 -0
- package/src/components/insertAttachment/index.ts +5 -0
- package/src/{plugins/attachment → components}/insertAttachment/insertAttachment.vue +4 -2
- package/src/{plugins/attachment → components}/insertAttachment/props.ts +1 -1
- package/src/components/insertImage/index.ts +5 -0
- package/src/components/insertImage/insertImage.vue +5 -5
- package/src/components/insertImage/props.ts +1 -1
- package/src/components/insertLink/index.ts +5 -0
- package/src/components/insertLink/insertLink.vue +10 -10
- package/src/components/insertLink/props.ts +3 -3
- package/src/components/insertMathformula/index.ts +5 -0
- package/src/{plugins/mathformula → components}/insertMathformula/props.ts +2 -2
- package/src/components/insertTable/index.ts +5 -0
- package/src/components/insertTable/props.ts +2 -2
- package/src/components/insertVideo/index.ts +5 -0
- package/src/components/insertVideo/insertVideo.vue +2 -2
- package/src/components/insertVideo/props.ts +1 -1
- package/src/components/layer/index.ts +5 -0
- package/src/components/layer/layer.vue +42 -4
- package/src/components/tooltip/index.ts +5 -0
- package/src/components/tooltip/tooltip.vue +1 -1
- package/src/components/triangle/index.ts +5 -0
- package/src/components/triangle/triangle.vue +1 -1
- package/src/components/updateLink/index.ts +5 -0
- package/src/components/updateLink/props.ts +21 -0
- package/src/components/{toolbar/toolbar.less → updateLink/updateLink.less} +4 -20
- package/src/components/updateLink/updateLink.vue +74 -0
- package/src/core/function.ts +289 -97
- package/src/core/rule.ts +108 -29
- package/src/core/tool.ts +237 -81
- package/src/editify/editify.less +4 -0
- package/src/editify/editify.vue +183 -194
- package/src/editify/menu/index.ts +5 -0
- package/src/editify/menu/menu.vue +215 -0
- package/src/{components → editify}/menu/props.ts +1 -1
- package/src/editify/props.ts +7 -11
- package/src/editify/toolbar/index.ts +5 -0
- package/src/{components → editify}/toolbar/props.ts +1 -1
- package/src/editify/toolbar/toolbar.less +10 -0
- package/src/editify/toolbar/toolbar.vue +103 -0
- package/src/feature/align.ts +126 -0
- package/src/feature/attachment.ts +108 -0
- package/src/feature/backColor.ts +169 -0
- package/src/feature/bold.ts +134 -0
- package/src/feature/code.ts +134 -0
- package/src/feature/codeBlock.ts +201 -0
- package/src/feature/fontFamily.ts +138 -0
- package/src/feature/fontSize.ts +140 -0
- package/src/feature/foreColor.ts +171 -0
- package/src/feature/formatClear.ts +116 -0
- package/src/feature/fullScreen.ts +57 -0
- package/src/feature/heading.ts +152 -0
- package/src/feature/image.ts +222 -0
- package/src/feature/indent.ts +72 -0
- package/src/feature/infoBlock.ts +93 -0
- package/src/feature/italic.ts +134 -0
- package/src/feature/lineHeight.ts +163 -0
- package/src/feature/link.ts +146 -0
- package/src/feature/mathformula.ts +146 -0
- package/src/feature/orderList.ts +114 -0
- package/src/feature/panel.ts +107 -0
- package/src/feature/quote.ts +60 -0
- package/src/feature/redo.ts +56 -0
- package/src/feature/separator.ts +61 -0
- package/src/feature/sourceView.ts +59 -0
- package/src/feature/strikethrough.ts +134 -0
- package/src/feature/sub.ts +134 -0
- package/src/feature/super.ts +134 -0
- package/src/feature/table.ts +981 -0
- package/src/feature/task.ts +114 -0
- package/src/feature/underline.ts +134 -0
- package/src/feature/undo.ts +56 -0
- package/src/feature/unorderList.ts +114 -0
- package/src/feature/video.ts +335 -0
- package/src/hljs/index.ts +1 -1
- package/src/index.ts +82 -25
- package/src/locale/en_US.ts +3 -3
- package/src/locale/zh_CN.ts +3 -3
- package/lib/plugins/attachment/index.d.ts +0 -37
- package/lib/plugins/infoBlock/index.d.ts +0 -55
- package/lib/plugins/mathformula/index.d.ts +0 -49
- package/lib/plugins/panel/index.d.ts +0 -48
- package/src/components/menu/menu.vue +0 -1655
- package/src/components/toolbar/toolbar.vue +0 -1677
- package/src/plugins/attachment/index.ts +0 -237
- package/src/plugins/infoBlock/index.ts +0 -238
- package/src/plugins/mathformula/index.ts +0 -295
- package/src/plugins/panel/index.ts +0 -228
- package/tsconfig.json +0 -31
- package/tsconfig.node.json +0 -11
- /package/src/{plugins/attachment → components}/insertAttachment/insertAttachment.less +0 -0
- /package/src/{plugins/mathformula → components}/insertMathformula/insertMathformula.less +0 -0
- /package/src/{plugins/mathformula → components}/insertMathformula/insertMathformula.vue +0 -0
- /package/src/{components → editify}/menu/menu.less +0 -0
package/lib/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { App } from 'vue';
|
2
|
+
import { AlexElement } from 'alex-editor';
|
2
3
|
|
3
4
|
declare const Editify: import('./core/tool').SFCWithInstall<import('vue').DefineComponent<{
|
4
5
|
locale: {
|
@@ -42,9 +43,9 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
42
43
|
default: boolean;
|
43
44
|
};
|
44
45
|
color: {
|
45
|
-
type:
|
46
|
+
type: StringConstructor;
|
46
47
|
default: string;
|
47
|
-
validator(value:
|
48
|
+
validator(value: string): boolean;
|
48
49
|
};
|
49
50
|
videoRatio: {
|
50
51
|
type: NumberConstructor;
|
@@ -63,7 +64,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
63
64
|
default: null;
|
64
65
|
};
|
65
66
|
customHtmlPaste: {
|
66
|
-
type: import('vue').PropType<(elements:
|
67
|
+
type: import('vue').PropType<(elements: AlexElement[]) => void | Promise<void>>;
|
67
68
|
default: null;
|
68
69
|
};
|
69
70
|
customImagePaste: {
|
@@ -83,15 +84,15 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
83
84
|
default: null;
|
84
85
|
};
|
85
86
|
pasteKeepMarks: {
|
86
|
-
type: import('vue').PropType<(el:
|
87
|
+
type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
|
87
88
|
default: null;
|
88
89
|
};
|
89
90
|
pasteKeepStyles: {
|
90
|
-
type: import('vue').PropType<(el:
|
91
|
+
type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
|
91
92
|
default: null;
|
92
93
|
};
|
93
94
|
customParseNode: {
|
94
|
-
type: import('vue').PropType<(el:
|
95
|
+
type: import('vue').PropType<(el: AlexElement) => AlexElement>;
|
95
96
|
default: null;
|
96
97
|
};
|
97
98
|
extraKeepTags: {
|
@@ -99,7 +100,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
99
100
|
default: () => never[];
|
100
101
|
};
|
101
102
|
renderRules: {
|
102
|
-
type: import('vue').PropType<((el:
|
103
|
+
type: import('vue').PropType<((el: AlexElement) => void)[]>;
|
103
104
|
default: () => never[];
|
104
105
|
};
|
105
106
|
autoheight: {
|
@@ -110,10 +111,6 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
110
111
|
type: BooleanConstructor;
|
111
112
|
default: boolean;
|
112
113
|
};
|
113
|
-
plugins: {
|
114
|
-
type: import('vue').PropType<import('./core/tool').PluginType[]>;
|
115
|
-
default: () => never[];
|
116
|
-
};
|
117
114
|
dark: {
|
118
115
|
type: BooleanConstructor;
|
119
116
|
default: boolean;
|
@@ -131,18 +128,18 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
131
128
|
$el: HTMLElement;
|
132
129
|
disabled: boolean;
|
133
130
|
value: string;
|
134
|
-
renderRules: ((element:
|
131
|
+
renderRules: ((element: AlexElement) => void)[];
|
135
132
|
allowCopy: boolean;
|
136
133
|
allowPaste: boolean;
|
137
134
|
allowCut: boolean;
|
138
135
|
allowPasteHtml: boolean;
|
139
136
|
customTextPaste: ((text: string) => void | Promise<void>) | null;
|
140
|
-
customHtmlPaste: ((AlexElements:
|
137
|
+
customHtmlPaste: ((AlexElements: AlexElement[], html: string) => void | Promise<void>) | null;
|
141
138
|
customImagePaste: ((file: File) => void | Promise<void>) | null;
|
142
139
|
customVideoPaste: ((file: File) => void | Promise<void>) | null;
|
143
140
|
customFilePaste: ((file: File) => void | Promise<void>) | null;
|
144
|
-
customMerge: ((mergeElement:
|
145
|
-
customParseNode: ((el:
|
141
|
+
customMerge: ((mergeElement: AlexElement, targetElement: AlexElement) => void | Promise<void>) | null;
|
142
|
+
customParseNode: ((el: AlexElement) => AlexElement) | null;
|
146
143
|
extraKeepTags: string[];
|
147
144
|
history: {
|
148
145
|
records: {
|
@@ -167,27 +164,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
167
164
|
isBreak: () => boolean;
|
168
165
|
isEmpty: () => boolean;
|
169
166
|
isSpaceText: () => boolean;
|
170
|
-
getUneditableElement: () =>
|
171
|
-
isEqual: (element:
|
172
|
-
isContains: (element:
|
167
|
+
getUneditableElement: () => AlexElement | null;
|
168
|
+
isEqual: (element: AlexElement) => boolean;
|
169
|
+
isContains: (element: AlexElement) => boolean;
|
173
170
|
isOnlyHasBreak: () => boolean | 0;
|
174
171
|
isPreStyle: () => boolean;
|
175
172
|
hasMarks: () => boolean;
|
176
173
|
hasStyles: () => boolean;
|
177
174
|
hasChildren: () => boolean;
|
178
|
-
hasContains: (element:
|
179
|
-
clone: (deep?: boolean | undefined) =>
|
175
|
+
hasContains: (element: AlexElement) => boolean;
|
176
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
180
177
|
convertToBlock: () => void;
|
181
178
|
toEmpty: () => void;
|
182
|
-
getBlock: () =>
|
183
|
-
getInblock: () =>
|
184
|
-
getInline: () =>
|
185
|
-
isEqualStyles: (element:
|
186
|
-
isEqualMarks: (element:
|
187
|
-
isFirst: (element:
|
188
|
-
isLast: (element:
|
179
|
+
getBlock: () => AlexElement;
|
180
|
+
getInblock: () => AlexElement | null;
|
181
|
+
getInline: () => AlexElement | null;
|
182
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
183
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
184
|
+
isFirst: (element: AlexElement) => boolean;
|
185
|
+
isLast: (element: AlexElement) => boolean;
|
189
186
|
__render: () => void;
|
190
|
-
__fullClone: () =>
|
187
|
+
__fullClone: () => AlexElement;
|
191
188
|
}[];
|
192
189
|
range: {
|
193
190
|
anchor: {
|
@@ -212,32 +209,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
212
209
|
isBreak: () => boolean;
|
213
210
|
isEmpty: () => boolean;
|
214
211
|
isSpaceText: () => boolean;
|
215
|
-
getUneditableElement: () =>
|
216
|
-
isEqual: (element:
|
217
|
-
isContains: (element:
|
212
|
+
getUneditableElement: () => AlexElement | null;
|
213
|
+
isEqual: (element: AlexElement) => boolean;
|
214
|
+
isContains: (element: AlexElement) => boolean;
|
218
215
|
isOnlyHasBreak: () => boolean | 0;
|
219
216
|
isPreStyle: () => boolean;
|
220
217
|
hasMarks: () => boolean;
|
221
218
|
hasStyles: () => boolean;
|
222
219
|
hasChildren: () => boolean;
|
223
|
-
hasContains: (element:
|
224
|
-
clone: (deep?: boolean | undefined) =>
|
220
|
+
hasContains: (element: AlexElement) => boolean;
|
221
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
225
222
|
convertToBlock: () => void;
|
226
223
|
toEmpty: () => void;
|
227
|
-
getBlock: () =>
|
228
|
-
getInblock: () =>
|
229
|
-
getInline: () =>
|
230
|
-
isEqualStyles: (element:
|
231
|
-
isEqualMarks: (element:
|
232
|
-
isFirst: (element:
|
233
|
-
isLast: (element:
|
224
|
+
getBlock: () => AlexElement;
|
225
|
+
getInblock: () => AlexElement | null;
|
226
|
+
getInline: () => AlexElement | null;
|
227
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
228
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
229
|
+
isFirst: (element: AlexElement) => boolean;
|
230
|
+
isLast: (element: AlexElement) => boolean;
|
234
231
|
__render: () => void;
|
235
|
-
__fullClone: () =>
|
232
|
+
__fullClone: () => AlexElement;
|
236
233
|
};
|
237
234
|
offset: number;
|
238
235
|
isEqual: (point: import('alex-editor').AlexPoint) => boolean;
|
239
|
-
moveToEnd: (element:
|
240
|
-
moveToStart: (element:
|
236
|
+
moveToEnd: (element: AlexElement) => void;
|
237
|
+
moveToStart: (element: AlexElement) => void;
|
241
238
|
};
|
242
239
|
focus: {
|
243
240
|
element: {
|
@@ -261,40 +258,40 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
261
258
|
isBreak: () => boolean;
|
262
259
|
isEmpty: () => boolean;
|
263
260
|
isSpaceText: () => boolean;
|
264
|
-
getUneditableElement: () =>
|
265
|
-
isEqual: (element:
|
266
|
-
isContains: (element:
|
261
|
+
getUneditableElement: () => AlexElement | null;
|
262
|
+
isEqual: (element: AlexElement) => boolean;
|
263
|
+
isContains: (element: AlexElement) => boolean;
|
267
264
|
isOnlyHasBreak: () => boolean | 0;
|
268
265
|
isPreStyle: () => boolean;
|
269
266
|
hasMarks: () => boolean;
|
270
267
|
hasStyles: () => boolean;
|
271
268
|
hasChildren: () => boolean;
|
272
|
-
hasContains: (element:
|
273
|
-
clone: (deep?: boolean | undefined) =>
|
269
|
+
hasContains: (element: AlexElement) => boolean;
|
270
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
274
271
|
convertToBlock: () => void;
|
275
272
|
toEmpty: () => void;
|
276
|
-
getBlock: () =>
|
277
|
-
getInblock: () =>
|
278
|
-
getInline: () =>
|
279
|
-
isEqualStyles: (element:
|
280
|
-
isEqualMarks: (element:
|
281
|
-
isFirst: (element:
|
282
|
-
isLast: (element:
|
273
|
+
getBlock: () => AlexElement;
|
274
|
+
getInblock: () => AlexElement | null;
|
275
|
+
getInline: () => AlexElement | null;
|
276
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
277
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
278
|
+
isFirst: (element: AlexElement) => boolean;
|
279
|
+
isLast: (element: AlexElement) => boolean;
|
283
280
|
__render: () => void;
|
284
|
-
__fullClone: () =>
|
281
|
+
__fullClone: () => AlexElement;
|
285
282
|
};
|
286
283
|
offset: number;
|
287
284
|
isEqual: (point: import('alex-editor').AlexPoint) => boolean;
|
288
|
-
moveToEnd: (element:
|
289
|
-
moveToStart: (element:
|
285
|
+
moveToEnd: (element: AlexElement) => void;
|
286
|
+
moveToStart: (element: AlexElement) => void;
|
290
287
|
};
|
291
288
|
} | null;
|
292
289
|
}[];
|
293
290
|
current: number;
|
294
|
-
push: (stack:
|
295
|
-
get: (type: 1 |
|
291
|
+
push: (stack: AlexElement[], range?: import('alex-editor').AlexRange | null) => void;
|
292
|
+
get: (type: -1 | 1) => import('alex-editor').AlexHistoryResultType | null;
|
296
293
|
updateCurrentRange: (range: import('alex-editor').AlexRange) => void;
|
297
|
-
__cloneRange: (newStack:
|
294
|
+
__cloneRange: (newStack: AlexElement[], range?: import('alex-editor').AlexRange | null) => import('alex-editor').AlexRange | null;
|
298
295
|
};
|
299
296
|
stack: {
|
300
297
|
key: number;
|
@@ -317,27 +314,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
317
314
|
isBreak: () => boolean;
|
318
315
|
isEmpty: () => boolean;
|
319
316
|
isSpaceText: () => boolean;
|
320
|
-
getUneditableElement: () =>
|
321
|
-
isEqual: (element:
|
322
|
-
isContains: (element:
|
317
|
+
getUneditableElement: () => AlexElement | null;
|
318
|
+
isEqual: (element: AlexElement) => boolean;
|
319
|
+
isContains: (element: AlexElement) => boolean;
|
323
320
|
isOnlyHasBreak: () => boolean | 0;
|
324
321
|
isPreStyle: () => boolean;
|
325
322
|
hasMarks: () => boolean;
|
326
323
|
hasStyles: () => boolean;
|
327
324
|
hasChildren: () => boolean;
|
328
|
-
hasContains: (element:
|
329
|
-
clone: (deep?: boolean | undefined) =>
|
325
|
+
hasContains: (element: AlexElement) => boolean;
|
326
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
330
327
|
convertToBlock: () => void;
|
331
328
|
toEmpty: () => void;
|
332
|
-
getBlock: () =>
|
333
|
-
getInblock: () =>
|
334
|
-
getInline: () =>
|
335
|
-
isEqualStyles: (element:
|
336
|
-
isEqualMarks: (element:
|
337
|
-
isFirst: (element:
|
338
|
-
isLast: (element:
|
329
|
+
getBlock: () => AlexElement;
|
330
|
+
getInblock: () => AlexElement | null;
|
331
|
+
getInline: () => AlexElement | null;
|
332
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
333
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
334
|
+
isFirst: (element: AlexElement) => boolean;
|
335
|
+
isLast: (element: AlexElement) => boolean;
|
339
336
|
__render: () => void;
|
340
|
-
__fullClone: () =>
|
337
|
+
__fullClone: () => AlexElement;
|
341
338
|
}[];
|
342
339
|
range: {
|
343
340
|
anchor: {
|
@@ -362,32 +359,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
362
359
|
isBreak: () => boolean;
|
363
360
|
isEmpty: () => boolean;
|
364
361
|
isSpaceText: () => boolean;
|
365
|
-
getUneditableElement: () =>
|
366
|
-
isEqual: (element:
|
367
|
-
isContains: (element:
|
362
|
+
getUneditableElement: () => AlexElement | null;
|
363
|
+
isEqual: (element: AlexElement) => boolean;
|
364
|
+
isContains: (element: AlexElement) => boolean;
|
368
365
|
isOnlyHasBreak: () => boolean | 0;
|
369
366
|
isPreStyle: () => boolean;
|
370
367
|
hasMarks: () => boolean;
|
371
368
|
hasStyles: () => boolean;
|
372
369
|
hasChildren: () => boolean;
|
373
|
-
hasContains: (element:
|
374
|
-
clone: (deep?: boolean | undefined) =>
|
370
|
+
hasContains: (element: AlexElement) => boolean;
|
371
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
375
372
|
convertToBlock: () => void;
|
376
373
|
toEmpty: () => void;
|
377
|
-
getBlock: () =>
|
378
|
-
getInblock: () =>
|
379
|
-
getInline: () =>
|
380
|
-
isEqualStyles: (element:
|
381
|
-
isEqualMarks: (element:
|
382
|
-
isFirst: (element:
|
383
|
-
isLast: (element:
|
374
|
+
getBlock: () => AlexElement;
|
375
|
+
getInblock: () => AlexElement | null;
|
376
|
+
getInline: () => AlexElement | null;
|
377
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
378
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
379
|
+
isFirst: (element: AlexElement) => boolean;
|
380
|
+
isLast: (element: AlexElement) => boolean;
|
384
381
|
__render: () => void;
|
385
|
-
__fullClone: () =>
|
382
|
+
__fullClone: () => AlexElement;
|
386
383
|
};
|
387
384
|
offset: number;
|
388
385
|
isEqual: (point: import('alex-editor').AlexPoint) => boolean;
|
389
|
-
moveToEnd: (element:
|
390
|
-
moveToStart: (element:
|
386
|
+
moveToEnd: (element: AlexElement) => void;
|
387
|
+
moveToStart: (element: AlexElement) => void;
|
391
388
|
};
|
392
389
|
focus: {
|
393
390
|
element: {
|
@@ -411,32 +408,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
411
408
|
isBreak: () => boolean;
|
412
409
|
isEmpty: () => boolean;
|
413
410
|
isSpaceText: () => boolean;
|
414
|
-
getUneditableElement: () =>
|
415
|
-
isEqual: (element:
|
416
|
-
isContains: (element:
|
411
|
+
getUneditableElement: () => AlexElement | null;
|
412
|
+
isEqual: (element: AlexElement) => boolean;
|
413
|
+
isContains: (element: AlexElement) => boolean;
|
417
414
|
isOnlyHasBreak: () => boolean | 0;
|
418
415
|
isPreStyle: () => boolean;
|
419
416
|
hasMarks: () => boolean;
|
420
417
|
hasStyles: () => boolean;
|
421
418
|
hasChildren: () => boolean;
|
422
|
-
hasContains: (element:
|
423
|
-
clone: (deep?: boolean | undefined) =>
|
419
|
+
hasContains: (element: AlexElement) => boolean;
|
420
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
424
421
|
convertToBlock: () => void;
|
425
422
|
toEmpty: () => void;
|
426
|
-
getBlock: () =>
|
427
|
-
getInblock: () =>
|
428
|
-
getInline: () =>
|
429
|
-
isEqualStyles: (element:
|
430
|
-
isEqualMarks: (element:
|
431
|
-
isFirst: (element:
|
432
|
-
isLast: (element:
|
423
|
+
getBlock: () => AlexElement;
|
424
|
+
getInblock: () => AlexElement | null;
|
425
|
+
getInline: () => AlexElement | null;
|
426
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
427
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
428
|
+
isFirst: (element: AlexElement) => boolean;
|
429
|
+
isLast: (element: AlexElement) => boolean;
|
433
430
|
__render: () => void;
|
434
|
-
__fullClone: () =>
|
431
|
+
__fullClone: () => AlexElement;
|
435
432
|
};
|
436
433
|
offset: number;
|
437
434
|
isEqual: (point: import('alex-editor').AlexPoint) => boolean;
|
438
|
-
moveToEnd: (element:
|
439
|
-
moveToStart: (element:
|
435
|
+
moveToEnd: (element: AlexElement) => void;
|
436
|
+
moveToStart: (element: AlexElement) => void;
|
440
437
|
};
|
441
438
|
} | null;
|
442
439
|
__guid: number;
|
@@ -462,27 +459,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
462
459
|
isBreak: () => boolean;
|
463
460
|
isEmpty: () => boolean;
|
464
461
|
isSpaceText: () => boolean;
|
465
|
-
getUneditableElement: () =>
|
466
|
-
isEqual: (element:
|
467
|
-
isContains: (element:
|
462
|
+
getUneditableElement: () => AlexElement | null;
|
463
|
+
isEqual: (element: AlexElement) => boolean;
|
464
|
+
isContains: (element: AlexElement) => boolean;
|
468
465
|
isOnlyHasBreak: () => boolean | 0;
|
469
466
|
isPreStyle: () => boolean;
|
470
467
|
hasMarks: () => boolean;
|
471
468
|
hasStyles: () => boolean;
|
472
469
|
hasChildren: () => boolean;
|
473
|
-
hasContains: (element:
|
474
|
-
clone: (deep?: boolean | undefined) =>
|
470
|
+
hasContains: (element: AlexElement) => boolean;
|
471
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
475
472
|
convertToBlock: () => void;
|
476
473
|
toEmpty: () => void;
|
477
|
-
getBlock: () =>
|
478
|
-
getInblock: () =>
|
479
|
-
getInline: () =>
|
480
|
-
isEqualStyles: (element:
|
481
|
-
isEqualMarks: (element:
|
482
|
-
isFirst: (element:
|
483
|
-
isLast: (element:
|
474
|
+
getBlock: () => AlexElement;
|
475
|
+
getInblock: () => AlexElement | null;
|
476
|
+
getInline: () => AlexElement | null;
|
477
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
478
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
479
|
+
isFirst: (element: AlexElement) => boolean;
|
480
|
+
isLast: (element: AlexElement) => boolean;
|
484
481
|
__render: () => void;
|
485
|
-
__fullClone: () =>
|
482
|
+
__fullClone: () => AlexElement;
|
486
483
|
}[];
|
487
484
|
__isInputChinese: boolean;
|
488
485
|
__innerSelectionChange: boolean;
|
@@ -491,24 +488,23 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
491
488
|
delete: () => void;
|
492
489
|
insertText: (data: string) => void;
|
493
490
|
insertParagraph: () => void;
|
494
|
-
insertElement: (ele:
|
495
|
-
formatElementStack: () => void;
|
491
|
+
insertElement: (ele: AlexElement, cover?: boolean | undefined) => void;
|
496
492
|
domRender: (unPushHistory?: boolean | undefined) => void;
|
497
493
|
rangeRender: () => Promise<void>;
|
498
|
-
parseHtml: (html: string) =>
|
499
|
-
parseNode: (node: HTMLElement) =>
|
500
|
-
merge: (ele:
|
501
|
-
getElementByKey: (key: number) =>
|
502
|
-
getPreviousElement: (ele:
|
503
|
-
getNextElement: (ele:
|
504
|
-
getPreviousElementOfPoint: (point: import('alex-editor').AlexPoint) =>
|
505
|
-
getNextElementOfPoint: (point: import('alex-editor').AlexPoint) =>
|
494
|
+
parseHtml: (html: string) => AlexElement[];
|
495
|
+
parseNode: (node: HTMLElement) => AlexElement;
|
496
|
+
merge: (ele: AlexElement, previousEle: AlexElement) => void;
|
497
|
+
getElementByKey: (key: number) => AlexElement | null;
|
498
|
+
getPreviousElement: (ele: AlexElement) => AlexElement | null;
|
499
|
+
getNextElement: (ele: AlexElement) => AlexElement | null;
|
500
|
+
getPreviousElementOfPoint: (point: import('alex-editor').AlexPoint) => AlexElement | null;
|
501
|
+
getNextElementOfPoint: (point: import('alex-editor').AlexPoint) => AlexElement | null;
|
506
502
|
getElementsByRange: () => import('alex-editor').AlexElementsRangeType;
|
507
|
-
addElementTo: (childEle:
|
508
|
-
addElementBefore: (newEle:
|
509
|
-
addElementAfter: (newEle:
|
510
|
-
collapseToStart: (element?:
|
511
|
-
collapseToEnd: (element?:
|
503
|
+
addElementTo: (childEle: AlexElement, parentEle: AlexElement, index?: number | undefined) => void;
|
504
|
+
addElementBefore: (newEle: AlexElement, targetEle: AlexElement) => void;
|
505
|
+
addElementAfter: (newEle: AlexElement, targetEle: AlexElement) => void;
|
506
|
+
collapseToStart: (element?: AlexElement) => void;
|
507
|
+
collapseToEnd: (element?: AlexElement) => void;
|
512
508
|
setDisabled: () => void;
|
513
509
|
setEnabled: () => void;
|
514
510
|
emit: (eventName: string, ...value: any) => boolean;
|
@@ -517,7 +513,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
517
513
|
} | null>;
|
518
514
|
isSourceView: import('vue').Ref<boolean>;
|
519
515
|
isFullScreen: import('vue').Ref<boolean>;
|
520
|
-
|
516
|
+
rangeKey: import('vue').Ref<number | null>;
|
521
517
|
dataRangeCaches: import('vue').Ref<{
|
522
518
|
list: {
|
523
519
|
element: {
|
@@ -541,29 +537,29 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
541
537
|
isBreak: () => boolean;
|
542
538
|
isEmpty: () => boolean;
|
543
539
|
isSpaceText: () => boolean;
|
544
|
-
getUneditableElement: () =>
|
545
|
-
isEqual: (element:
|
546
|
-
isContains: (element:
|
540
|
+
getUneditableElement: () => AlexElement | null;
|
541
|
+
isEqual: (element: AlexElement) => boolean;
|
542
|
+
isContains: (element: AlexElement) => boolean;
|
547
543
|
isOnlyHasBreak: () => boolean | 0;
|
548
544
|
isPreStyle: () => boolean;
|
549
545
|
hasMarks: () => boolean;
|
550
546
|
hasStyles: () => boolean;
|
551
547
|
hasChildren: () => boolean;
|
552
|
-
hasContains: (element:
|
553
|
-
clone: (deep?: boolean | undefined) =>
|
548
|
+
hasContains: (element: AlexElement) => boolean;
|
549
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
554
550
|
convertToBlock: () => void;
|
555
551
|
toEmpty: () => void;
|
556
|
-
getBlock: () =>
|
557
|
-
getInblock: () =>
|
558
|
-
getInline: () =>
|
559
|
-
isEqualStyles: (element:
|
560
|
-
isEqualMarks: (element:
|
561
|
-
isFirst: (element:
|
562
|
-
isLast: (element:
|
552
|
+
getBlock: () => AlexElement;
|
553
|
+
getInblock: () => AlexElement | null;
|
554
|
+
getInline: () => AlexElement | null;
|
555
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
556
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
557
|
+
isFirst: (element: AlexElement) => boolean;
|
558
|
+
isLast: (element: AlexElement) => boolean;
|
563
559
|
__render: () => void;
|
564
|
-
__fullClone: () =>
|
560
|
+
__fullClone: () => AlexElement;
|
565
561
|
};
|
566
|
-
offset:
|
562
|
+
offset: number[] | false;
|
567
563
|
}[];
|
568
564
|
flatList: {
|
569
565
|
element: {
|
@@ -587,29 +583,29 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
587
583
|
isBreak: () => boolean;
|
588
584
|
isEmpty: () => boolean;
|
589
585
|
isSpaceText: () => boolean;
|
590
|
-
getUneditableElement: () =>
|
591
|
-
isEqual: (element:
|
592
|
-
isContains: (element:
|
586
|
+
getUneditableElement: () => AlexElement | null;
|
587
|
+
isEqual: (element: AlexElement) => boolean;
|
588
|
+
isContains: (element: AlexElement) => boolean;
|
593
589
|
isOnlyHasBreak: () => boolean | 0;
|
594
590
|
isPreStyle: () => boolean;
|
595
591
|
hasMarks: () => boolean;
|
596
592
|
hasStyles: () => boolean;
|
597
593
|
hasChildren: () => boolean;
|
598
|
-
hasContains: (element:
|
599
|
-
clone: (deep?: boolean | undefined) =>
|
594
|
+
hasContains: (element: AlexElement) => boolean;
|
595
|
+
clone: (deep?: boolean | undefined) => AlexElement;
|
600
596
|
convertToBlock: () => void;
|
601
597
|
toEmpty: () => void;
|
602
|
-
getBlock: () =>
|
603
|
-
getInblock: () =>
|
604
|
-
getInline: () =>
|
605
|
-
isEqualStyles: (element:
|
606
|
-
isEqualMarks: (element:
|
607
|
-
isFirst: (element:
|
608
|
-
isLast: (element:
|
598
|
+
getBlock: () => AlexElement;
|
599
|
+
getInblock: () => AlexElement | null;
|
600
|
+
getInline: () => AlexElement | null;
|
601
|
+
isEqualStyles: (element: AlexElement) => boolean;
|
602
|
+
isEqualMarks: (element: AlexElement) => boolean;
|
603
|
+
isFirst: (element: AlexElement) => boolean;
|
604
|
+
isLast: (element: AlexElement) => boolean;
|
609
605
|
__render: () => void;
|
610
|
-
__fullClone: () =>
|
606
|
+
__fullClone: () => AlexElement;
|
611
607
|
};
|
612
|
-
offset:
|
608
|
+
offset: number[] | false;
|
613
609
|
}[];
|
614
610
|
}>;
|
615
611
|
textValue: import('vue').ComputedRef<string>;
|
@@ -619,10 +615,10 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
619
615
|
undo: () => void;
|
620
616
|
redo: () => void;
|
621
617
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
622
|
-
"update:modelValue": (...args: any[]) => void;
|
623
618
|
change: (...args: any[]) => void;
|
624
619
|
blur: (...args: any[]) => void;
|
625
620
|
focus: (...args: any[]) => void;
|
621
|
+
"update:modelValue": (...args: any[]) => void;
|
626
622
|
keydown: (...args: any[]) => void;
|
627
623
|
keyup: (...args: any[]) => void;
|
628
624
|
insertparagraph: (...args: any[]) => void;
|
@@ -670,9 +666,9 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
670
666
|
default: boolean;
|
671
667
|
};
|
672
668
|
color: {
|
673
|
-
type:
|
669
|
+
type: StringConstructor;
|
674
670
|
default: string;
|
675
|
-
validator(value:
|
671
|
+
validator(value: string): boolean;
|
676
672
|
};
|
677
673
|
videoRatio: {
|
678
674
|
type: NumberConstructor;
|
@@ -691,7 +687,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
691
687
|
default: null;
|
692
688
|
};
|
693
689
|
customHtmlPaste: {
|
694
|
-
type: import('vue').PropType<(elements:
|
690
|
+
type: import('vue').PropType<(elements: AlexElement[]) => void | Promise<void>>;
|
695
691
|
default: null;
|
696
692
|
};
|
697
693
|
customImagePaste: {
|
@@ -711,15 +707,15 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
711
707
|
default: null;
|
712
708
|
};
|
713
709
|
pasteKeepMarks: {
|
714
|
-
type: import('vue').PropType<(el:
|
710
|
+
type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
|
715
711
|
default: null;
|
716
712
|
};
|
717
713
|
pasteKeepStyles: {
|
718
|
-
type: import('vue').PropType<(el:
|
714
|
+
type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
|
719
715
|
default: null;
|
720
716
|
};
|
721
717
|
customParseNode: {
|
722
|
-
type: import('vue').PropType<(el:
|
718
|
+
type: import('vue').PropType<(el: AlexElement) => AlexElement>;
|
723
719
|
default: null;
|
724
720
|
};
|
725
721
|
extraKeepTags: {
|
@@ -727,7 +723,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
727
723
|
default: () => never[];
|
728
724
|
};
|
729
725
|
renderRules: {
|
730
|
-
type: import('vue').PropType<((el:
|
726
|
+
type: import('vue').PropType<((el: AlexElement) => void)[]>;
|
731
727
|
default: () => never[];
|
732
728
|
};
|
733
729
|
autoheight: {
|
@@ -738,10 +734,6 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
738
734
|
type: BooleanConstructor;
|
739
735
|
default: boolean;
|
740
736
|
};
|
741
|
-
plugins: {
|
742
|
-
type: import('vue').PropType<import('./core/tool').PluginType[]>;
|
743
|
-
default: () => never[];
|
744
|
-
};
|
745
737
|
dark: {
|
746
738
|
type: BooleanConstructor;
|
747
739
|
default: boolean;
|
@@ -755,24 +747,23 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
755
747
|
default: number;
|
756
748
|
};
|
757
749
|
}>> & {
|
758
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
759
750
|
onFocus?: ((...args: any[]) => any) | undefined;
|
760
751
|
onBlur?: ((...args: any[]) => any) | undefined;
|
761
752
|
onChange?: ((...args: any[]) => any) | undefined;
|
762
753
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
763
754
|
onKeyup?: ((...args: any[]) => any) | undefined;
|
755
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
764
756
|
onInsertparagraph?: ((...args: any[]) => any) | undefined;
|
765
757
|
onRangeupdate?: ((...args: any[]) => any) | undefined;
|
766
758
|
onUpdateview?: ((...args: any[]) => any) | undefined;
|
767
759
|
}, {
|
768
|
-
color: string
|
760
|
+
color: string;
|
769
761
|
disabled: boolean;
|
770
762
|
zIndex: number;
|
771
|
-
modelValue: string;
|
772
|
-
border: boolean;
|
773
763
|
menu: import('./core/tool').MenuConfigType;
|
774
764
|
placeholder: string;
|
775
|
-
|
765
|
+
modelValue: string;
|
766
|
+
border: boolean;
|
776
767
|
toolbar: import('./core/tool').ToolbarConfigType;
|
777
768
|
locale: import('./locale').LocaleType;
|
778
769
|
autofocus: boolean;
|
@@ -783,36 +774,37 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
783
774
|
videoRatio: number;
|
784
775
|
showWordLength: boolean;
|
785
776
|
customTextPaste: (data: string) => void | Promise<void>;
|
786
|
-
customHtmlPaste: (elements:
|
777
|
+
customHtmlPaste: (elements: AlexElement[]) => void | Promise<void>;
|
787
778
|
customImagePaste: (file: File) => void | Promise<void>;
|
788
779
|
customVideoPaste: (file: File) => void | Promise<void>;
|
789
780
|
customFilePaste: (file: File) => void | Promise<void>;
|
790
|
-
pasteKeepMarks: (el:
|
791
|
-
pasteKeepStyles: (el:
|
792
|
-
customParseNode: (el:
|
781
|
+
pasteKeepMarks: (el: AlexElement) => import('./core/tool').ObjectType;
|
782
|
+
pasteKeepStyles: (el: AlexElement) => import('./core/tool').ObjectType;
|
783
|
+
customParseNode: (el: AlexElement) => AlexElement;
|
793
784
|
extraKeepTags: string[];
|
794
|
-
renderRules: ((el:
|
785
|
+
renderRules: ((el: AlexElement) => void)[];
|
786
|
+
autoheight: boolean;
|
795
787
|
tab: boolean;
|
796
|
-
plugins: import('./core/tool').PluginType[];
|
797
788
|
dark: boolean;
|
798
789
|
offset: number;
|
799
790
|
}, {}>>;
|
800
|
-
export type
|
801
|
-
export type
|
802
|
-
export type
|
803
|
-
export type
|
804
|
-
export type
|
805
|
-
export
|
791
|
+
export type * from './components/button';
|
792
|
+
export type * from './components/checkbox';
|
793
|
+
export type * from './components/colors';
|
794
|
+
export type * from './components/icon';
|
795
|
+
export type * from './components/insertImage';
|
796
|
+
export type * from './components/insertLink';
|
797
|
+
export type * from './components/insertTable';
|
798
|
+
export type * from './components/insertVideo';
|
799
|
+
export type * from './components/layer';
|
800
|
+
export type * from './components/tooltip';
|
801
|
+
export type * from './components/triangle';
|
802
|
+
export type * from './components/updateLink';
|
803
|
+
export type * from './core/tool';
|
804
|
+
export type * from './core/function';
|
805
|
+
export type * from './editify/menu';
|
806
|
+
export type * from './editify/toolbar';
|
807
|
+
export { elementIsMatch, getMatchElementByElement, getMatchElementByRange, elementIsList, getListByElement, hasListInRange, rangeIsInList, elementIsTask, getTaskByElement, hasTaskInRange, rangeIsInTask, elementIsAttachment, hasAttachmentInRange, elementIsMathformula, getMathformulaByElement, hasMathformulaInRange, elementIsPanel, getPanelByElement, hasPanelInRange, elementIsInfoBlock, getInfoBlockByElement, hasInfoBlockInRange, rangeIsInInfoBlock, hasPreInRange, hasQuoteInRange, hasLinkInRange, hasTableInRange, hasImageInRange, hasVideoInRange, rangeIsInQuote, queryTextStyle, queryTextMark, getRangeText, setIndentIncrease, setIndentDecrease, setQuote, setAlign, setList, setTask, setTextStyle, setTextMark, removeTextStyle, removeTextMark, setLineHeight, insertLink, insertImage, insertVideo, insertTable, insertCodeBlock, insertSeparator } from './core/function';
|
806
808
|
declare const install: (app: App) => void;
|
807
|
-
declare const version = "0.2.
|
808
|
-
export { AlexElement }
|
809
|
-
export type { AttachmentOptionsType } from './plugins/attachment';
|
810
|
-
export type { InsertAttachmentUploadErrorType } from './plugins/attachment/insertAttachment/props';
|
811
|
-
export { attachment, isAttachment, hasAttachmentInRange } from './plugins/attachment';
|
812
|
-
export type { MathformulaOptionsType } from './plugins/mathformula';
|
813
|
-
export { mathformula, isMathformula, isUnderMathformula, getMathformulaElement, hasMathformulaInRange, getMathformulaElementByRange } from './plugins/mathformula';
|
814
|
-
export type { PanelOptionsType } from './plugins/panel';
|
815
|
-
export { panel, isPanel, isUnderPanel, getPanelElement, hasPanelInRange, getPanelElementByRange } from './plugins/panel';
|
816
|
-
export type { InfoBlockOptionsType } from './plugins/infoBlock';
|
817
|
-
export { infoBlock, isInfoBlock, isUnderInfoBlock, getInfoBlockElement, hasInfoBlockInRange, getInfoBlockElementByRange } from './plugins/infoBlock';
|
818
|
-
export { Editify as default, Editify, install, version };
|
809
|
+
declare const version = "0.2.16";
|
810
|
+
export { Editify as default, Editify, install, AlexElement, version };
|