mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-11 19:56:57 +08:00
move isCellSelection to table extension
This commit is contained in:
parent
e3f80207cc
commit
a7ab9454b5
@ -38,7 +38,6 @@
|
||||
"prosemirror-model": "^1.13.3",
|
||||
"prosemirror-schema-list": "^1.1.4",
|
||||
"prosemirror-state": "^1.3.4",
|
||||
"prosemirror-tables": "^1.1.1",
|
||||
"prosemirror-transform": "^1.2.11",
|
||||
"prosemirror-view": "^1.17.6"
|
||||
}
|
||||
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user