fix: inability to select list pasted into table #206

This commit is contained in:
Hufe921
2023-06-15 20:10:24 +08:00
parent 68bea13333
commit 53dd9628ca
3 changed files with 36 additions and 15 deletions
+14 -2
View File
@@ -59,17 +59,29 @@ export const EDITOR_ELEMENT_ZIP_ATTR: Array<keyof IElement> = [
'listWrap'
]
export const EDITOR_ELEMENT_CONTEXT_ATTR: Array<keyof IElement> = [
export const TABLE_CONTEXT_ATTR: Array<keyof IElement> = [
'tdId',
'trId',
'tableId',
'tableId'
]
export const TITLE_CONTEXT_ATTR: Array<keyof IElement> = [
'level',
'titleId',
]
export const LIST_CONTEXT_ATTR: Array<keyof IElement> = [
'listId',
'listType',
'listStyle'
]
export const EDITOR_ELEMENT_CONTEXT_ATTR: Array<keyof IElement> = [
...TABLE_CONTEXT_ATTR,
...TITLE_CONTEXT_ATTR,
...LIST_CONTEXT_ATTR
]
export const TEXTLIKE_ELEMENT_TYPE: ElementType[] = [
ElementType.TEXT,
ElementType.HYPERLINK,