vue-editify 0.2.15 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/examples/App.vue +15 -36
  2. package/lib/editify/editify.vue.d.ts +0 -1
  3. package/lib/editify.es.js +17950 -17950
  4. package/lib/editify.umd.js +2 -2
  5. package/lib/index.d.ts +163 -164
  6. package/package.json +2 -2
  7. package/src/core/rule.ts +12 -22
  8. package/src/core/tool.ts +3 -3
  9. package/src/editify/editify.less +2 -0
  10. package/src/editify/editify.vue +1 -9
  11. package/src/editify/toolbar/toolbar.less +1 -1
  12. package/src/feature/align.ts +0 -2
  13. package/src/feature/attachment.ts +0 -1
  14. package/src/feature/backColor.ts +0 -2
  15. package/src/feature/bold.ts +0 -2
  16. package/src/feature/code.ts +0 -2
  17. package/src/feature/codeBlock.ts +0 -3
  18. package/src/feature/fontFamily.ts +0 -2
  19. package/src/feature/fontSize.ts +0 -2
  20. package/src/feature/foreColor.ts +0 -2
  21. package/src/feature/formatClear.ts +0 -2
  22. package/src/feature/heading.ts +0 -2
  23. package/src/feature/image.ts +0 -3
  24. package/src/feature/indent.ts +0 -1
  25. package/src/feature/infoBlock.ts +0 -1
  26. package/src/feature/italic.ts +0 -2
  27. package/src/feature/lineHeight.ts +1 -3
  28. package/src/feature/link.ts +0 -3
  29. package/src/feature/mathformula.ts +0 -1
  30. package/src/feature/orderList.ts +0 -2
  31. package/src/feature/panel.ts +0 -1
  32. package/src/feature/quote.ts +0 -1
  33. package/src/feature/separator.ts +0 -1
  34. package/src/feature/strikethrough.ts +0 -2
  35. package/src/feature/sub.ts +0 -2
  36. package/src/feature/super.ts +0 -2
  37. package/src/feature/table.ts +0 -13
  38. package/src/feature/task.ts +0 -2
  39. package/src/feature/underline.ts +0 -2
  40. package/src/feature/unorderList.ts +0 -2
  41. package/src/feature/video.ts +0 -4
  42. package/src/index.ts +14 -5
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: {
@@ -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: import('alex-editor').AlexElement[]) => void | Promise<void>>;
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: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
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: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
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: import('alex-editor').AlexElement) => import('alex-editor').AlexElement>;
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: import('alex-editor').AlexElement) => void)[]>;
103
+ type: import('vue').PropType<((el: AlexElement) => void)[]>;
103
104
  default: () => never[];
104
105
  };
105
106
  autoheight: {
@@ -127,18 +128,18 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
127
128
  $el: HTMLElement;
128
129
  disabled: boolean;
129
130
  value: string;
130
- renderRules: ((element: import('alex-editor').AlexElement) => void)[];
131
+ renderRules: ((element: AlexElement) => void)[];
131
132
  allowCopy: boolean;
132
133
  allowPaste: boolean;
133
134
  allowCut: boolean;
134
135
  allowPasteHtml: boolean;
135
136
  customTextPaste: ((text: string) => void | Promise<void>) | null;
136
- customHtmlPaste: ((AlexElements: import('alex-editor').AlexElement[], html: string) => void | Promise<void>) | null;
137
+ customHtmlPaste: ((AlexElements: AlexElement[], html: string) => void | Promise<void>) | null;
137
138
  customImagePaste: ((file: File) => void | Promise<void>) | null;
138
139
  customVideoPaste: ((file: File) => void | Promise<void>) | null;
139
140
  customFilePaste: ((file: File) => void | Promise<void>) | null;
140
- customMerge: ((mergeElement: import('alex-editor').AlexElement, targetElement: import('alex-editor').AlexElement) => void | Promise<void>) | null;
141
- customParseNode: ((el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement) | null;
141
+ customMerge: ((mergeElement: AlexElement, targetElement: AlexElement) => void | Promise<void>) | null;
142
+ customParseNode: ((el: AlexElement) => AlexElement) | null;
142
143
  extraKeepTags: string[];
143
144
  history: {
144
145
  records: {
@@ -163,27 +164,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
163
164
  isBreak: () => boolean;
164
165
  isEmpty: () => boolean;
165
166
  isSpaceText: () => boolean;
166
- getUneditableElement: () => import('alex-editor').AlexElement | null;
167
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
168
- isContains: (element: import('alex-editor').AlexElement) => boolean;
167
+ getUneditableElement: () => AlexElement | null;
168
+ isEqual: (element: AlexElement) => boolean;
169
+ isContains: (element: AlexElement) => boolean;
169
170
  isOnlyHasBreak: () => boolean | 0;
170
171
  isPreStyle: () => boolean;
171
172
  hasMarks: () => boolean;
172
173
  hasStyles: () => boolean;
173
174
  hasChildren: () => boolean;
174
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
175
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
175
+ hasContains: (element: AlexElement) => boolean;
176
+ clone: (deep?: boolean | undefined) => AlexElement;
176
177
  convertToBlock: () => void;
177
178
  toEmpty: () => void;
178
- getBlock: () => import('alex-editor').AlexElement;
179
- getInblock: () => import('alex-editor').AlexElement | null;
180
- getInline: () => import('alex-editor').AlexElement | null;
181
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
182
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
183
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
184
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
185
186
  __render: () => void;
186
- __fullClone: () => import('alex-editor').AlexElement;
187
+ __fullClone: () => AlexElement;
187
188
  }[];
188
189
  range: {
189
190
  anchor: {
@@ -208,32 +209,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
208
209
  isBreak: () => boolean;
209
210
  isEmpty: () => boolean;
210
211
  isSpaceText: () => boolean;
211
- getUneditableElement: () => import('alex-editor').AlexElement | null;
212
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
213
- isContains: (element: import('alex-editor').AlexElement) => boolean;
212
+ getUneditableElement: () => AlexElement | null;
213
+ isEqual: (element: AlexElement) => boolean;
214
+ isContains: (element: AlexElement) => boolean;
214
215
  isOnlyHasBreak: () => boolean | 0;
215
216
  isPreStyle: () => boolean;
216
217
  hasMarks: () => boolean;
217
218
  hasStyles: () => boolean;
218
219
  hasChildren: () => boolean;
219
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
220
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
220
+ hasContains: (element: AlexElement) => boolean;
221
+ clone: (deep?: boolean | undefined) => AlexElement;
221
222
  convertToBlock: () => void;
222
223
  toEmpty: () => void;
223
- getBlock: () => import('alex-editor').AlexElement;
224
- getInblock: () => import('alex-editor').AlexElement | null;
225
- getInline: () => import('alex-editor').AlexElement | null;
226
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
227
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
228
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
229
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
230
231
  __render: () => void;
231
- __fullClone: () => import('alex-editor').AlexElement;
232
+ __fullClone: () => AlexElement;
232
233
  };
233
234
  offset: number;
234
235
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
235
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
236
- moveToStart: (element: import('alex-editor').AlexElement) => void;
236
+ moveToEnd: (element: AlexElement) => void;
237
+ moveToStart: (element: AlexElement) => void;
237
238
  };
238
239
  focus: {
239
240
  element: {
@@ -257,40 +258,40 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
257
258
  isBreak: () => boolean;
258
259
  isEmpty: () => boolean;
259
260
  isSpaceText: () => boolean;
260
- getUneditableElement: () => import('alex-editor').AlexElement | null;
261
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
262
- isContains: (element: import('alex-editor').AlexElement) => boolean;
261
+ getUneditableElement: () => AlexElement | null;
262
+ isEqual: (element: AlexElement) => boolean;
263
+ isContains: (element: AlexElement) => boolean;
263
264
  isOnlyHasBreak: () => boolean | 0;
264
265
  isPreStyle: () => boolean;
265
266
  hasMarks: () => boolean;
266
267
  hasStyles: () => boolean;
267
268
  hasChildren: () => boolean;
268
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
269
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
269
+ hasContains: (element: AlexElement) => boolean;
270
+ clone: (deep?: boolean | undefined) => AlexElement;
270
271
  convertToBlock: () => void;
271
272
  toEmpty: () => void;
272
- getBlock: () => import('alex-editor').AlexElement;
273
- getInblock: () => import('alex-editor').AlexElement | null;
274
- getInline: () => import('alex-editor').AlexElement | null;
275
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
276
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
277
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
278
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
279
280
  __render: () => void;
280
- __fullClone: () => import('alex-editor').AlexElement;
281
+ __fullClone: () => AlexElement;
281
282
  };
282
283
  offset: number;
283
284
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
284
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
285
- moveToStart: (element: import('alex-editor').AlexElement) => void;
285
+ moveToEnd: (element: AlexElement) => void;
286
+ moveToStart: (element: AlexElement) => void;
286
287
  };
287
288
  } | null;
288
289
  }[];
289
290
  current: number;
290
- push: (stack: import('alex-editor').AlexElement[], range?: import('alex-editor').AlexRange | null) => void;
291
+ push: (stack: AlexElement[], range?: import('alex-editor').AlexRange | null) => void;
291
292
  get: (type: -1 | 1) => import('alex-editor').AlexHistoryResultType | null;
292
293
  updateCurrentRange: (range: import('alex-editor').AlexRange) => void;
293
- __cloneRange: (newStack: import('alex-editor').AlexElement[], range?: import('alex-editor').AlexRange | null) => import('alex-editor').AlexRange | null;
294
+ __cloneRange: (newStack: AlexElement[], range?: import('alex-editor').AlexRange | null) => import('alex-editor').AlexRange | null;
294
295
  };
295
296
  stack: {
296
297
  key: number;
@@ -313,27 +314,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
313
314
  isBreak: () => boolean;
314
315
  isEmpty: () => boolean;
315
316
  isSpaceText: () => boolean;
316
- getUneditableElement: () => import('alex-editor').AlexElement | null;
317
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
318
- isContains: (element: import('alex-editor').AlexElement) => boolean;
317
+ getUneditableElement: () => AlexElement | null;
318
+ isEqual: (element: AlexElement) => boolean;
319
+ isContains: (element: AlexElement) => boolean;
319
320
  isOnlyHasBreak: () => boolean | 0;
320
321
  isPreStyle: () => boolean;
321
322
  hasMarks: () => boolean;
322
323
  hasStyles: () => boolean;
323
324
  hasChildren: () => boolean;
324
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
325
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
325
+ hasContains: (element: AlexElement) => boolean;
326
+ clone: (deep?: boolean | undefined) => AlexElement;
326
327
  convertToBlock: () => void;
327
328
  toEmpty: () => void;
328
- getBlock: () => import('alex-editor').AlexElement;
329
- getInblock: () => import('alex-editor').AlexElement | null;
330
- getInline: () => import('alex-editor').AlexElement | null;
331
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
332
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
333
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
334
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
335
336
  __render: () => void;
336
- __fullClone: () => import('alex-editor').AlexElement;
337
+ __fullClone: () => AlexElement;
337
338
  }[];
338
339
  range: {
339
340
  anchor: {
@@ -358,32 +359,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
358
359
  isBreak: () => boolean;
359
360
  isEmpty: () => boolean;
360
361
  isSpaceText: () => boolean;
361
- getUneditableElement: () => import('alex-editor').AlexElement | null;
362
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
363
- isContains: (element: import('alex-editor').AlexElement) => boolean;
362
+ getUneditableElement: () => AlexElement | null;
363
+ isEqual: (element: AlexElement) => boolean;
364
+ isContains: (element: AlexElement) => boolean;
364
365
  isOnlyHasBreak: () => boolean | 0;
365
366
  isPreStyle: () => boolean;
366
367
  hasMarks: () => boolean;
367
368
  hasStyles: () => boolean;
368
369
  hasChildren: () => boolean;
369
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
370
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
370
+ hasContains: (element: AlexElement) => boolean;
371
+ clone: (deep?: boolean | undefined) => AlexElement;
371
372
  convertToBlock: () => void;
372
373
  toEmpty: () => void;
373
- getBlock: () => import('alex-editor').AlexElement;
374
- getInblock: () => import('alex-editor').AlexElement | null;
375
- getInline: () => import('alex-editor').AlexElement | null;
376
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
377
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
378
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
379
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
380
381
  __render: () => void;
381
- __fullClone: () => import('alex-editor').AlexElement;
382
+ __fullClone: () => AlexElement;
382
383
  };
383
384
  offset: number;
384
385
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
385
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
386
- moveToStart: (element: import('alex-editor').AlexElement) => void;
386
+ moveToEnd: (element: AlexElement) => void;
387
+ moveToStart: (element: AlexElement) => void;
387
388
  };
388
389
  focus: {
389
390
  element: {
@@ -407,32 +408,32 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
407
408
  isBreak: () => boolean;
408
409
  isEmpty: () => boolean;
409
410
  isSpaceText: () => boolean;
410
- getUneditableElement: () => import('alex-editor').AlexElement | null;
411
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
412
- isContains: (element: import('alex-editor').AlexElement) => boolean;
411
+ getUneditableElement: () => AlexElement | null;
412
+ isEqual: (element: AlexElement) => boolean;
413
+ isContains: (element: AlexElement) => boolean;
413
414
  isOnlyHasBreak: () => boolean | 0;
414
415
  isPreStyle: () => boolean;
415
416
  hasMarks: () => boolean;
416
417
  hasStyles: () => boolean;
417
418
  hasChildren: () => boolean;
418
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
419
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
419
+ hasContains: (element: AlexElement) => boolean;
420
+ clone: (deep?: boolean | undefined) => AlexElement;
420
421
  convertToBlock: () => void;
421
422
  toEmpty: () => void;
422
- getBlock: () => import('alex-editor').AlexElement;
423
- getInblock: () => import('alex-editor').AlexElement | null;
424
- getInline: () => import('alex-editor').AlexElement | null;
425
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
426
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
427
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
428
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
429
430
  __render: () => void;
430
- __fullClone: () => import('alex-editor').AlexElement;
431
+ __fullClone: () => AlexElement;
431
432
  };
432
433
  offset: number;
433
434
  isEqual: (point: import('alex-editor').AlexPoint) => boolean;
434
- moveToEnd: (element: import('alex-editor').AlexElement) => void;
435
- moveToStart: (element: import('alex-editor').AlexElement) => void;
435
+ moveToEnd: (element: AlexElement) => void;
436
+ moveToStart: (element: AlexElement) => void;
436
437
  };
437
438
  } | null;
438
439
  __guid: number;
@@ -458,27 +459,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
458
459
  isBreak: () => boolean;
459
460
  isEmpty: () => boolean;
460
461
  isSpaceText: () => boolean;
461
- getUneditableElement: () => import('alex-editor').AlexElement | null;
462
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
463
- isContains: (element: import('alex-editor').AlexElement) => boolean;
462
+ getUneditableElement: () => AlexElement | null;
463
+ isEqual: (element: AlexElement) => boolean;
464
+ isContains: (element: AlexElement) => boolean;
464
465
  isOnlyHasBreak: () => boolean | 0;
465
466
  isPreStyle: () => boolean;
466
467
  hasMarks: () => boolean;
467
468
  hasStyles: () => boolean;
468
469
  hasChildren: () => boolean;
469
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
470
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
470
+ hasContains: (element: AlexElement) => boolean;
471
+ clone: (deep?: boolean | undefined) => AlexElement;
471
472
  convertToBlock: () => void;
472
473
  toEmpty: () => void;
473
- getBlock: () => import('alex-editor').AlexElement;
474
- getInblock: () => import('alex-editor').AlexElement | null;
475
- getInline: () => import('alex-editor').AlexElement | null;
476
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
477
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
478
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
479
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
480
481
  __render: () => void;
481
- __fullClone: () => import('alex-editor').AlexElement;
482
+ __fullClone: () => AlexElement;
482
483
  }[];
483
484
  __isInputChinese: boolean;
484
485
  __innerSelectionChange: boolean;
@@ -487,24 +488,23 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
487
488
  delete: () => void;
488
489
  insertText: (data: string) => void;
489
490
  insertParagraph: () => void;
490
- insertElement: (ele: import('alex-editor').AlexElement, cover?: boolean | undefined) => void;
491
- formatElementStack: () => void;
491
+ insertElement: (ele: AlexElement, cover?: boolean | undefined) => void;
492
492
  domRender: (unPushHistory?: boolean | undefined) => void;
493
493
  rangeRender: () => Promise<void>;
494
- parseHtml: (html: string) => import('alex-editor').AlexElement[];
495
- parseNode: (node: HTMLElement) => import('alex-editor').AlexElement;
496
- merge: (ele: import('alex-editor').AlexElement, previousEle: import('alex-editor').AlexElement) => void;
497
- getElementByKey: (key: number) => import('alex-editor').AlexElement | null;
498
- getPreviousElement: (ele: import('alex-editor').AlexElement) => import('alex-editor').AlexElement | null;
499
- getNextElement: (ele: import('alex-editor').AlexElement) => import('alex-editor').AlexElement | null;
500
- getPreviousElementOfPoint: (point: import('alex-editor').AlexPoint) => import('alex-editor').AlexElement | null;
501
- getNextElementOfPoint: (point: import('alex-editor').AlexPoint) => import('alex-editor').AlexElement | null;
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;
502
502
  getElementsByRange: () => import('alex-editor').AlexElementsRangeType;
503
- addElementTo: (childEle: import('alex-editor').AlexElement, parentEle: import('alex-editor').AlexElement, index?: number | undefined) => void;
504
- addElementBefore: (newEle: import('alex-editor').AlexElement, targetEle: import('alex-editor').AlexElement) => void;
505
- addElementAfter: (newEle: import('alex-editor').AlexElement, targetEle: import('alex-editor').AlexElement) => void;
506
- collapseToStart: (element?: import('alex-editor').AlexElement) => void;
507
- collapseToEnd: (element?: import('alex-editor').AlexElement) => void;
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;
508
508
  setDisabled: () => void;
509
509
  setEnabled: () => void;
510
510
  emit: (eventName: string, ...value: any) => boolean;
@@ -537,27 +537,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
537
537
  isBreak: () => boolean;
538
538
  isEmpty: () => boolean;
539
539
  isSpaceText: () => boolean;
540
- getUneditableElement: () => import('alex-editor').AlexElement | null;
541
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
542
- isContains: (element: import('alex-editor').AlexElement) => boolean;
540
+ getUneditableElement: () => AlexElement | null;
541
+ isEqual: (element: AlexElement) => boolean;
542
+ isContains: (element: AlexElement) => boolean;
543
543
  isOnlyHasBreak: () => boolean | 0;
544
544
  isPreStyle: () => boolean;
545
545
  hasMarks: () => boolean;
546
546
  hasStyles: () => boolean;
547
547
  hasChildren: () => boolean;
548
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
549
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
548
+ hasContains: (element: AlexElement) => boolean;
549
+ clone: (deep?: boolean | undefined) => AlexElement;
550
550
  convertToBlock: () => void;
551
551
  toEmpty: () => void;
552
- getBlock: () => import('alex-editor').AlexElement;
553
- getInblock: () => import('alex-editor').AlexElement | null;
554
- getInline: () => import('alex-editor').AlexElement | null;
555
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
556
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
557
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
558
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
559
559
  __render: () => void;
560
- __fullClone: () => import('alex-editor').AlexElement;
560
+ __fullClone: () => AlexElement;
561
561
  };
562
562
  offset: number[] | false;
563
563
  }[];
@@ -583,27 +583,27 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
583
583
  isBreak: () => boolean;
584
584
  isEmpty: () => boolean;
585
585
  isSpaceText: () => boolean;
586
- getUneditableElement: () => import('alex-editor').AlexElement | null;
587
- isEqual: (element: import('alex-editor').AlexElement) => boolean;
588
- isContains: (element: import('alex-editor').AlexElement) => boolean;
586
+ getUneditableElement: () => AlexElement | null;
587
+ isEqual: (element: AlexElement) => boolean;
588
+ isContains: (element: AlexElement) => boolean;
589
589
  isOnlyHasBreak: () => boolean | 0;
590
590
  isPreStyle: () => boolean;
591
591
  hasMarks: () => boolean;
592
592
  hasStyles: () => boolean;
593
593
  hasChildren: () => boolean;
594
- hasContains: (element: import('alex-editor').AlexElement) => boolean;
595
- clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
594
+ hasContains: (element: AlexElement) => boolean;
595
+ clone: (deep?: boolean | undefined) => AlexElement;
596
596
  convertToBlock: () => void;
597
597
  toEmpty: () => void;
598
- getBlock: () => import('alex-editor').AlexElement;
599
- getInblock: () => import('alex-editor').AlexElement | null;
600
- getInline: () => import('alex-editor').AlexElement | null;
601
- isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
602
- isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
603
- isFirst: (element: import('alex-editor').AlexElement) => boolean;
604
- isLast: (element: import('alex-editor').AlexElement) => boolean;
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;
605
605
  __render: () => void;
606
- __fullClone: () => import('alex-editor').AlexElement;
606
+ __fullClone: () => AlexElement;
607
607
  };
608
608
  offset: number[] | false;
609
609
  }[];
@@ -687,7 +687,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
687
687
  default: null;
688
688
  };
689
689
  customHtmlPaste: {
690
- type: import('vue').PropType<(elements: import('alex-editor').AlexElement[]) => void | Promise<void>>;
690
+ type: import('vue').PropType<(elements: AlexElement[]) => void | Promise<void>>;
691
691
  default: null;
692
692
  };
693
693
  customImagePaste: {
@@ -707,15 +707,15 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
707
707
  default: null;
708
708
  };
709
709
  pasteKeepMarks: {
710
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
710
+ type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
711
711
  default: null;
712
712
  };
713
713
  pasteKeepStyles: {
714
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType>;
714
+ type: import('vue').PropType<(el: AlexElement) => import('./core/tool').ObjectType>;
715
715
  default: null;
716
716
  };
717
717
  customParseNode: {
718
- type: import('vue').PropType<(el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement>;
718
+ type: import('vue').PropType<(el: AlexElement) => AlexElement>;
719
719
  default: null;
720
720
  };
721
721
  extraKeepTags: {
@@ -723,7 +723,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
723
723
  default: () => never[];
724
724
  };
725
725
  renderRules: {
726
- type: import('vue').PropType<((el: import('alex-editor').AlexElement) => void)[]>;
726
+ type: import('vue').PropType<((el: AlexElement) => void)[]>;
727
727
  default: () => never[];
728
728
  };
729
729
  autoheight: {
@@ -774,15 +774,15 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
774
774
  videoRatio: number;
775
775
  showWordLength: boolean;
776
776
  customTextPaste: (data: string) => void | Promise<void>;
777
- customHtmlPaste: (elements: import('alex-editor').AlexElement[]) => void | Promise<void>;
777
+ customHtmlPaste: (elements: AlexElement[]) => void | Promise<void>;
778
778
  customImagePaste: (file: File) => void | Promise<void>;
779
779
  customVideoPaste: (file: File) => void | Promise<void>;
780
780
  customFilePaste: (file: File) => void | Promise<void>;
781
- pasteKeepMarks: (el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType;
782
- pasteKeepStyles: (el: import('alex-editor').AlexElement) => import('./core/tool').ObjectType;
783
- customParseNode: (el: import('alex-editor').AlexElement) => import('alex-editor').AlexElement;
781
+ pasteKeepMarks: (el: AlexElement) => import('./core/tool').ObjectType;
782
+ pasteKeepStyles: (el: AlexElement) => import('./core/tool').ObjectType;
783
+ customParseNode: (el: AlexElement) => AlexElement;
784
784
  extraKeepTags: string[];
785
- renderRules: ((el: import('alex-editor').AlexElement) => void)[];
785
+ renderRules: ((el: AlexElement) => void)[];
786
786
  autoheight: boolean;
787
787
  tab: boolean;
788
788
  dark: boolean;
@@ -806,6 +806,5 @@ export type * from './editify/menu';
806
806
  export type * from './editify/toolbar';
807
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';
808
808
  declare const install: (app: App) => void;
809
- declare const version = "0.2.15";
810
- export { AlexElement } from 'alex-editor';
811
- export { Editify as default, Editify, install, version };
809
+ declare const version = "0.2.17";
810
+ export { Editify as default, Editify, install, AlexElement, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-editify",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -17,7 +17,7 @@
17
17
  "lib": "vue-tsc && vite build"
18
18
  },
19
19
  "dependencies": {
20
- "alex-editor": "^1.4.21",
20
+ "alex-editor": "^1.4.25",
21
21
  "dap-util": "^1.5.8",
22
22
  "highlight.js": "^11.8.0",
23
23
  "katex": "^0.16.10",