tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
don't use tiptap imports
awarm.space
2 years ago
c28fb94a
5e0def71
+2
-4
1 changed file
expand all
collapse all
unified
split
src
utils
prosemirror
setMark.ts
+2
-4
src/utils/prosemirror/setMark.ts
···
1
1
// Taken from https://github.com/ueberdosis/tiptap/blob/dfacb3b987b57b3ab518bae87bc3d263ebfb60d0/packages/core/src/commands/setMark.ts#L66
2
2
-
import { MarkType, ResolvedPos } from "@tiptap/pm/model";
3
3
-
import { EditorState, Transaction } from "@tiptap/pm/state";
4
2
5
5
-
import { TextSelection } from "prosemirror-state";
6
6
-
import { Mark, Schema } from "prosemirror-model";
3
3
+
import { EditorState, TextSelection, Transaction } from "prosemirror-state";
4
4
+
import { Mark, MarkType, ResolvedPos, Schema } from "prosemirror-model";
7
5
8
6
function canSetMark(
9
7
state: EditorState,