Merge pull request #14712 from overleaf/mj-table-adjustbox
[visual] Disable caption dropdown when tabular is wrapped in command GitOrigin-RevId: 08131d27e8bb4cb99eee3060435084f671bc3dd6
This commit is contained in:
committed by
Copybot
parent
c5cb344178
commit
0d7730f37a
@@ -278,3 +278,11 @@ export const minimumListDepthForSelection = (state: EditorState) => {
|
||||
}
|
||||
return Math.min(...depths)
|
||||
}
|
||||
|
||||
export const isDirectChildOfEnvironment = (
|
||||
child?: SyntaxNode | null,
|
||||
ancestor?: SyntaxNode | null
|
||||
) => {
|
||||
const possiblyAncestor = child?.parent?.parent?.parent // Text → Content → Environment
|
||||
return ancestor === possiblyAncestor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user