add deleteTableWhenAllCellsSelected

This commit is contained in:
Philipp Kühn
2021-01-24 23:28:51 +01:00
parent a24409b05b
commit 2156891823
5 changed files with 83 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
import { NodeSelection } from 'prosemirror-state'
import isObject from '../utilities/isObject'
export default function isNodeSelection(value: unknown): value is NodeSelection {
return isObject(value) && value instanceof NodeSelection
}