feat: add table context to contextmenu and getRangeContext api #576

This commit is contained in:
Hufe921
2024-05-18 20:56:58 +08:00
parent 28f6bdbb41
commit 149c95f952
6 changed files with 63 additions and 8 deletions
+3
View File
@@ -28,6 +28,9 @@ export type RangeContext = {
rangeRects: RangeRect[]
zone: EditorZone
isTable: boolean
trIndex: number | null
tdIndex: number | null
tableElement: IElement | null
}
export interface IRangeParagraphInfo {
@@ -11,6 +11,9 @@ export interface IContextMenuContext {
isInTable: boolean
isCrossRowCol: boolean
zone: EditorZone
trIndex: number | null
tdIndex: number | null
tableElement: IElement | null
}
export interface IRegisterContextMenu {