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 { Mark, MarkType } from 'prosemirror-model'
import { MarkType } from 'prosemirror-model'
import objectIncludes from '../utilities/objectIncludes'
import getMarkType from './getMarkType'
import { AnyObject } from '../types'
export type MarkRange = {
mark: Mark,
from: number,
to: number,
}
import { AnyObject, MarkRange } from '../types'
export default function isMarkActive(
state: EditorState,