vue-editify 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
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').ObjectType | null;
154
- styles: import('alex-editor').ObjectType | null;
153
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
154
+ styles: import('alex-editor/lib/core/tool').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 | 0;
173
+ isOnlyHasBreak: () => boolean;
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').ObjectType | null;
199
- styles: import('alex-editor').ObjectType | null;
198
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
199
+ styles: import('alex-editor/lib/core/tool').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 | 0;
218
+ isOnlyHasBreak: () => boolean;
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').ObjectType | null;
248
- styles: import('alex-editor').ObjectType | null;
247
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
248
+ styles: import('alex-editor/lib/core/tool').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 | 0;
267
+ isOnlyHasBreak: () => boolean;
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').ObjectType | null;
304
- styles: import('alex-editor').ObjectType | null;
303
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
304
+ styles: import('alex-editor/lib/core/tool').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 | 0;
323
+ isOnlyHasBreak: () => boolean;
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').ObjectType | null;
349
- styles: import('alex-editor').ObjectType | null;
348
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
349
+ styles: import('alex-editor/lib/core/tool').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 | 0;
368
+ isOnlyHasBreak: () => boolean;
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').ObjectType | null;
398
- styles: import('alex-editor').ObjectType | null;
397
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
398
+ styles: import('alex-editor/lib/core/tool').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 | 0;
417
+ isOnlyHasBreak: () => boolean;
418
418
  isPreStyle: () => boolean;
419
419
  hasMarks: () => boolean;
420
420
  hasStyles: () => boolean;
@@ -440,50 +440,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
440
440
  };
441
441
  } | null;
442
442
  __guid: number;
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
- }[];
443
+ __events: import('alex-editor/lib/core/tool').ObjectType;
444
+ __firstRender: boolean;
487
445
  __isInputChinese: boolean;
488
446
  __innerSelectionChange: boolean;
489
447
  __chineseInputTimer: any;
@@ -524,8 +482,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
524
482
  key: number;
525
483
  type: import('alex-editor').AlexElementType;
526
484
  parsedom: string | null;
527
- marks: import('alex-editor').ObjectType | null;
528
- styles: import('alex-editor').ObjectType | null;
485
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
486
+ styles: import('alex-editor/lib/core/tool').ObjectType | null;
529
487
  textContent: string | null;
530
488
  children: any[] | null;
531
489
  parent: any | null;
@@ -544,7 +502,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
544
502
  getUneditableElement: () => import('alex-editor').AlexElement | null;
545
503
  isEqual: (element: import('alex-editor').AlexElement) => boolean;
546
504
  isContains: (element: import('alex-editor').AlexElement) => boolean;
547
- isOnlyHasBreak: () => boolean | 0;
505
+ isOnlyHasBreak: () => boolean;
548
506
  isPreStyle: () => boolean;
549
507
  hasMarks: () => boolean;
550
508
  hasStyles: () => boolean;
@@ -570,8 +528,8 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
570
528
  key: number;
571
529
  type: import('alex-editor').AlexElementType;
572
530
  parsedom: string | null;
573
- marks: import('alex-editor').ObjectType | null;
574
- styles: import('alex-editor').ObjectType | null;
531
+ marks: import('alex-editor/lib/core/tool').ObjectType | null;
532
+ styles: import('alex-editor/lib/core/tool').ObjectType | null;
575
533
  textContent: string | null;
576
534
  children: any[] | null;
577
535
  parent: any | null;
@@ -590,7 +548,7 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
590
548
  getUneditableElement: () => import('alex-editor').AlexElement | null;
591
549
  isEqual: (element: import('alex-editor').AlexElement) => boolean;
592
550
  isContains: (element: import('alex-editor').AlexElement) => boolean;
593
- isOnlyHasBreak: () => boolean | 0;
551
+ isOnlyHasBreak: () => boolean;
594
552
  isPreStyle: () => boolean;
595
553
  hasMarks: () => boolean;
596
554
  hasStyles: () => boolean;
@@ -800,11 +758,11 @@ declare const Editify: import('./core/tool').SFCWithInstall<import('vue').Define
800
758
  export type { ButtonTypeType, ButtonOptionsItemType, ButtonSelectConfigType, ButtonDisplayConfigType } from './components/button/props';
801
759
  export type { InsertImageUploadErrorType } from './components/insertImage/props';
802
760
  export type { InsertVideoUploadErrorType } from './components/insertVideo/props';
803
- export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuImageButtonType, MenuVideoButtonType, MenuTableButtonType, MenuCustomButtonType, CodeBlockToolbarType, TextToolbarType, ToolbarConfigType, MenuSequenceType, MenuModeType, MenuExtendType, MenuConfigType, PluginType, PluginResultType } from './core/tool';
761
+ export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuImageButtonType, MenuVideoButtonType, MenuTableButtonType, MenuCustomButtonType, CodeBlockToolbarType, TextToolbarType, ToolbarConfigType, MenuSequenceType, MenuModeType, MenuExtendType, MenuConfigType, PluginMenuConfigType, PluginType, PluginResultType } from './core/tool';
804
762
  export type { ElementMatchConfigType } from './core/function';
805
763
  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';
806
764
  declare const install: (app: App) => void;
807
- declare const version = "0.2.12";
765
+ declare const version = "0.2.13";
808
766
  export { AlexElement } from 'alex-editor';
809
767
  export type { AttachmentOptionsType } from './plugins/attachment';
810
768
  export type { InsertAttachmentUploadErrorType } from './plugins/attachment/insertAttachment/props';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-editify",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="editify" :class="{ 'editify-fullscreen': isFullScreen, 'editify-autoheight': !isFullScreen && autoheight }" :style="{ zIndex: zIndex, paddingTop: (offset || '') + 'px' }" ref="elRef">
2
+ <div class="editify" :class="{ 'editify-fullscreen': isFullScreen, 'editify-autoheight': !isFullScreen && autoheight }" :style="{ zIndex: zIndex, paddingTop: isFullScreen ? '' : (offset || '') + 'px' }" ref="elRef">
3
3
  <!-- 菜单区域 -->
4
4
  <Menu ref="menuRef" v-if="menuConfig.use" :config="menuConfig" :color="color" :z-index="zIndex + 1"></Menu>
5
5
  <!-- 编辑层,与编辑区域宽高相同必须适配 -->
package/src/index.ts CHANGED
@@ -13,7 +13,7 @@ const Editify = withInstall(editify)
13
13
  export type { ButtonTypeType, ButtonOptionsItemType, ButtonSelectConfigType, ButtonDisplayConfigType } from '@/components/button/props'
14
14
  export type { InsertImageUploadErrorType } from '@/components/insertImage/props'
15
15
  export type { InsertVideoUploadErrorType } from '@/components/insertVideo/props'
16
- export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuImageButtonType, MenuVideoButtonType, MenuTableButtonType, MenuCustomButtonType, CodeBlockToolbarType, TextToolbarType, ToolbarConfigType, MenuSequenceType, MenuModeType, MenuExtendType, MenuConfigType, PluginType, PluginResultType } from '@/core/tool'
16
+ export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuImageButtonType, MenuVideoButtonType, MenuTableButtonType, MenuCustomButtonType, CodeBlockToolbarType, TextToolbarType, ToolbarConfigType, MenuSequenceType, MenuModeType, MenuExtendType, MenuConfigType, PluginMenuConfigType, PluginType, PluginResultType } from '@/core/tool'
17
17
  export type { ElementMatchConfigType } from '@/core/function'
18
18
 
19
19
  //导出编辑器操作方法
@@ -24,7 +24,7 @@ const install = (app: App) => {
24
24
  app.component(Editify.name!, Editify)
25
25
  }
26
26
  //版本号
27
- const version = '0.2.12'
27
+ const version = '0.2.13'
28
28
 
29
29
  //导出AlexElement元素
30
30
  export { AlexElement } from 'alex-editor'