feat:add superscript and subscript

This commit is contained in:
黄云飞
2022-01-14 14:40:19 +08:00
parent 8939d42295
commit ae3de7bf55
14 changed files with 122 additions and 13 deletions
+8
View File
@@ -1,3 +1,4 @@
import { ElementType } from "../enum/Element"
import { IElement } from "../../interface/Element"
export const EDITOR_ELEMENT_STYLE_ATTR = [
@@ -43,4 +44,11 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'url',
'colgroup',
'valueList'
]
export const TEXTLIKE_ELEMENT_TYPE: ElementType[] = [
ElementType.TEXT,
ElementType.HYPERLINK,
ElementType.SUBSCRIPT,
ElementType.SUPERSCRIPT
]