diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index bd4bc49..83d65ee 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -2125,6 +2125,8 @@ export class CommandAdapt { } // 区域信息 const zone = this.draw.getZone().getZone() + // 表格信息 + const isTable = this.position.getPositionContext().isTable return deepClone({ isCollapsed, startElement, @@ -2132,7 +2134,8 @@ export class CommandAdapt { startPageNo, endPageNo, rangeRects, - zone + zone, + isTable }) } diff --git a/src/editor/interface/Range.ts b/src/editor/interface/Range.ts index dcb4f36..498eb00 100644 --- a/src/editor/interface/Range.ts +++ b/src/editor/interface/Range.ts @@ -27,4 +27,5 @@ export type RangeContext = { endPageNo: number rangeRects: RangeRect[] zone: EditorZone + isTable: boolean }