fix focus for tables

This commit is contained in:
Philipp Kühn
2021-01-22 23:56:33 +01:00
parent aef9d1ca41
commit 605ead820f
2 changed files with 13 additions and 0 deletions

View File

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