vue-editify 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/toolbar/toolbar.vue.d.ts +1 -1
- package/lib/editify/editify.vue.d.ts +68 -26
- package/lib/editify.es.js +43 -69
- package/lib/editify.umd.js +1 -1
- package/lib/index.d.ts +69 -27
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/lib/index.d.ts
CHANGED
@@ -150,8 +150,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
150
150
|
key: number;
|
151
151
|
type: import('alex-editor').AlexElementType;
|
152
152
|
parsedom: string | null;
|
153
|
-
marks: import('alex-editor
|
154
|
-
styles: import('alex-editor
|
153
|
+
marks: import('alex-editor').ObjectType | null;
|
154
|
+
styles: import('alex-editor').ObjectType | null;
|
155
155
|
textContent: string | null;
|
156
156
|
children: any[] | null;
|
157
157
|
parent: any | null;
|
@@ -170,7 +170,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
170
170
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
171
171
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
172
172
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
173
|
-
isOnlyHasBreak: () => boolean;
|
173
|
+
isOnlyHasBreak: () => boolean | 0;
|
174
174
|
isPreStyle: () => boolean;
|
175
175
|
hasMarks: () => boolean;
|
176
176
|
hasStyles: () => boolean;
|
@@ -195,8 +195,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
195
195
|
key: number;
|
196
196
|
type: import('alex-editor').AlexElementType;
|
197
197
|
parsedom: string | null;
|
198
|
-
marks: import('alex-editor
|
199
|
-
styles: import('alex-editor
|
198
|
+
marks: import('alex-editor').ObjectType | null;
|
199
|
+
styles: import('alex-editor').ObjectType | null;
|
200
200
|
textContent: string | null;
|
201
201
|
children: any[] | null;
|
202
202
|
parent: any | null;
|
@@ -215,7 +215,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
215
215
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
216
216
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
217
217
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
218
|
-
isOnlyHasBreak: () => boolean;
|
218
|
+
isOnlyHasBreak: () => boolean | 0;
|
219
219
|
isPreStyle: () => boolean;
|
220
220
|
hasMarks: () => boolean;
|
221
221
|
hasStyles: () => boolean;
|
@@ -244,8 +244,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
244
244
|
key: number;
|
245
245
|
type: import('alex-editor').AlexElementType;
|
246
246
|
parsedom: string | null;
|
247
|
-
marks: import('alex-editor
|
248
|
-
styles: import('alex-editor
|
247
|
+
marks: import('alex-editor').ObjectType | null;
|
248
|
+
styles: import('alex-editor').ObjectType | null;
|
249
249
|
textContent: string | null;
|
250
250
|
children: any[] | null;
|
251
251
|
parent: any | null;
|
@@ -264,7 +264,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
264
264
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
265
265
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
266
266
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
267
|
-
isOnlyHasBreak: () => boolean;
|
267
|
+
isOnlyHasBreak: () => boolean | 0;
|
268
268
|
isPreStyle: () => boolean;
|
269
269
|
hasMarks: () => boolean;
|
270
270
|
hasStyles: () => boolean;
|
@@ -300,8 +300,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
300
300
|
key: number;
|
301
301
|
type: import('alex-editor').AlexElementType;
|
302
302
|
parsedom: string | null;
|
303
|
-
marks: import('alex-editor
|
304
|
-
styles: import('alex-editor
|
303
|
+
marks: import('alex-editor').ObjectType | null;
|
304
|
+
styles: import('alex-editor').ObjectType | null;
|
305
305
|
textContent: string | null;
|
306
306
|
children: any[] | null;
|
307
307
|
parent: any | null;
|
@@ -320,7 +320,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
320
320
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
321
321
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
322
322
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
323
|
-
isOnlyHasBreak: () => boolean;
|
323
|
+
isOnlyHasBreak: () => boolean | 0;
|
324
324
|
isPreStyle: () => boolean;
|
325
325
|
hasMarks: () => boolean;
|
326
326
|
hasStyles: () => boolean;
|
@@ -345,8 +345,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
345
345
|
key: number;
|
346
346
|
type: import('alex-editor').AlexElementType;
|
347
347
|
parsedom: string | null;
|
348
|
-
marks: import('alex-editor
|
349
|
-
styles: import('alex-editor
|
348
|
+
marks: import('alex-editor').ObjectType | null;
|
349
|
+
styles: import('alex-editor').ObjectType | null;
|
350
350
|
textContent: string | null;
|
351
351
|
children: any[] | null;
|
352
352
|
parent: any | null;
|
@@ -365,7 +365,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
365
365
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
366
366
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
367
367
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
368
|
-
isOnlyHasBreak: () => boolean;
|
368
|
+
isOnlyHasBreak: () => boolean | 0;
|
369
369
|
isPreStyle: () => boolean;
|
370
370
|
hasMarks: () => boolean;
|
371
371
|
hasStyles: () => boolean;
|
@@ -394,8 +394,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
394
394
|
key: number;
|
395
395
|
type: import('alex-editor').AlexElementType;
|
396
396
|
parsedom: string | null;
|
397
|
-
marks: import('alex-editor
|
398
|
-
styles: import('alex-editor
|
397
|
+
marks: import('alex-editor').ObjectType | null;
|
398
|
+
styles: import('alex-editor').ObjectType | null;
|
399
399
|
textContent: string | null;
|
400
400
|
children: any[] | null;
|
401
401
|
parent: any | null;
|
@@ -414,7 +414,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
414
414
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
415
415
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
416
416
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
417
|
-
isOnlyHasBreak: () => boolean;
|
417
|
+
isOnlyHasBreak: () => boolean | 0;
|
418
418
|
isPreStyle: () => boolean;
|
419
419
|
hasMarks: () => boolean;
|
420
420
|
hasStyles: () => boolean;
|
@@ -440,8 +440,50 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
440
440
|
};
|
441
441
|
} | null;
|
442
442
|
__guid: number;
|
443
|
-
__events: import('alex-editor
|
444
|
-
|
443
|
+
__events: import('alex-editor').ObjectType;
|
444
|
+
__oldStack: {
|
445
|
+
key: number;
|
446
|
+
type: import('alex-editor').AlexElementType;
|
447
|
+
parsedom: string | null;
|
448
|
+
marks: import('alex-editor').ObjectType | null;
|
449
|
+
styles: import('alex-editor').ObjectType | null;
|
450
|
+
textContent: string | null;
|
451
|
+
children: any[] | null;
|
452
|
+
parent: any | null;
|
453
|
+
behavior: "default" | "block";
|
454
|
+
namespace: string | null;
|
455
|
+
locked: boolean;
|
456
|
+
elm: HTMLElement | null;
|
457
|
+
isBlock: () => boolean;
|
458
|
+
isInblock: () => boolean;
|
459
|
+
isInline: () => boolean;
|
460
|
+
isClosed: () => boolean;
|
461
|
+
isText: () => boolean;
|
462
|
+
isBreak: () => boolean;
|
463
|
+
isEmpty: () => boolean;
|
464
|
+
isSpaceText: () => boolean;
|
465
|
+
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
466
|
+
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
467
|
+
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
468
|
+
isOnlyHasBreak: () => boolean | 0;
|
469
|
+
isPreStyle: () => boolean;
|
470
|
+
hasMarks: () => boolean;
|
471
|
+
hasStyles: () => boolean;
|
472
|
+
hasChildren: () => boolean;
|
473
|
+
hasContains: (element: import('alex-editor').AlexElement) => boolean;
|
474
|
+
clone: (deep?: boolean | undefined) => import('alex-editor').AlexElement;
|
475
|
+
convertToBlock: () => void;
|
476
|
+
toEmpty: () => void;
|
477
|
+
getBlock: () => import('alex-editor').AlexElement;
|
478
|
+
getInblock: () => import('alex-editor').AlexElement | null;
|
479
|
+
getInline: () => import('alex-editor').AlexElement | null;
|
480
|
+
isEqualStyles: (element: import('alex-editor').AlexElement) => boolean;
|
481
|
+
isEqualMarks: (element: import('alex-editor').AlexElement) => boolean;
|
482
|
+
isFirst: (element: import('alex-editor').AlexElement) => boolean;
|
483
|
+
isLast: (element: import('alex-editor').AlexElement) => boolean;
|
484
|
+
__render: () => void;
|
485
|
+
__fullClone: () => import('alex-editor').AlexElement;
|
486
|
+
}[];
|
445
487
|
__isInputChinese: boolean;
|
446
488
|
__innerSelectionChange: boolean;
|
447
489
|
__chineseInputTimer: any;
|
@@ -482,8 +524,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
482
524
|
key: number;
|
483
525
|
type: import('alex-editor').AlexElementType;
|
484
526
|
parsedom: string | null;
|
485
|
-
marks: import('alex-editor
|
486
|
-
styles: import('alex-editor
|
527
|
+
marks: import('alex-editor').ObjectType | null;
|
528
|
+
styles: import('alex-editor').ObjectType | null;
|
487
529
|
textContent: string | null;
|
488
530
|
children: any[] | null;
|
489
531
|
parent: any | null;
|
@@ -502,7 +544,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
502
544
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
503
545
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
504
546
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
505
|
-
isOnlyHasBreak: () => boolean;
|
547
|
+
isOnlyHasBreak: () => boolean | 0;
|
506
548
|
isPreStyle: () => boolean;
|
507
549
|
hasMarks: () => boolean;
|
508
550
|
hasStyles: () => boolean;
|
@@ -528,8 +570,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
528
570
|
key: number;
|
529
571
|
type: import('alex-editor').AlexElementType;
|
530
572
|
parsedom: string | null;
|
531
|
-
marks: import('alex-editor
|
532
|
-
styles: import('alex-editor
|
573
|
+
marks: import('alex-editor').ObjectType | null;
|
574
|
+
styles: import('alex-editor').ObjectType | null;
|
533
575
|
textContent: string | null;
|
534
576
|
children: any[] | null;
|
535
577
|
parent: any | null;
|
@@ -548,7 +590,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
|
|
548
590
|
getUneditableElement: () => import('alex-editor').AlexElement | null;
|
549
591
|
isEqual: (element: import('alex-editor').AlexElement) => boolean;
|
550
592
|
isContains: (element: import('alex-editor').AlexElement) => boolean;
|
551
|
-
isOnlyHasBreak: () => boolean;
|
593
|
+
isOnlyHasBreak: () => boolean | 0;
|
552
594
|
isPreStyle: () => boolean;
|
553
595
|
hasMarks: () => boolean;
|
554
596
|
hasStyles: () => boolean;
|
@@ -762,7 +804,7 @@ export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuI
|
|
762
804
|
export type { ElementMatchConfigType } from './core/function';
|
763
805
|
export { elementIsMatch, getMatchElementByElement, getMatchElementByRange, isList, isTask, elementIsInList, elementIsInTask, hasPreInRange, hasQuoteInRange, hasListInRange, hasTaskInRange, hasLinkInRange, hasTableInRange, hasImageInRange, hasVideoInRange, isRangeInQuote, isRangeInList, isRangeInTask, queryTextStyle, queryTextMark, getRangeText, setIndentIncrease, setIndentDecrease, setQuote, setAlign, setList, setTask, setTextStyle, setTextMark, removeTextStyle, removeTextMark, setLineHeight, insertLink, insertImage, insertVideo, insertTable, insertCodeBlock, insertSeparator } from './core/function';
|
764
806
|
declare const install: (app: App) => void;
|
765
|
-
declare const version = "0.2.
|
807
|
+
declare const version = "0.2.14";
|
766
808
|
export { AlexElement } from 'alex-editor';
|
767
809
|
export type { AttachmentOptionsType } from './plugins/attachment';
|
768
810
|
export type { InsertAttachmentUploadErrorType } from './plugins/attachment/insertAttachment/props';
|
package/package.json
CHANGED