move isCellSelection to table extension
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { CellSelection } from 'prosemirror-tables'
|
||||
|
||||
export function isCellSelection(value: unknown): value is CellSelection {
|
||||
return value instanceof CellSelection
|
||||
}
|
||||
Reference in New Issue
Block a user