feat: add list element

This commit is contained in:
Hufe921
2023-04-20 20:17:34 +08:00
committed by Hufe
parent 8202c1c67b
commit c2330a8c11
28 changed files with 538 additions and 125 deletions
+12 -1
View File
@@ -55,7 +55,18 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'checkbox',
'dateFormat',
'block',
'level'
'level',
'listType',
'listStyle'
]
export const EDITOR_ELEMENT_CONTEXT_ATTR: Array<keyof IElement> = [
'tdId',
'trId',
'tableId',
'listId',
'listType',
'listStyle'
]
export const TEXTLIKE_ELEMENT_TYPE: ElementType[] = [
+7
View File
@@ -0,0 +1,7 @@
import { UlStyle } from '../enum/List'
export const ulStyleMapping: Record<UlStyle, string> = {
[UlStyle.DISC]: '•',
[UlStyle.CIRCLE]: '◦',
[UlStyle.SQUARE]: '▫︎'
}