You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.2 KiB
76 lines
1.2 KiB
import { ElementType } from '../enum/Element'
|
|
import { IElement } from '../../interface/Element'
|
|
|
|
export const EDITOR_ELEMENT_STYLE_ATTR: Array<keyof IElement> = [
|
|
'bold',
|
|
'color',
|
|
'highlight',
|
|
'font',
|
|
'size',
|
|
'italic',
|
|
'underline',
|
|
'strikeout'
|
|
]
|
|
|
|
export const EDITOR_ELEMENT_COPY_ATTR: Array<keyof IElement> = [
|
|
'type',
|
|
'font',
|
|
'size',
|
|
'bold',
|
|
'color',
|
|
'italic',
|
|
'highlight',
|
|
'underline',
|
|
'strikeout',
|
|
'rowFlex',
|
|
'url',
|
|
'hyperlinkId',
|
|
'dateId',
|
|
'dateFormat',
|
|
'level',
|
|
'titleId'
|
|
]
|
|
|
|
export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
|
|
'type',
|
|
'font',
|
|
'size',
|
|
'bold',
|
|
'color',
|
|
'italic',
|
|
'highlight',
|
|
'underline',
|
|
'strikeout',
|
|
'rowFlex',
|
|
'rowMargin',
|
|
'dashArray',
|
|
'trList',
|
|
'borderType',
|
|
'width',
|
|
'height',
|
|
'url',
|
|
'colgroup',
|
|
'valueList',
|
|
'control',
|
|
'checkbox',
|
|
'dateFormat',
|
|
'block',
|
|
'level'
|
|
]
|
|
|
|
export const TEXTLIKE_ELEMENT_TYPE: ElementType[] = [
|
|
ElementType.TEXT,
|
|
ElementType.HYPERLINK,
|
|
ElementType.SUBSCRIPT,
|
|
ElementType.SUPERSCRIPT,
|
|
ElementType.CONTROL,
|
|
ElementType.DATE,
|
|
ElementType.TITLE
|
|
]
|
|
|
|
export const INLINE_ELEMENT_TYPE: ElementType[] = [
|
|
ElementType.BLOCK,
|
|
ElementType.PAGE_BREAK,
|
|
ElementType.SEPARATOR,
|
|
ElementType.TABLE
|
|
] |