remove prosemirror-utils

This commit is contained in:
Philipp Kühn
2021-01-25 13:39:35 +01:00
parent 126894d9d1
commit d13210820d
6 changed files with 13 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
import { Selection } from 'prosemirror-state'
import findParentNodeClosestToPos from './findParentNodeClosestToPos'
import { Predicate } from '../types'
export default function findParentNode(predicate: Predicate) {
return (selection: Selection) => findParentNodeClosestToPos(selection.$from, predicate)
}