refactoring

This commit is contained in:
Philipp Kühn
2021-01-28 09:57:20 +01:00
parent 4407d9a3d1
commit 6a5dde0101
5 changed files with 28 additions and 30 deletions

View File

@@ -1,14 +1,8 @@
import { EditorState } from 'prosemirror-state'
import { Node, NodeType } from 'prosemirror-model'
import { NodeType } from 'prosemirror-model'
import objectIncludes from '../utilities/objectIncludes'
import getNodeType from './getNodeType'
import { AnyObject } from '../types'
export type NodeRange = {
node: Node,
from: number,
to: number,
}
import { AnyObject, NodeRange } from '../types'
export default function isNodeActive(
state: EditorState,