vue-editify 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/examples/App.vue +289 -5
  2. package/lib/components/colors/colors.vue.d.ts +9 -0
  3. package/lib/components/colors/props.d.ts +4 -0
  4. package/lib/core/function.d.ts +120 -45
  5. package/lib/core/rule.d.ts +23 -17
  6. package/lib/core/tool.d.ts +1 -13
  7. package/lib/editify/editify.vue.d.ts +10 -1
  8. package/lib/editify/props.d.ts +1 -1
  9. package/lib/editify/toolbar/props.d.ts +1 -1
  10. package/lib/editify/toolbar/toolbar.vue.d.ts +3 -3
  11. package/lib/editify.es.js +13640 -13799
  12. package/lib/editify.umd.js +2 -2
  13. package/lib/feature/align.d.ts +0 -14
  14. package/lib/feature/heading.d.ts +0 -14
  15. package/lib/feature/lineHeight.d.ts +0 -14
  16. package/lib/feature/orderList.d.ts +1 -3
  17. package/lib/feature/task.d.ts +0 -14
  18. package/lib/feature/unorderList.d.ts +1 -3
  19. package/lib/index.d.ts +12 -3
  20. package/package.json +2 -2
  21. package/src/components/button/button.vue +3 -3
  22. package/src/components/checkbox/checkbox.vue +1 -1
  23. package/src/components/colors/colors.vue +4 -4
  24. package/src/components/colors/props.ts +6 -1
  25. package/src/components/insertAttachment/insertAttachment.vue +1 -1
  26. package/src/components/insertImage/insertImage.vue +1 -1
  27. package/src/components/insertLink/insertLink.vue +1 -1
  28. package/src/components/insertVideo/insertVideo.vue +1 -1
  29. package/src/components/layer/layer.vue +9 -3
  30. package/src/components/tooltip/tooltip.vue +1 -1
  31. package/src/components/updateLink/updateLink.vue +1 -1
  32. package/src/core/function.ts +961 -475
  33. package/src/core/rule.ts +85 -367
  34. package/src/core/tool.ts +8 -114
  35. package/src/editify/editify.less +88 -14
  36. package/src/editify/editify.vue +117 -65
  37. package/src/editify/props.ts +1 -1
  38. package/src/editify/toolbar/props.ts +2 -2
  39. package/src/editify/toolbar/toolbar.vue +12 -12
  40. package/src/feature/align.ts +1 -61
  41. package/src/feature/attachment.ts +13 -26
  42. package/src/feature/backColor.ts +1 -0
  43. package/src/feature/foreColor.ts +1 -0
  44. package/src/feature/heading.ts +2 -73
  45. package/src/feature/infoBlock.ts +4 -35
  46. package/src/feature/lineHeight.ts +1 -77
  47. package/src/feature/mathformula.ts +3 -50
  48. package/src/feature/orderList.ts +166 -35
  49. package/src/feature/panel.ts +4 -49
  50. package/src/feature/sub.ts +1 -1
  51. package/src/feature/super.ts +1 -1
  52. package/src/feature/task.ts +1 -55
  53. package/src/feature/unorderList.ts +106 -35
  54. package/src/feature/video.ts +1 -1
  55. package/src/icon/iconfont.css +40 -0
  56. package/src/icon/iconfont.ttf +0 -0
  57. package/src/icon/iconfont.woff +0 -0
  58. package/src/index.ts +14 -8
  59. package/src/locale/en_US.ts +112 -110
  60. package/src/locale/zh_CN.ts +11 -9
@@ -17,6 +17,10 @@ declare const _default: import('vue').DefineComponent<{
17
17
  type: BooleanConstructor;
18
18
  default: boolean;
19
19
  };
20
+ zIndex: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
20
24
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
25
  change: (...args: any[]) => void;
22
26
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -36,11 +40,16 @@ declare const _default: import('vue').DefineComponent<{
36
40
  type: BooleanConstructor;
37
41
  default: boolean;
38
42
  };
43
+ zIndex: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ };
39
47
  }>> & {
40
48
  onChange?: ((...args: any[]) => any) | undefined;
41
49
  }, {
42
50
  tooltip: boolean;
43
51
  color: string;
52
+ zIndex: number;
44
53
  value: string;
45
54
  data: ButtonOptionsItemType[];
46
55
  }, {}>;
@@ -18,5 +18,9 @@ export declare const ColorsProps: {
18
18
  type: BooleanConstructor;
19
19
  default: boolean;
20
20
  };
21
+ zIndex: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
21
25
  };
22
26
  export type ColorsPropsType = ExtractPublicPropTypes<typeof ColorsProps>;
@@ -6,6 +6,31 @@ export type ElementMatchConfigType = {
6
6
  marks?: ObjectType;
7
7
  styles?: ObjectType;
8
8
  };
9
+ /** --------------------------------代码块操作相关函数------------------------------------------------ */
10
+ /**
11
+ * 更新代码块内的光标位置
12
+ * @param editor
13
+ * @param element
14
+ * @param originalTextElements
15
+ * @param newElements
16
+ * @returns
17
+ */
18
+ export declare const updateRangeInPre: (editor: AlexEditor, element: AlexElement, originalTextElements: AlexElement[], newElements: AlexElement[]) => void;
19
+ /** --------------------------------表格操作相关函数--------------------------------------------- */
20
+ /**
21
+ * 自动隐藏被合并的单元格
22
+ * @param editor
23
+ * @param rowElements
24
+ */
25
+ export declare const autoHideMergedTableCells: (editor: AlexEditor, rowElements: AlexElement[]) => void;
26
+ /**
27
+ * 自动补全表格行和列
28
+ * @param editor
29
+ * @param rowElements
30
+ * @param rowNumber
31
+ * @param columnNumber
32
+ */
33
+ export declare const autocompleteTableCells: (editor: AlexEditor, rowElements: AlexElement[], rowNumber: number, columnNumber: number) => void;
9
34
  /**
10
35
  * 清空单元格的内容并隐藏
11
36
  * @param editor
@@ -40,6 +65,7 @@ export declare const getTableSize: (rowElements: AlexElement[]) => {
40
65
  rowNumber: number;
41
66
  columnNumber: number;
42
67
  };
68
+ /** --------------------------------通用的元素判断函数----------------------------------------------- */
43
69
  /**
44
70
  * Open API:判断元素是否符合指定的条件
45
71
  * @param element
@@ -62,6 +88,7 @@ export declare const getMatchElementByElement: (element: AlexElement, config: El
62
88
  * @returns
63
89
  */
64
90
  export declare const getMatchElementByRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, config: ElementMatchConfigType) => AlexElement | null;
91
+ /** --------------------------------列表判断函数---------------------------------------------------------- */
65
92
  /**
66
93
  * Open API:判断元素是否有序或者无序列表,不做空元素判断
67
94
  * @param element
@@ -92,6 +119,7 @@ export declare const hasListInRange: (editor: AlexEditor, dataRangeCaches: AlexE
92
119
  * @returns
93
120
  */
94
121
  export declare const rangeIsInList: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, ordered?: boolean | undefined) => boolean;
122
+ /** --------------------------------任务列表判断函数----------------------------------------------- */
95
123
  /**
96
124
  * Open API:判断元素是否任务列表,不做空元素判断
97
125
  * @param element
@@ -118,6 +146,7 @@ export declare const hasTaskInRange: (editor: AlexEditor, dataRangeCaches: AlexE
118
146
  * @returns
119
147
  */
120
148
  export declare const rangeIsInTask: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
149
+ /** --------------------------------附件判断函数------------------------------------------------- */
121
150
  /**
122
151
  * Open API:判断元素是否附件,不做空元素判断
123
152
  * @param element
@@ -131,6 +160,7 @@ export declare const elementIsAttachment: (element: AlexElement) => boolean;
131
160
  * @returns
132
161
  */
133
162
  export declare const hasAttachmentInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
163
+ /** --------------------------------数学公式判断函数--------------------------------------------- */
134
164
  /**
135
165
  * Open API:判断元素是否数学公式,不做空元素判断
136
166
  * @param element
@@ -150,6 +180,7 @@ export declare const getMathformulaByElement: (element: AlexElement) => AlexElem
150
180
  * @returns
151
181
  */
152
182
  export declare const hasMathformulaInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
183
+ /** --------------------------------面板判断函数--------------------------------------------------- */
153
184
  /**
154
185
  * Open API:判断元素是否面板,不做空元素判断
155
186
  * @param el
@@ -169,6 +200,7 @@ export declare const getPanelByElement: (element: AlexElement) => AlexElement |
169
200
  * @returns
170
201
  */
171
202
  export declare const hasPanelInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
203
+ /** --------------------------------信息块判断函数---------------------------------------------- */
172
204
  /**
173
205
  * Open API:判断元素是否信息块,不做空元素判断
174
206
  * @param el
@@ -195,6 +227,7 @@ export declare const hasInfoBlockInRange: (editor: AlexEditor, dataRangeCaches:
195
227
  * @returns
196
228
  */
197
229
  export declare const rangeIsInInfoBlock: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
230
+ /** --------------------------------代码块判断函数------------------------------------------------ */
198
231
  /**
199
232
  * Open API:选区是否含有代码块,不一定是同一个代码块,只要含有代码块即返回true
200
233
  * @param editor
@@ -202,6 +235,15 @@ export declare const rangeIsInInfoBlock: (editor: AlexEditor, dataRangeCaches: A
202
235
  * @returns
203
236
  */
204
237
  export declare const hasPreInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
238
+ /** --------------------------------表格判断函数------------------------------------------------- */
239
+ /**
240
+ * Open API:选区是否含有表格,不一定是同一个表格,只要含有表格即返回true
241
+ * @param editor
242
+ * @param dataRangeCaches
243
+ * @returns
244
+ */
245
+ export declare const hasTableInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
246
+ /** --------------------------------引用判断函数----------------------------------------------- */
205
247
  /**
206
248
  * Open API:选区是否含有引用,不一定是同一个引用,只要含有引用即返回true
207
249
  * @param editor
@@ -210,19 +252,21 @@ export declare const hasPreInRange: (editor: AlexEditor, dataRangeCaches: AlexEl
210
252
  */
211
253
  export declare const hasQuoteInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
212
254
  /**
213
- * Open API:选区是否含有链接,不一定是同一个链接,只要含有链接即返回true
255
+ * Open API:选区是否全部在引用内,不一定是同一个引用
214
256
  * @param editor
215
257
  * @param dataRangeCaches
216
258
  * @returns
217
259
  */
218
- export declare const hasLinkInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
260
+ export declare const rangeIsInQuote: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
261
+ /** --------------------------------链接判断函数-------------------------------------------------- */
219
262
  /**
220
- * Open API:选区是否含有表格,不一定是同一个表格,只要含有表格即返回true
263
+ * Open API:选区是否含有链接,不一定是同一个链接,只要含有链接即返回true
221
264
  * @param editor
222
265
  * @param dataRangeCaches
223
266
  * @returns
224
267
  */
225
- export declare const hasTableInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
268
+ export declare const hasLinkInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
269
+ /** --------------------------------图片视频判断函数--------------------------------------------- */
226
270
  /**
227
271
  * Open API:选区是否含有图片,不一定是同一个图片,只要含有图片即返回true
228
272
  * @param editor
@@ -237,13 +281,14 @@ export declare const hasImageInRange: (editor: AlexEditor, dataRangeCaches: Alex
237
281
  * @returns
238
282
  */
239
283
  export declare const hasVideoInRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
284
+ /** --------------------文本元素标记和样式相关函数--------------------------------------- */
240
285
  /**
241
- * Open API:选区是否全部在引用内,不一定是同一个引用
286
+ * 获取光标选取内的扁平化元素数组(可能会分割文本元素导致stack变更,同时也会更新选取元素和光标位置)
242
287
  * @param editor
243
288
  * @param dataRangeCaches
244
289
  * @returns
245
290
  */
246
- export declare const rangeIsInQuote: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => boolean;
291
+ export declare const getFlatElementsByRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => AlexElement[];
247
292
  /**
248
293
  * Open API:查询光标所在的文本元素是否具有某个样式
249
294
  * @param editor
@@ -253,6 +298,22 @@ export declare const rangeIsInQuote: (editor: AlexEditor, dataRangeCaches: AlexE
253
298
  * @returns
254
299
  */
255
300
  export declare const queryTextStyle: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, name: string, value?: string | number) => boolean;
301
+ /**
302
+ * Open API:设置文本元素的样式
303
+ * @param editor
304
+ * @param dataRangeCaches
305
+ * @param styles 值为{ 'font-weight':'bold' }这类格式
306
+ * @returns
307
+ */
308
+ export declare const setTextStyle: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, styles: ObjectType) => void;
309
+ /**
310
+ * Open API:移除文本元素的样式
311
+ * @param editor
312
+ * @param dataRangeCaches
313
+ * @param styleNames 样式名称数组,如果不存在则移除全部样式
314
+ * @returns
315
+ */
316
+ export declare const removeTextStyle: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, styleNames?: string[]) => void;
256
317
  /**
257
318
  * Open API:查询光标所在的文本元素是否具有某个标记
258
319
  * @param editor
@@ -263,18 +324,22 @@ export declare const queryTextStyle: (editor: AlexEditor, dataRangeCaches: AlexE
263
324
  */
264
325
  export declare const queryTextMark: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, name: string, value?: string | number) => boolean;
265
326
  /**
266
- * Open API:获取选区内的文字内容
327
+ * Open API:设置文本元素的标记
328
+ * @param editor
267
329
  * @param dataRangeCaches
330
+ * @param marks 值为{ 'class':'a' }这类格式
268
331
  * @returns
269
332
  */
270
- export declare const getRangeText: (dataRangeCaches: AlexElementsRangeType) => string;
333
+ export declare const setTextMark: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, marks: ObjectType) => void;
271
334
  /**
272
- * 获取光标选取内的扁平化元素数组(可能会分割文本元素导致stack变更,同时也会更新选取元素和光标位置)
335
+ * Open API:移除文本元素的标记
273
336
  * @param editor
274
337
  * @param dataRangeCaches
338
+ * @param markNames 标记名称数组,如果不存在则移除全部标记
275
339
  * @returns
276
340
  */
277
- export declare const getFlatElementsByRange: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => AlexElement[];
341
+ export declare const removeTextMark: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, markNames?: string[]) => void;
342
+ /** --------------------------------元素转换函数-------------------------------------------------- */
278
343
  /**
279
344
  * 将某个元素转为段落标签
280
345
  * @param element
@@ -293,15 +358,29 @@ export declare const elementToList: (element: AlexElement, ordered?: boolean | u
293
358
  * @returns
294
359
  */
295
360
  export declare const elementToTask: (element: AlexElement) => void;
361
+ /** --------------------------------封装的功能函数----------------------------------------------- */
362
+ /**
363
+ * Open API:获取选区内的文字内容
364
+ * @param dataRangeCaches
365
+ * @returns
366
+ */
367
+ export declare const getRangeText: (dataRangeCaches: AlexElementsRangeType) => string;
296
368
  /**
297
- * 设置标题
369
+ * Open API:给元素两侧加上空白文本元素
370
+ * @param editor
371
+ * @param element
372
+ */
373
+ export declare const addSpaceTextToBothSides: (editor: AlexEditor, element: AlexElement) => void;
374
+ /** --------------------------------菜单功能函数----------------------------------------------------- */
375
+ /**
376
+ * OpenAPI:设置标题,支持h1-h6和p
298
377
  * @param editor
299
378
  * @param dataRangeCaches
300
379
  * @param editTrans
301
380
  * @param parsedom
302
381
  * @returns
303
382
  */
304
- export declare const setHeading: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, editTrans: (key: string) => any, parsedom: string) => void;
383
+ export declare const setHeading: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, parsedom: string) => void;
305
384
  /**
306
385
  * Open API:根级块元素或者内部块元素增加缩进
307
386
  * @param editor
@@ -347,39 +426,7 @@ export declare const setList: (editor: AlexEditor, dataRangeCaches: AlexElements
347
426
  */
348
427
  export declare const setTask: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => void;
349
428
  /**
350
- * Open API:设置文本元素的样式
351
- * @param editor
352
- * @param dataRangeCaches
353
- * @param styles 值为{ 'font-weight':'bold' }这类格式
354
- * @returns
355
- */
356
- export declare const setTextStyle: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, styles: ObjectType) => void;
357
- /**
358
- * Open API:设置文本元素的标记
359
- * @param editor
360
- * @param dataRangeCaches
361
- * @param marks 值为{ 'class':'a' }这类格式
362
- * @returns
363
- */
364
- export declare const setTextMark: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, marks: ObjectType) => void;
365
- /**
366
- * Open API:移除文本元素的样式
367
- * @param editor
368
- * @param dataRangeCaches
369
- * @param styleNames 样式名称数组,如果不存在则移除全部样式
370
- * @returns
371
- */
372
- export declare const removeTextStyle: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, styleNames?: string[]) => void;
373
- /**
374
- * Open API:移除文本元素的标记
375
- * @param editor
376
- * @param dataRangeCaches
377
- * @param markNames 标记名称数组,如果不存在则移除全部标记
378
- * @returns
379
- */
380
- export declare const removeTextMark: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, markNames?: string[]) => void;
381
- /**
382
- * Open API:设置块元素或者根级块元素的行高
429
+ * Open API:设置内部块元素或者根级块元素的行高
383
430
  * @param editor
384
431
  * @param dataRangeCaches
385
432
  * @param value
@@ -431,3 +478,31 @@ export declare const insertCodeBlock: (editor: AlexEditor, dataRangeCaches: Alex
431
478
  * @returns
432
479
  */
433
480
  export declare const insertSeparator: (editor: AlexEditor) => void;
481
+ /**
482
+ * Open API:插入附件
483
+ * @param editor
484
+ * @param url 附件地址
485
+ * @param name 附件名称
486
+ */
487
+ export declare const insertAttachment: (editor: AlexEditor, url: string, name: string) => void;
488
+ /**
489
+ * Open API:插入数学公式
490
+ * @param editor
491
+ * @param dataRangeCaches
492
+ * @param mathContent 数学公式字符串
493
+ * @param errorCallback 错误处理
494
+ */
495
+ export declare const insertMathformula: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, mathContent: string, errorCallback?: (err: Error) => void) => void;
496
+ /**
497
+ * Open API:插入信息块
498
+ * @param editor
499
+ * @param dataRangeCaches
500
+ */
501
+ export declare const insertInfoBlock: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType) => void;
502
+ /**
503
+ * Open API:插入面板
504
+ * @param editor
505
+ * @param panelTitle 面板标题
506
+ * @param panelContent 面板内容
507
+ */
508
+ export declare const insertPanel: (editor: AlexEditor, panelTitle: string, panelContent: string) => void;
@@ -2,43 +2,49 @@ import { AlexEditor, AlexElement } from 'alex-editor';
2
2
  import { LanguagesItemType } from '../hljs';
3
3
 
4
4
  /**
5
- * 元素格式化时转换ol和li标签
5
+ * 有序列表和无序列表的格式化处理
6
6
  * @param editor
7
7
  * @param element
8
8
  */
9
- export declare const parseList: (editor: AlexEditor, element: AlexElement) => void;
9
+ export declare const listHandle: (editor: AlexEditor, element: AlexElement) => void;
10
10
  /**
11
- * 元素格式化时处理有序列表的序号值
11
+ * 图片格式化处理
12
12
  * @param editor
13
13
  * @param element
14
14
  */
15
- export declare const orderdListHandle: (editor: AlexEditor, element: AlexElement) => void;
15
+ export declare const imageHandle: (_editor: AlexEditor, element: AlexElement) => void;
16
16
  /**
17
- * 元素格式化时处理常规元素(图片、视频、分隔线、行内代码)
17
+ * 视频格式化处理
18
18
  * @param editor
19
19
  * @param element
20
20
  */
21
- export declare const commonElementHandle: (editor: AlexEditor, element: AlexElement) => void;
21
+ export declare const videoHandle: (editor: AlexEditor, element: AlexElement) => void;
22
22
  /**
23
- * 元素格式化时处理表格:th转为td
23
+ * 分隔线格式化处理
24
24
  * @param editor
25
25
  * @param element
26
26
  */
27
- export declare const tableThTdHandle: (_editor: AlexEditor, element: AlexElement) => void;
27
+ export declare const separatorHandle: (editor: AlexEditor, element: AlexElement) => void;
28
28
  /**
29
- * 元素格式化时处理表格:格式化表格
29
+ * 链接格式化处理
30
30
  * @param editor
31
31
  * @param element
32
32
  */
33
- export declare const tableFormatHandle: (editor: AlexEditor, element: AlexElement) => void;
33
+ export declare const linkHandle: (_editor: AlexEditor, element: AlexElement) => void;
34
34
  /**
35
- * 元素格式化时处理表格:处理光标在表格隐藏单元格内的情况
35
+ * 行内代码格式化处理
36
+ * @param _editor
37
+ * @param element
38
+ */
39
+ export declare const codeHandle: (_editor: AlexEditor, element: AlexElement) => void;
40
+ /**
41
+ * 表格格式化处理
36
42
  * @param editor
37
43
  * @param element
38
44
  */
39
- export declare const tableRangeMergedHandle: (editor: AlexEditor, element: AlexElement) => void;
45
+ export declare const tableHandle: (editor: AlexEditor, element: AlexElement) => void;
40
46
  /**
41
- * 元素格式化时处理pre,将pre的内容根据语言进行样式处理
47
+ * 代码块格式化处理
42
48
  * @param editor
43
49
  * @param element
44
50
  * @param highlight
@@ -46,27 +52,27 @@ export declare const tableRangeMergedHandle: (editor: AlexEditor, element: AlexE
46
52
  */
47
53
  export declare const preHandle: (editor: AlexEditor, element: AlexElement, highlight: boolean, languages: (string | LanguagesItemType)[]) => void;
48
54
  /**
49
- * 元素格式化时处理附件元素
55
+ * 附件格式化处理
50
56
  * @param editor
51
57
  * @param element
52
58
  * @param $editTrans
53
59
  */
54
60
  export declare const attachmentHandle: (editor: AlexEditor, element: AlexElement, $editTrans: (key: string) => any) => void;
55
61
  /**
56
- * 元素格式化时处理数学公式元素
62
+ * 数学公式格式化处理
57
63
  * @param editor
58
64
  * @param element
59
65
  */
60
66
  export declare const mathformulaHandle: (editor: AlexEditor, element: AlexElement) => void;
61
67
  /**
62
- * 元素格式化时处理信息块元素
68
+ * 信息块格式化处理
63
69
  * @param editor
64
70
  * @param element
65
71
  * @param color
66
72
  */
67
73
  export declare const infoBlockHandle: (_editor: AlexEditor, element: AlexElement, color: string) => void;
68
74
  /**
69
- * 元素格式化时处理一些特殊的内部块元素,转为根级块元素
75
+ * 一些特殊的内部块元素,转为根级块元素
70
76
  * @param editor
71
77
  * @param element
72
78
  */
@@ -87,11 +87,6 @@ export type CodeBlockToolbarType = {
87
87
  languages?: MenuSelectButtonType;
88
88
  };
89
89
  export type TextToolbarType = {
90
- heading?: MenuDisplayButtonType;
91
- align?: MenuSelectButtonType;
92
- orderList?: MenuButtonType;
93
- unorderList?: MenuButtonType;
94
- task?: MenuButtonType;
95
90
  bold?: MenuButtonType;
96
91
  italic?: MenuButtonType;
97
92
  strikethrough?: MenuButtonType;
@@ -101,7 +96,6 @@ export type TextToolbarType = {
101
96
  sub?: MenuButtonType;
102
97
  fontSize?: MenuDisplayButtonType;
103
98
  fontFamily?: MenuDisplayButtonType;
104
- lineHeight?: MenuDisplayButtonType;
105
99
  foreColor?: MenuSelectButtonType;
106
100
  backColor?: MenuSelectButtonType;
107
101
  formatClear?: MenuButtonType;
@@ -213,12 +207,6 @@ export declare const mergeObject: (o1: ObjectType, o2: ObjectType) => ObjectType
213
207
  * @returns
214
208
  */
215
209
  export declare const queryHasValue: (obj: ObjectType, name: string, value?: string | number) => boolean;
216
- /**
217
- * 深拷贝函数
218
- * @param data
219
- * @returns
220
- */
221
- export declare const cloneData: (data: any) => any;
222
210
  /**
223
211
  * 获取菜单按钮列表数据配置
224
212
  * @param editTrans
@@ -231,7 +219,7 @@ export declare const getButtonOptionsConfig: (editTrans: (key: string) => any) =
231
219
  * @param editLocale
232
220
  * @returns
233
221
  */
234
- export declare const getToolbarConfig: (editTrans: (key: string) => any, editLocale: LocaleType) => ToolbarConfigType;
222
+ export declare const getToolbarConfig: (editTrans: (key: string) => any) => ToolbarConfigType;
235
223
  /**
236
224
  * 菜单栏全量配置
237
225
  * @param editTrans
@@ -437,7 +437,9 @@ declare const _default: import('vue').DefineComponent<{
437
437
  };
438
438
  } | null;
439
439
  __guid: number;
440
- __events: import('alex-editor').ObjectType;
440
+ __events: {
441
+ [key: string]: ((...args: any) => void)[];
442
+ };
441
443
  __oldStack: {
442
444
  key: number;
443
445
  type: import('alex-editor').AlexElementType;
@@ -484,6 +486,12 @@ declare const _default: import('vue').DefineComponent<{
484
486
  __isInputChinese: boolean;
485
487
  __innerSelectionChange: boolean;
486
488
  __chineseInputTimer: any;
489
+ __domObserver: {
490
+ disconnect: () => void;
491
+ observe: (target: Node, options?: MutationObserverInit) => void;
492
+ takeRecords: () => MutationRecord[];
493
+ } | null;
494
+ __illegalDoms: Node[];
487
495
  initRange: () => void;
488
496
  delete: () => void;
489
497
  insertText: (data: string) => void;
@@ -509,6 +517,7 @@ declare const _default: import('vue').DefineComponent<{
509
517
  setEnabled: () => void;
510
518
  emit: (eventName: string, ...value: any) => boolean;
511
519
  on: (eventName: string, eventHandle: (...args: any) => void) => void;
520
+ off: (eventName: string, eventHandle?: (...args: any) => void) => void;
512
521
  destroy: () => void;
513
522
  } | null>;
514
523
  isSourceView: import('vue').Ref<boolean>;
@@ -10,7 +10,7 @@ export type EditifyResizeParamsType = {
10
10
  export type EditifyToolbarOptionsType = {
11
11
  show: boolean;
12
12
  node: string | null;
13
- type: 'text' | 'link' | 'image' | 'video' | 'table' | 'codeBlock';
13
+ type: 'text' | 'link' | 'image' | 'video' | 'table' | 'codeBlock' | 'orderList' | 'unorderList';
14
14
  };
15
15
  export declare const EditifyProps: {
16
16
  locale: {
@@ -15,7 +15,7 @@ export declare const ToolbarProps: {
15
15
  default: null;
16
16
  };
17
17
  type: {
18
- type: PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video">;
18
+ type: PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video" | "orderList" | "unorderList">;
19
19
  default: string;
20
20
  validator(value: any): boolean;
21
21
  };
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  default: null;
15
15
  };
16
16
  type: {
17
- type: import('vue').PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video">;
17
+ type: import('vue').PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video" | "orderList" | "unorderList">;
18
18
  default: string;
19
19
  validator(value: any): boolean;
20
20
  };
@@ -326,7 +326,7 @@ declare const _default: import('vue').DefineComponent<{
326
326
  default: null;
327
327
  };
328
328
  type: {
329
- type: import('vue').PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video">;
329
+ type: import('vue').PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video" | "orderList" | "unorderList">;
330
330
  default: string;
331
331
  validator(value: any): boolean;
332
332
  };
@@ -345,7 +345,7 @@ declare const _default: import('vue').DefineComponent<{
345
345
  }>> & {
346
346
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
347
347
  }, {
348
- type: "text" | "link" | "table" | "video" | "image" | "codeBlock";
348
+ type: "link" | "text" | "orderList" | "unorderList" | "table" | "video" | "image" | "codeBlock";
349
349
  color: string;
350
350
  zIndex: number;
351
351
  modelValue: boolean;