move isCellSelection to table extension

This commit is contained in:
Philipp Kühn
2021-02-26 18:11:42 +01:00
parent e3f80207cc
commit a7ab9454b5
3 changed files with 6 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ import {
Command,
Node,
mergeAttributes,
isCellSelection,
findParentNodeClosestToPos,
callOrReturn,
} from '@tiptap/core'
@@ -28,6 +27,7 @@ import {
import { NodeView } from 'prosemirror-view'
import { TextSelection } from 'prosemirror-state'
import { createTable } from './utilities/createTable'
import { isCellSelection } from './utilities/isCellSelection'
import { TableView } from './TableView'
export interface TableOptions {

View File

@@ -0,0 +1,5 @@
import { CellSelection } from 'prosemirror-tables'
export function isCellSelection(value: unknown): value is CellSelection {
return value instanceof CellSelection
}