vue-editify 0.2.17 → 0.2.19
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.
- package/examples/App.vue +4 -12
 - package/lib/components/colors/colors.vue.d.ts +9 -0
 - package/lib/components/colors/props.d.ts +4 -0
 - package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
 - package/lib/core/function.d.ts +112 -64
 - package/lib/core/rule.d.ts +23 -17
 - package/lib/core/shortcut.d.ts +36 -0
 - package/lib/core/tool.d.ts +12 -16
 - package/lib/editify/editify.vue.d.ts +162 -15
 - package/lib/editify/props.d.ts +1 -5
 - package/lib/editify/toolbar/props.d.ts +1 -1
 - package/lib/editify/toolbar/toolbar.vue.d.ts +3 -3
 - package/lib/editify.es.js +13660 -12954
 - package/lib/editify.umd.js +2 -2
 - package/lib/feature/align.d.ts +0 -14
 - package/lib/feature/heading.d.ts +0 -14
 - package/lib/feature/lineHeight.d.ts +0 -14
 - package/lib/feature/orderList.d.ts +1 -3
 - package/lib/feature/task.d.ts +0 -14
 - package/lib/feature/unorderList.d.ts +1 -3
 - package/lib/index.d.ts +164 -17
 - package/package.json +2 -2
 - package/src/components/button/button.vue +3 -3
 - package/src/components/checkbox/checkbox.vue +1 -1
 - package/src/components/colors/colors.vue +4 -4
 - package/src/components/colors/props.ts +6 -1
 - package/src/components/insertAttachment/insertAttachment.vue +1 -1
 - package/src/components/insertImage/insertImage.vue +1 -1
 - package/src/components/insertLink/insertLink.vue +1 -1
 - package/src/components/insertVideo/insertVideo.vue +1 -1
 - package/src/components/layer/layer.vue +9 -3
 - package/src/components/tooltip/tooltip.vue +1 -1
 - package/src/components/updateLink/updateLink.vue +1 -1
 - package/src/core/function.ts +873 -491
 - package/src/core/rule.ts +86 -368
 - package/src/core/shortcut.ts +386 -0
 - package/src/core/tool.ts +111 -159
 - package/src/css/var.less +0 -10
 - package/src/editify/editify.less +85 -39
 - package/src/editify/editify.vue +204 -88
 - package/src/editify/menu/menu.vue +2 -3
 - package/src/editify/props.ts +1 -6
 - package/src/editify/toolbar/props.ts +2 -2
 - package/src/editify/toolbar/toolbar.vue +12 -12
 - package/src/feature/align.ts +2 -62
 - package/src/feature/attachment.ts +14 -27
 - package/src/feature/backColor.ts +2 -1
 - package/src/feature/bold.ts +1 -1
 - package/src/feature/code.ts +1 -1
 - package/src/feature/codeBlock.ts +3 -3
 - package/src/feature/fontFamily.ts +1 -1
 - package/src/feature/fontSize.ts +1 -1
 - package/src/feature/foreColor.ts +2 -1
 - package/src/feature/formatClear.ts +1 -1
 - package/src/feature/fullScreen.ts +1 -1
 - package/src/feature/heading.ts +5 -76
 - package/src/feature/image.ts +1 -1
 - package/src/feature/indent.ts +1 -1
 - package/src/feature/infoBlock.ts +6 -37
 - package/src/feature/italic.ts +1 -1
 - package/src/feature/lineHeight.ts +2 -78
 - package/src/feature/link.ts +1 -1
 - package/src/feature/mathformula.ts +4 -51
 - package/src/feature/orderList.ts +168 -37
 - package/src/feature/quote.ts +3 -3
 - package/src/feature/redo.ts +1 -1
 - package/src/feature/separator.ts +1 -1
 - package/src/feature/sourceView.ts +1 -1
 - package/src/feature/strikethrough.ts +1 -1
 - package/src/feature/sub.ts +1 -1
 - package/src/feature/super.ts +1 -1
 - package/src/feature/table.ts +3 -3
 - package/src/feature/task.ts +4 -58
 - package/src/feature/underline.ts +1 -1
 - package/src/feature/undo.ts +1 -1
 - package/src/feature/unorderList.ts +108 -37
 - package/src/feature/video.ts +1 -1
 - package/src/icon/iconfont.css +39 -3
 - package/src/icon/iconfont.ttf +0 -0
 - package/src/icon/iconfont.woff +0 -0
 - package/src/index.ts +13 -11
 - package/src/locale/en_US.ts +109 -110
 - package/src/locale/zh_CN.ts +11 -12
 - package/lib/feature/panel.d.ts +0 -18
 - package/src/feature/panel.ts +0 -107
 
    
        package/src/core/tool.ts
    CHANGED
    
    | 
         @@ -1,10 +1,12 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { App, Component, VNode } from 'vue'
         
     | 
| 
      
 1 
     | 
    
         
            +
            import { App, Component, Ref, VNode } from 'vue'
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { AlexEditor, AlexElementsRangeType } from 'alex-editor'
         
     | 
| 
       2 
3 
     | 
    
         
             
            import { common as DapCommon, string as DapString, color as DapColor, element as DapElement } from 'dap-util'
         
     | 
| 
       3 
4 
     | 
    
         
             
            import { languages } from '@/hljs'
         
     | 
| 
       4 
5 
     | 
    
         
             
            import { LocaleType } from '@/locale'
         
     | 
| 
       5 
6 
     | 
    
         
             
            import { Button, ButtonOptionsItemType, ButtonTypeType } from '@/components/button'
         
     | 
| 
       6 
7 
     | 
    
         
             
            import { InsertImageUploadErrorType } from '@/components/insertImage'
         
     | 
| 
       7 
8 
     | 
    
         
             
            import { InsertAttachmentUploadErrorType } from '@/components/insertAttachment'
         
     | 
| 
      
 9 
     | 
    
         
            +
            import { config as shortcutConfig } from './shortcut'
         
     | 
| 
       8 
10 
     | 
    
         | 
| 
       9 
11 
     | 
    
         
             
            export type ObjectType = {
         
     | 
| 
       10 
12 
     | 
    
         
             
            	[key: string]: any
         
     | 
| 
         @@ -21,11 +23,18 @@ export type ButtonOptionsConfigType = { 
     | 
|
| 
       21 
23 
     | 
    
         
             
            	backColor?: (string | number | ButtonOptionsItemType)[]
         
     | 
| 
       22 
24 
     | 
    
         
             
            }
         
     | 
| 
       23 
25 
     | 
    
         | 
| 
      
 26 
     | 
    
         
            +
            export type ShortcutType = {
         
     | 
| 
      
 27 
     | 
    
         
            +
            	title: string
         
     | 
| 
      
 28 
     | 
    
         
            +
            	define: ((event: KeyboardEvent) => boolean | { [code: string]: boolean }) | null
         
     | 
| 
      
 29 
     | 
    
         
            +
            	operation?: (editor: AlexEditor, dataRangeCaches: AlexElementsRangeType, isSourceView: Ref<boolean>, isFullScreen: Ref<boolean>, code?: string) => void
         
     | 
| 
      
 30 
     | 
    
         
            +
            }
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       24 
32 
     | 
    
         
             
            export interface MenuButtonType {
         
     | 
| 
       25 
33 
     | 
    
         
             
            	show?: boolean
         
     | 
| 
       26 
34 
     | 
    
         
             
            	leftBorder?: boolean
         
     | 
| 
       27 
35 
     | 
    
         
             
            	rightBorder?: boolean
         
     | 
| 
       28 
36 
     | 
    
         
             
            	disabled?: boolean
         
     | 
| 
      
 37 
     | 
    
         
            +
            	shortcut?: ShortcutType
         
     | 
| 
       29 
38 
     | 
    
         
             
            }
         
     | 
| 
       30 
39 
     | 
    
         | 
| 
       31 
40 
     | 
    
         
             
            export interface MenuSelectButtonType extends MenuButtonType {
         
     | 
| 
         @@ -88,6 +97,7 @@ export type MenuCustomButtonType = { 
     | 
|
| 
       88 
97 
     | 
    
         
             
            	options?: ButtonOptionsItemType[]
         
     | 
| 
       89 
98 
     | 
    
         
             
            	value?: string | number
         
     | 
| 
       90 
99 
     | 
    
         
             
            	hideScroll?: boolean
         
     | 
| 
      
 100 
     | 
    
         
            +
            	shortcut?: ShortcutType
         
     | 
| 
       91 
101 
     | 
    
         
             
            	onLayerShow?: (name: string, btnInstance: InstanceType<typeof Button>) => void
         
     | 
| 
       92 
102 
     | 
    
         
             
            	onLayerShown?: (name: string, btnInstance: InstanceType<typeof Button>) => void
         
     | 
| 
       93 
103 
     | 
    
         
             
            	onLayerHidden?: (name: string, btnInstance: InstanceType<typeof Button>) => void
         
     | 
| 
         @@ -102,11 +112,6 @@ export type CodeBlockToolbarType = { 
     | 
|
| 
       102 
112 
     | 
    
         
             
            }
         
     | 
| 
       103 
113 
     | 
    
         | 
| 
       104 
114 
     | 
    
         
             
            export type TextToolbarType = {
         
     | 
| 
       105 
     | 
    
         
            -
            	heading?: MenuDisplayButtonType
         
     | 
| 
       106 
     | 
    
         
            -
            	align?: MenuSelectButtonType
         
     | 
| 
       107 
     | 
    
         
            -
            	orderList?: MenuButtonType
         
     | 
| 
       108 
     | 
    
         
            -
            	unorderList?: MenuButtonType
         
     | 
| 
       109 
     | 
    
         
            -
            	task?: MenuButtonType
         
     | 
| 
       110 
115 
     | 
    
         
             
            	bold?: MenuButtonType
         
     | 
| 
       111 
116 
     | 
    
         
             
            	italic?: MenuButtonType
         
     | 
| 
       112 
117 
     | 
    
         
             
            	strikethrough?: MenuButtonType
         
     | 
| 
         @@ -116,7 +121,6 @@ export type TextToolbarType = { 
     | 
|
| 
       116 
121 
     | 
    
         
             
            	sub?: MenuButtonType
         
     | 
| 
       117 
122 
     | 
    
         
             
            	fontSize?: MenuDisplayButtonType
         
     | 
| 
       118 
123 
     | 
    
         
             
            	fontFamily?: MenuDisplayButtonType
         
     | 
| 
       119 
     | 
    
         
            -
            	lineHeight?: MenuDisplayButtonType
         
     | 
| 
       120 
124 
     | 
    
         
             
            	foreColor?: MenuSelectButtonType
         
     | 
| 
       121 
125 
     | 
    
         
             
            	backColor?: MenuSelectButtonType
         
     | 
| 
       122 
126 
     | 
    
         
             
            	formatClear?: MenuButtonType
         
     | 
| 
         @@ -163,7 +167,6 @@ export type MenuSequenceType = { 
     | 
|
| 
       163 
167 
     | 
    
         
             
            	fullScreen?: number
         
     | 
| 
       164 
168 
     | 
    
         
             
            	attachment?: number
         
     | 
| 
       165 
169 
     | 
    
         
             
            	mathformula?: number
         
     | 
| 
       166 
     | 
    
         
            -
            	panel?: number
         
     | 
| 
       167 
170 
     | 
    
         
             
            	infoBlock?: number
         
     | 
| 
       168 
171 
     | 
    
         
             
            }
         
     | 
| 
       169 
172 
     | 
    
         | 
| 
         @@ -211,7 +214,6 @@ export type MenuConfigType = { 
     | 
|
| 
       211 
214 
     | 
    
         
             
            	fullScreen?: MenuButtonType
         
     | 
| 
       212 
215 
     | 
    
         
             
            	attachment?: MenuAttachmentButtonType
         
     | 
| 
       213 
216 
     | 
    
         
             
            	mathformula?: MenuMathformulaButtonType
         
     | 
| 
       214 
     | 
    
         
            -
            	panel?: MenuButtonType
         
     | 
| 
       215 
217 
     | 
    
         
             
            	infoBlock?: MenuButtonType
         
     | 
| 
       216 
218 
     | 
    
         
             
            	extends?: MenuExtendType
         
     | 
| 
       217 
219 
     | 
    
         
             
            }
         
     | 
| 
         @@ -288,18 +290,6 @@ export const queryHasValue = (obj: ObjectType, name: string, value?: string | nu 
     | 
|
| 
       288 
290 
     | 
    
         
             
            	return ownValue == value
         
     | 
| 
       289 
291 
     | 
    
         
             
            }
         
     | 
| 
       290 
292 
     | 
    
         | 
| 
       291 
     | 
    
         
            -
            /**
         
     | 
| 
       292 
     | 
    
         
            -
             * 深拷贝函数
         
     | 
| 
       293 
     | 
    
         
            -
             * @param data
         
     | 
| 
       294 
     | 
    
         
            -
             * @returns
         
     | 
| 
       295 
     | 
    
         
            -
             */
         
     | 
| 
       296 
     | 
    
         
            -
            export const cloneData = (data: any) => {
         
     | 
| 
       297 
     | 
    
         
            -
            	if (DapCommon.isObject(data) || Array.isArray(data)) {
         
     | 
| 
       298 
     | 
    
         
            -
            		return JSON.parse(JSON.stringify(data))
         
     | 
| 
       299 
     | 
    
         
            -
            	}
         
     | 
| 
       300 
     | 
    
         
            -
            	return data
         
     | 
| 
       301 
     | 
    
         
            -
            }
         
     | 
| 
       302 
     | 
    
         
            -
             
     | 
| 
       303 
293 
     | 
    
         
             
            /**
         
     | 
| 
       304 
294 
     | 
    
         
             
             * 获取菜单按钮列表数据配置
         
     | 
| 
       305 
295 
     | 
    
         
             
             * @param editTrans
         
     | 
| 
         @@ -506,7 +496,7 @@ export const getButtonOptionsConfig = (editTrans: (key: string) => any): ButtonO 
     | 
|
| 
       506 
496 
     | 
    
         
             
             * @param editLocale
         
     | 
| 
       507 
497 
     | 
    
         
             
             * @returns
         
     | 
| 
       508 
498 
     | 
    
         
             
             */
         
     | 
| 
       509 
     | 
    
         
            -
            export const getToolbarConfig = (editTrans: (key: string) => any 
     | 
| 
      
 499 
     | 
    
         
            +
            export const getToolbarConfig = (editTrans: (key: string) => any): ToolbarConfigType => {
         
     | 
| 
       510 
500 
     | 
    
         
             
            	return {
         
     | 
| 
       511 
501 
     | 
    
         
             
            		//是否使用工具条
         
     | 
| 
       512 
502 
     | 
    
         
             
            		use: true,
         
     | 
| 
         @@ -542,75 +532,6 @@ export const getToolbarConfig = (editTrans: (key: string) => any, editLocale: Lo 
     | 
|
| 
       542 
532 
     | 
    
         
             
            		},
         
     | 
| 
       543 
533 
     | 
    
         
             
            		//文本工具条配置
         
     | 
| 
       544 
534 
     | 
    
         
             
            		text: {
         
     | 
| 
       545 
     | 
    
         
            -
            			//标题
         
     | 
| 
       546 
     | 
    
         
            -
            			heading: {
         
     | 
| 
       547 
     | 
    
         
            -
            				//是否显示此工具
         
     | 
| 
       548 
     | 
    
         
            -
            				show: false,
         
     | 
| 
       549 
     | 
    
         
            -
            				//是否禁用此工具
         
     | 
| 
       550 
     | 
    
         
            -
            				disabled: false,
         
     | 
| 
       551 
     | 
    
         
            -
            				//列表配置
         
     | 
| 
       552 
     | 
    
         
            -
            				options: getButtonOptionsConfig(editTrans).heading,
         
     | 
| 
       553 
     | 
    
         
            -
            				//按钮默认显示的值
         
     | 
| 
       554 
     | 
    
         
            -
            				defaultValue: 'p',
         
     | 
| 
       555 
     | 
    
         
            -
            				//浮层宽度
         
     | 
| 
       556 
     | 
    
         
            -
            				width: editLocale == 'zh_CN' ? 130 : 150,
         
     | 
| 
       557 
     | 
    
         
            -
            				//浮层最大高度
         
     | 
| 
       558 
     | 
    
         
            -
            				maxHeight: '',
         
     | 
| 
       559 
     | 
    
         
            -
            				//左侧边框是否显示
         
     | 
| 
       560 
     | 
    
         
            -
            				leftBorder: false,
         
     | 
| 
       561 
     | 
    
         
            -
            				//右侧边框是否显示
         
     | 
| 
       562 
     | 
    
         
            -
            				rightBorder: false
         
     | 
| 
       563 
     | 
    
         
            -
            			},
         
     | 
| 
       564 
     | 
    
         
            -
            			//对齐方式
         
     | 
| 
       565 
     | 
    
         
            -
            			align: {
         
     | 
| 
       566 
     | 
    
         
            -
            				//是否显示此工具
         
     | 
| 
       567 
     | 
    
         
            -
            				show: false,
         
     | 
| 
       568 
     | 
    
         
            -
            				//是否禁用此工具
         
     | 
| 
       569 
     | 
    
         
            -
            				disabled: false,
         
     | 
| 
       570 
     | 
    
         
            -
            				//列表配置
         
     | 
| 
       571 
     | 
    
         
            -
            				options: getButtonOptionsConfig(editTrans).align,
         
     | 
| 
       572 
     | 
    
         
            -
            				//浮层宽度
         
     | 
| 
       573 
     | 
    
         
            -
            				width: editLocale == 'zh_CN' ? 110 : 130,
         
     | 
| 
       574 
     | 
    
         
            -
            				//浮层最大高度
         
     | 
| 
       575 
     | 
    
         
            -
            				maxHeight: '',
         
     | 
| 
       576 
     | 
    
         
            -
            				//左侧边框是否显示
         
     | 
| 
       577 
     | 
    
         
            -
            				leftBorder: false,
         
     | 
| 
       578 
     | 
    
         
            -
            				//右侧边框是否显示
         
     | 
| 
       579 
     | 
    
         
            -
            				rightBorder: false
         
     | 
| 
       580 
     | 
    
         
            -
            			},
         
     | 
| 
       581 
     | 
    
         
            -
            			//有序列表
         
     | 
| 
       582 
     | 
    
         
            -
            			orderList: {
         
     | 
| 
       583 
     | 
    
         
            -
            				//是否显示此工具
         
     | 
| 
       584 
     | 
    
         
            -
            				show: false,
         
     | 
| 
       585 
     | 
    
         
            -
            				//是否禁用此工具
         
     | 
| 
       586 
     | 
    
         
            -
            				disabled: false,
         
     | 
| 
       587 
     | 
    
         
            -
            				//左侧边框是否显示
         
     | 
| 
       588 
     | 
    
         
            -
            				leftBorder: false,
         
     | 
| 
       589 
     | 
    
         
            -
            				//右侧边框是否显示
         
     | 
| 
       590 
     | 
    
         
            -
            				rightBorder: false
         
     | 
| 
       591 
     | 
    
         
            -
            			},
         
     | 
| 
       592 
     | 
    
         
            -
            			//无序列表
         
     | 
| 
       593 
     | 
    
         
            -
            			unorderList: {
         
     | 
| 
       594 
     | 
    
         
            -
            				//是否显示此工具
         
     | 
| 
       595 
     | 
    
         
            -
            				show: false,
         
     | 
| 
       596 
     | 
    
         
            -
            				//是否禁用此工具
         
     | 
| 
       597 
     | 
    
         
            -
            				disabled: false,
         
     | 
| 
       598 
     | 
    
         
            -
            				//左侧边框是否显示
         
     | 
| 
       599 
     | 
    
         
            -
            				leftBorder: false,
         
     | 
| 
       600 
     | 
    
         
            -
            				//右侧边框是否显示
         
     | 
| 
       601 
     | 
    
         
            -
            				rightBorder: false
         
     | 
| 
       602 
     | 
    
         
            -
            			},
         
     | 
| 
       603 
     | 
    
         
            -
            			//任务列表
         
     | 
| 
       604 
     | 
    
         
            -
            			task: {
         
     | 
| 
       605 
     | 
    
         
            -
            				//是否显示此工具
         
     | 
| 
       606 
     | 
    
         
            -
            				show: false,
         
     | 
| 
       607 
     | 
    
         
            -
            				//是否禁用此工具
         
     | 
| 
       608 
     | 
    
         
            -
            				disabled: false,
         
     | 
| 
       609 
     | 
    
         
            -
            				//左侧边框是否显示
         
     | 
| 
       610 
     | 
    
         
            -
            				leftBorder: false,
         
     | 
| 
       611 
     | 
    
         
            -
            				//右侧边框是否显示
         
     | 
| 
       612 
     | 
    
         
            -
            				rightBorder: false
         
     | 
| 
       613 
     | 
    
         
            -
            			},
         
     | 
| 
       614 
535 
     | 
    
         
             
            			//粗体
         
     | 
| 
       615 
536 
     | 
    
         
             
            			bold: {
         
     | 
| 
       616 
537 
     | 
    
         
             
            				//是否显示此工具
         
     | 
| 
         @@ -726,25 +647,6 @@ export const getToolbarConfig = (editTrans: (key: string) => any, editLocale: Lo 
     | 
|
| 
       726 
647 
     | 
    
         
             
            				//右侧边框是否显示
         
     | 
| 
       727 
648 
     | 
    
         
             
            				rightBorder: false
         
     | 
| 
       728 
649 
     | 
    
         
             
            			},
         
     | 
| 
       729 
     | 
    
         
            -
            			//行高
         
     | 
| 
       730 
     | 
    
         
            -
            			lineHeight: {
         
     | 
| 
       731 
     | 
    
         
            -
            				//是否显示此工具
         
     | 
| 
       732 
     | 
    
         
            -
            				show: false,
         
     | 
| 
       733 
     | 
    
         
            -
            				//是否禁用此工具
         
     | 
| 
       734 
     | 
    
         
            -
            				disabled: false,
         
     | 
| 
       735 
     | 
    
         
            -
            				//列表配置
         
     | 
| 
       736 
     | 
    
         
            -
            				options: getButtonOptionsConfig(editTrans).lineHeight,
         
     | 
| 
       737 
     | 
    
         
            -
            				//按钮默认显示的值
         
     | 
| 
       738 
     | 
    
         
            -
            				defaultValue: '',
         
     | 
| 
       739 
     | 
    
         
            -
            				//浮层宽度
         
     | 
| 
       740 
     | 
    
         
            -
            				width: 90,
         
     | 
| 
       741 
     | 
    
         
            -
            				//浮层最大高度
         
     | 
| 
       742 
     | 
    
         
            -
            				maxHeight: '',
         
     | 
| 
       743 
     | 
    
         
            -
            				//左侧边框是否显示
         
     | 
| 
       744 
     | 
    
         
            -
            				leftBorder: false,
         
     | 
| 
       745 
     | 
    
         
            -
            				//右侧边框是否显示
         
     | 
| 
       746 
     | 
    
         
            -
            				rightBorder: false
         
     | 
| 
       747 
     | 
    
         
            -
            			},
         
     | 
| 
       748 
650 
     | 
    
         
             
            			//前景色
         
     | 
| 
       749 
651 
     | 
    
         
             
            			foreColor: {
         
     | 
| 
       750 
652 
     | 
    
         
             
            				//是否显示此工具
         
     | 
| 
         @@ -754,7 +656,7 @@ export const getToolbarConfig = (editTrans: (key: string) => any, editLocale: Lo 
     | 
|
| 
       754 
656 
     | 
    
         
             
            				//列表配置
         
     | 
| 
       755 
657 
     | 
    
         
             
            				options: getButtonOptionsConfig(editTrans).foreColor,
         
     | 
| 
       756 
658 
     | 
    
         
             
            				//左侧边框是否显示
         
     | 
| 
       757 
     | 
    
         
            -
            				leftBorder:  
     | 
| 
      
 659 
     | 
    
         
            +
            				leftBorder: true,
         
     | 
| 
       758 
660 
     | 
    
         
             
            				//右侧边框是否显示
         
     | 
| 
       759 
661 
     | 
    
         
             
            				rightBorder: false
         
     | 
| 
       760 
662 
     | 
    
         
             
            			},
         
     | 
| 
         @@ -832,12 +734,11 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       832 
734 
     | 
    
         
             
            			video: 25,
         
     | 
| 
       833 
735 
     | 
    
         
             
            			table: 26,
         
     | 
| 
       834 
736 
     | 
    
         
             
            			codeBlock: 27,
         
     | 
| 
       835 
     | 
    
         
            -
            			 
     | 
| 
       836 
     | 
    
         
            -
            			 
     | 
| 
       837 
     | 
    
         
            -
            			 
     | 
| 
       838 
     | 
    
         
            -
            			 
     | 
| 
       839 
     | 
    
         
            -
            			 
     | 
| 
       840 
     | 
    
         
            -
            			infoBlock: 33
         
     | 
| 
      
 737 
     | 
    
         
            +
            			attachment: 28,
         
     | 
| 
      
 738 
     | 
    
         
            +
            			mathformula: 29,
         
     | 
| 
      
 739 
     | 
    
         
            +
            			infoBlock: 30,
         
     | 
| 
      
 740 
     | 
    
         
            +
            			sourceView: 31,
         
     | 
| 
      
 741 
     | 
    
         
            +
            			fullScreen: 32
         
     | 
| 
       841 
742 
     | 
    
         
             
            		},
         
     | 
| 
       842 
743 
     | 
    
         
             
            		//撤销按钮配置
         
     | 
| 
       843 
744 
     | 
    
         
             
            		undo: {
         
     | 
| 
         @@ -878,7 +779,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       878 
779 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       879 
780 
     | 
    
         
             
            			leftBorder: true,
         
     | 
| 
       880 
781 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       881 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 782 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 783 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 784 
     | 
    
         
            +
            			shortcut: shortcutConfig.heading
         
     | 
| 
       882 
785 
     | 
    
         
             
            		},
         
     | 
| 
       883 
786 
     | 
    
         
             
            		//缩进
         
     | 
| 
       884 
787 
     | 
    
         
             
            		indent: {
         
     | 
| 
         @@ -895,7 +798,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       895 
798 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       896 
799 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       897 
800 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       898 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 801 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 802 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 803 
     | 
    
         
            +
            			shortcut: shortcutConfig.indent
         
     | 
| 
       899 
804 
     | 
    
         
             
            		},
         
     | 
| 
       900 
805 
     | 
    
         
             
            		//引用
         
     | 
| 
       901 
806 
     | 
    
         
             
            		quote: {
         
     | 
| 
         @@ -906,7 +811,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       906 
811 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       907 
812 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       908 
813 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       909 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 814 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 815 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 816 
     | 
    
         
            +
            			shortcut: shortcutConfig.quote
         
     | 
| 
       910 
817 
     | 
    
         
             
            		},
         
     | 
| 
       911 
818 
     | 
    
         
             
            		//分隔线
         
     | 
| 
       912 
819 
     | 
    
         
             
            		separator: {
         
     | 
| 
         @@ -917,7 +824,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       917 
824 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       918 
825 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       919 
826 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       920 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 827 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 828 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 829 
     | 
    
         
            +
            			shortcut: shortcutConfig.separator
         
     | 
| 
       921 
830 
     | 
    
         
             
            		},
         
     | 
| 
       922 
831 
     | 
    
         
             
            		//对齐方式
         
     | 
| 
       923 
832 
     | 
    
         
             
            		align: {
         
     | 
| 
         @@ -934,7 +843,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       934 
843 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       935 
844 
     | 
    
         
             
            			leftBorder: true,
         
     | 
| 
       936 
845 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       937 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 846 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 847 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 848 
     | 
    
         
            +
            			shortcut: shortcutConfig.align
         
     | 
| 
       938 
849 
     | 
    
         
             
            		},
         
     | 
| 
       939 
850 
     | 
    
         
             
            		//有序列表
         
     | 
| 
       940 
851 
     | 
    
         
             
            		orderList: {
         
     | 
| 
         @@ -945,7 +856,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       945 
856 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       946 
857 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       947 
858 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       948 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 859 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 860 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 861 
     | 
    
         
            +
            			shortcut: shortcutConfig.orderList
         
     | 
| 
       949 
862 
     | 
    
         
             
            		},
         
     | 
| 
       950 
863 
     | 
    
         
             
            		//无序列表
         
     | 
| 
       951 
864 
     | 
    
         
             
            		unorderList: {
         
     | 
| 
         @@ -956,7 +869,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       956 
869 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       957 
870 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       958 
871 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       959 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 872 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 873 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 874 
     | 
    
         
            +
            			shortcut: shortcutConfig.unorderList
         
     | 
| 
       960 
875 
     | 
    
         
             
            		},
         
     | 
| 
       961 
876 
     | 
    
         
             
            		//任务列表
         
     | 
| 
       962 
877 
     | 
    
         
             
            		task: {
         
     | 
| 
         @@ -967,7 +882,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       967 
882 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       968 
883 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       969 
884 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       970 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 885 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 886 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 887 
     | 
    
         
            +
            			shortcut: shortcutConfig.task
         
     | 
| 
       971 
888 
     | 
    
         
             
            		},
         
     | 
| 
       972 
889 
     | 
    
         
             
            		//粗体
         
     | 
| 
       973 
890 
     | 
    
         
             
            		bold: {
         
     | 
| 
         @@ -978,7 +895,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       978 
895 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       979 
896 
     | 
    
         
             
            			leftBorder: true,
         
     | 
| 
       980 
897 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       981 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 898 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 899 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 900 
     | 
    
         
            +
            			shortcut: shortcutConfig.bold
         
     | 
| 
       982 
901 
     | 
    
         
             
            		},
         
     | 
| 
       983 
902 
     | 
    
         
             
            		//下划线
         
     | 
| 
       984 
903 
     | 
    
         
             
            		underline: {
         
     | 
| 
         @@ -989,7 +908,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       989 
908 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       990 
909 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       991 
910 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       992 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 911 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 912 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 913 
     | 
    
         
            +
            			shortcut: shortcutConfig.underline
         
     | 
| 
       993 
914 
     | 
    
         
             
            		},
         
     | 
| 
       994 
915 
     | 
    
         
             
            		//斜体
         
     | 
| 
       995 
916 
     | 
    
         
             
            		italic: {
         
     | 
| 
         @@ -1000,7 +921,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1000 
921 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1001 
922 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1002 
923 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1003 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 924 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 925 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 926 
     | 
    
         
            +
            			shortcut: shortcutConfig.italic
         
     | 
| 
       1004 
927 
     | 
    
         
             
            		},
         
     | 
| 
       1005 
928 
     | 
    
         
             
            		//删除线
         
     | 
| 
       1006 
929 
     | 
    
         
             
            		strikethrough: {
         
     | 
| 
         @@ -1011,7 +934,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1011 
934 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1012 
935 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1013 
936 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1014 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 937 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 938 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 939 
     | 
    
         
            +
            			shortcut: shortcutConfig.strikethrough
         
     | 
| 
       1015 
940 
     | 
    
         
             
            		},
         
     | 
| 
       1016 
941 
     | 
    
         
             
            		//行内代码
         
     | 
| 
       1017 
942 
     | 
    
         
             
            		code: {
         
     | 
| 
         @@ -1022,7 +947,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1022 
947 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1023 
948 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1024 
949 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1025 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 950 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 951 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 952 
     | 
    
         
            +
            			shortcut: shortcutConfig.code
         
     | 
| 
       1026 
953 
     | 
    
         
             
            		},
         
     | 
| 
       1027 
954 
     | 
    
         
             
            		//上标
         
     | 
| 
       1028 
955 
     | 
    
         
             
            		super: {
         
     | 
| 
         @@ -1033,7 +960,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1033 
960 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1034 
961 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1035 
962 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1036 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 963 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 964 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 965 
     | 
    
         
            +
            			shortcut: shortcutConfig.super
         
     | 
| 
       1037 
966 
     | 
    
         
             
            		},
         
     | 
| 
       1038 
967 
     | 
    
         
             
            		//下标
         
     | 
| 
       1039 
968 
     | 
    
         
             
            		sub: {
         
     | 
| 
         @@ -1044,7 +973,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1044 
973 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1045 
974 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1046 
975 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1047 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 976 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 977 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 978 
     | 
    
         
            +
            			shortcut: shortcutConfig.sub
         
     | 
| 
       1048 
979 
     | 
    
         
             
            		},
         
     | 
| 
       1049 
980 
     | 
    
         
             
            		//清除格式
         
     | 
| 
       1050 
981 
     | 
    
         
             
            		formatClear: {
         
     | 
| 
         @@ -1055,7 +986,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1055 
986 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1056 
987 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1057 
988 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1058 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 989 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 990 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 991 
     | 
    
         
            +
            			shortcut: shortcutConfig.formatClear
         
     | 
| 
       1059 
992 
     | 
    
         
             
            		},
         
     | 
| 
       1060 
993 
     | 
    
         
             
            		//字号
         
     | 
| 
       1061 
994 
     | 
    
         
             
            		fontSize: {
         
     | 
| 
         @@ -1074,7 +1007,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1074 
1007 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1075 
1008 
     | 
    
         
             
            			leftBorder: true,
         
     | 
| 
       1076 
1009 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1077 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1010 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1011 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1012 
     | 
    
         
            +
            			shortcut: shortcutConfig.fontSize
         
     | 
| 
       1078 
1013 
     | 
    
         
             
            		},
         
     | 
| 
       1079 
1014 
     | 
    
         
             
            		//字体
         
     | 
| 
       1080 
1015 
     | 
    
         
             
            		fontFamily: {
         
     | 
| 
         @@ -1093,7 +1028,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1093 
1028 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1094 
1029 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1095 
1030 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1096 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1031 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1032 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1033 
     | 
    
         
            +
            			shortcut: shortcutConfig.fontFamily
         
     | 
| 
       1097 
1034 
     | 
    
         
             
            		},
         
     | 
| 
       1098 
1035 
     | 
    
         
             
            		//行高
         
     | 
| 
       1099 
1036 
     | 
    
         
             
            		lineHeight: {
         
     | 
| 
         @@ -1112,7 +1049,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1112 
1049 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1113 
1050 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1114 
1051 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1115 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1052 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1053 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1054 
     | 
    
         
            +
            			shortcut: shortcutConfig.lineHeight
         
     | 
| 
       1116 
1055 
     | 
    
         
             
            		},
         
     | 
| 
       1117 
1056 
     | 
    
         
             
            		//前景色
         
     | 
| 
       1118 
1057 
     | 
    
         
             
            		foreColor: {
         
     | 
| 
         @@ -1125,7 +1064,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1125 
1064 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1126 
1065 
     | 
    
         
             
            			leftBorder: true,
         
     | 
| 
       1127 
1066 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1128 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1067 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1068 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1069 
     | 
    
         
            +
            			shortcut: shortcutConfig.foreColor
         
     | 
| 
       1129 
1070 
     | 
    
         
             
            		},
         
     | 
| 
       1130 
1071 
     | 
    
         
             
            		//背景色
         
     | 
| 
       1131 
1072 
     | 
    
         
             
            		backColor: {
         
     | 
| 
         @@ -1138,7 +1079,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1138 
1079 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1139 
1080 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1140 
1081 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1141 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1082 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1083 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1084 
     | 
    
         
            +
            			shortcut: shortcutConfig.backColor
         
     | 
| 
       1142 
1085 
     | 
    
         
             
            		},
         
     | 
| 
       1143 
1086 
     | 
    
         
             
            		//链接
         
     | 
| 
       1144 
1087 
     | 
    
         
             
            		link: {
         
     | 
| 
         @@ -1149,7 +1092,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1149 
1092 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1150 
1093 
     | 
    
         
             
            			leftBorder: true,
         
     | 
| 
       1151 
1094 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1152 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1095 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1096 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1097 
     | 
    
         
            +
            			shortcut: shortcutConfig.link
         
     | 
| 
       1153 
1098 
     | 
    
         
             
            		},
         
     | 
| 
       1154 
1099 
     | 
    
         
             
            		//图片
         
     | 
| 
       1155 
1100 
     | 
    
         
             
            		image: {
         
     | 
| 
         @@ -1172,7 +1117,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1172 
1117 
     | 
    
         
             
            			//自定义上传图片
         
     | 
| 
       1173 
1118 
     | 
    
         
             
            			customUpload: undefined,
         
     | 
| 
       1174 
1119 
     | 
    
         
             
            			//异常处理函数
         
     | 
| 
       1175 
     | 
    
         
            -
            			handleError: undefined
         
     | 
| 
      
 1120 
     | 
    
         
            +
            			handleError: undefined,
         
     | 
| 
      
 1121 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1122 
     | 
    
         
            +
            			shortcut: shortcutConfig.image
         
     | 
| 
       1176 
1123 
     | 
    
         
             
            		},
         
     | 
| 
       1177 
1124 
     | 
    
         
             
            		//视频
         
     | 
| 
       1178 
1125 
     | 
    
         
             
            		video: {
         
     | 
| 
         @@ -1195,7 +1142,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1195 
1142 
     | 
    
         
             
            			//自定义上传视频
         
     | 
| 
       1196 
1143 
     | 
    
         
             
            			customUpload: undefined,
         
     | 
| 
       1197 
1144 
     | 
    
         
             
            			//异常处理函数
         
     | 
| 
       1198 
     | 
    
         
            -
            			handleError: undefined
         
     | 
| 
      
 1145 
     | 
    
         
            +
            			handleError: undefined,
         
     | 
| 
      
 1146 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1147 
     | 
    
         
            +
            			shortcut: shortcutConfig.video
         
     | 
| 
       1199 
1148 
     | 
    
         
             
            		},
         
     | 
| 
       1200 
1149 
     | 
    
         
             
            		//表格
         
     | 
| 
       1201 
1150 
     | 
    
         
             
            		table: {
         
     | 
| 
         @@ -1210,7 +1159,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1210 
1159 
     | 
    
         
             
            			//创建时表格的最大行数
         
     | 
| 
       1211 
1160 
     | 
    
         
             
            			maxRows: 10,
         
     | 
| 
       1212 
1161 
     | 
    
         
             
            			//创建时表格的最大列数
         
     | 
| 
       1213 
     | 
    
         
            -
            			maxColumns: 10
         
     | 
| 
      
 1162 
     | 
    
         
            +
            			maxColumns: 10,
         
     | 
| 
      
 1163 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1164 
     | 
    
         
            +
            			shortcut: shortcutConfig.table
         
     | 
| 
       1214 
1165 
     | 
    
         
             
            		},
         
     | 
| 
       1215 
1166 
     | 
    
         
             
            		//代码块
         
     | 
| 
       1216 
1167 
     | 
    
         
             
            		codeBlock: {
         
     | 
| 
         @@ -1221,7 +1172,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1221 
1172 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1222 
1173 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1223 
1174 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1224 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1175 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1176 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1177 
     | 
    
         
            +
            			shortcut: shortcutConfig.codeBlock
         
     | 
| 
       1225 
1178 
     | 
    
         
             
            		},
         
     | 
| 
       1226 
1179 
     | 
    
         
             
            		//代码视图
         
     | 
| 
       1227 
1180 
     | 
    
         
             
            		sourceView: {
         
     | 
| 
         @@ -1232,7 +1185,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1232 
1185 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1233 
1186 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1234 
1187 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1235 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1188 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1189 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1190 
     | 
    
         
            +
            			shortcut: shortcutConfig.sourceView
         
     | 
| 
       1236 
1191 
     | 
    
         
             
            		},
         
     | 
| 
       1237 
1192 
     | 
    
         
             
            		//全屏
         
     | 
| 
       1238 
1193 
     | 
    
         
             
            		fullScreen: {
         
     | 
| 
         @@ -1243,7 +1198,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1243 
1198 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1244 
1199 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1245 
1200 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1246 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1201 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1202 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1203 
     | 
    
         
            +
            			shortcut: shortcutConfig.fullScreen
         
     | 
| 
       1247 
1204 
     | 
    
         
             
            		},
         
     | 
| 
       1248 
1205 
     | 
    
         
             
            		//附件
         
     | 
| 
       1249 
1206 
     | 
    
         
             
            		attachment: {
         
     | 
| 
         @@ -1268,7 +1225,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1268 
1225 
     | 
    
         
             
            			//自定义上传附件
         
     | 
| 
       1269 
1226 
     | 
    
         
             
            			customUpload: undefined,
         
     | 
| 
       1270 
1227 
     | 
    
         
             
            			//异常处理函数
         
     | 
| 
       1271 
     | 
    
         
            -
            			handleError: undefined
         
     | 
| 
      
 1228 
     | 
    
         
            +
            			handleError: undefined,
         
     | 
| 
      
 1229 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1230 
     | 
    
         
            +
            			shortcut: shortcutConfig.attachment
         
     | 
| 
       1272 
1231 
     | 
    
         
             
            		},
         
     | 
| 
       1273 
1232 
     | 
    
         
             
            		//数学公式
         
     | 
| 
       1274 
1233 
     | 
    
         
             
            		mathformula: {
         
     | 
| 
         @@ -1281,18 +1240,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1281 
1240 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1282 
1241 
     | 
    
         
             
            			rightBorder: false,
         
     | 
| 
       1283 
1242 
     | 
    
         
             
            			//异常处理函数
         
     | 
| 
       1284 
     | 
    
         
            -
            			handleError: undefined
         
     | 
| 
       1285 
     | 
    
         
            -
             
     | 
| 
       1286 
     | 
    
         
            -
             
     | 
| 
       1287 
     | 
    
         
            -
            		panel: {
         
     | 
| 
       1288 
     | 
    
         
            -
            			//是否显示此按钮
         
     | 
| 
       1289 
     | 
    
         
            -
            			show: false,
         
     | 
| 
       1290 
     | 
    
         
            -
            			//是否禁用此按钮
         
     | 
| 
       1291 
     | 
    
         
            -
            			disabled: false,
         
     | 
| 
       1292 
     | 
    
         
            -
            			//左侧边框是否显示
         
     | 
| 
       1293 
     | 
    
         
            -
            			leftBorder: false,
         
     | 
| 
       1294 
     | 
    
         
            -
            			//右侧边框是否显示
         
     | 
| 
       1295 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1243 
     | 
    
         
            +
            			handleError: undefined,
         
     | 
| 
      
 1244 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1245 
     | 
    
         
            +
            			shortcut: shortcutConfig.mathformula
         
     | 
| 
       1296 
1246 
     | 
    
         
             
            		},
         
     | 
| 
       1297 
1247 
     | 
    
         
             
            		//信息块
         
     | 
| 
       1298 
1248 
     | 
    
         
             
            		infoBlock: {
         
     | 
| 
         @@ -1303,7 +1253,9 @@ export const getMenuConfig = (editTrans: (key: string) => any, editLocale: Local 
     | 
|
| 
       1303 
1253 
     | 
    
         
             
            			//左侧边框是否显示
         
     | 
| 
       1304 
1254 
     | 
    
         
             
            			leftBorder: false,
         
     | 
| 
       1305 
1255 
     | 
    
         
             
            			//右侧边框是否显示
         
     | 
| 
       1306 
     | 
    
         
            -
            			rightBorder: false
         
     | 
| 
      
 1256 
     | 
    
         
            +
            			rightBorder: false,
         
     | 
| 
      
 1257 
     | 
    
         
            +
            			//快捷键
         
     | 
| 
      
 1258 
     | 
    
         
            +
            			shortcut: shortcutConfig.infoBlock
         
     | 
| 
       1307 
1259 
     | 
    
         
             
            		},
         
     | 
| 
       1308 
1260 
     | 
    
         
             
            		//拓展菜单
         
     | 
| 
       1309 
1261 
     | 
    
         
             
            		extends: {}
         
     | 
    
        package/src/css/var.less
    CHANGED
    
    | 
         @@ -49,10 +49,6 @@ 
     | 
|
| 
       49 
49 
     | 
    
         
             
            	--editify-font-color-disabled: #6d6d6d;
         
     | 
| 
       50 
50 
     | 
    
         
             
            	//较深的字体颜色(编辑器内容区域字体颜色)
         
     | 
| 
       51 
51 
     | 
    
         
             
            	--editify-font-color-dark: #fff;
         
     | 
| 
       52 
     | 
    
         
            -
            	//链接字体颜色
         
     | 
| 
       53 
     | 
    
         
            -
            	--editify-font-color-link: #079457;
         
     | 
| 
       54 
     | 
    
         
            -
            	//链接字体悬浮色
         
     | 
| 
       55 
     | 
    
         
            -
            	--editify-font-color-link-dark: #05683d;
         
     | 
| 
       56 
52 
     | 
    
         
             
            	//边框颜色
         
     | 
| 
       57 
53 
     | 
    
         
             
            	--editify-border-color: #3e3e3e;
         
     | 
| 
       58 
54 
     | 
    
         
             
            	//默认背景色
         
     | 
| 
         @@ -63,12 +59,6 @@ 
     | 
|
| 
       63 
59 
     | 
    
         
             
            	--editify-background-darker: #2c2c2c;
         
     | 
| 
       64 
60 
     | 
    
         
             
            	//代码块背景色
         
     | 
| 
       65 
61 
     | 
    
         
             
            	--editify-pre-background: #242424;
         
     | 
| 
       66 
     | 
    
         
            -
            	//反色调字体颜色
         
     | 
| 
       67 
     | 
    
         
            -
            	--editify-reverse-color: #333;
         
     | 
| 
       68 
     | 
    
         
            -
            	//反色调背景色
         
     | 
| 
       69 
     | 
    
         
            -
            	--editify-reverse-background: #f7f8fa;
         
     | 
| 
       70 
     | 
    
         
            -
            	//视频背景色
         
     | 
| 
       71 
     | 
    
         
            -
            	--editify-video-background: #f5f5f5;
         
     | 
| 
       72 
62 
     | 
    
         
             
            	//代码高亮样式
         
     | 
| 
       73 
63 
     | 
    
         
             
            	--editify-hljs-color-1: #7765dd;
         
     | 
| 
       74 
64 
     | 
    
         
             
            	--editify-hljs-color-2: #6a737d;
         
     |