aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/TooltipTextMenu.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-11-15 15:11:26 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-11-15 15:11:26 -0500
commit2ab22e64e9b95e6b76566c493ae90f5951475e72 (patch)
treeb80952873761da2c2e800195d74a989f1cd89d8c /src/client/util/TooltipTextMenu.tsx
parent79c66275c60001e6d7aa997d9802ec0fed893205 (diff)
fixed naming of 'marker' mark
Diffstat (limited to 'src/client/util/TooltipTextMenu.tsx')
-rw-r--r--src/client/util/TooltipTextMenu.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx
index 14f8b2bd4..5136089b3 100644
--- a/src/client/util/TooltipTextMenu.tsx
+++ b/src/client/util/TooltipTextMenu.tsx
@@ -735,7 +735,7 @@ export class TooltipTextMenu {
public static insertHighlight(color: String, state: EditorState<any>, dispatch: any) {
if (state.selection.empty) return false;
- let highlightMark = state.schema.mark(state.schema.marks.highlight2, { highlight: color });
+ let highlightMark = state.schema.mark(state.schema.marks.marker, { highlight: color });
dispatch(state.tr.addMark(state.selection.from, state.selection.to, highlightMark));
}
@@ -1223,7 +1223,7 @@ export class TooltipTextMenu {
});
}
- markActive = function (state: EditorState<any>, type: MarkType<Schema<string, string>>) {
+ markActive = function(state: EditorState<any>, type: MarkType<Schema<string, string>>) {
let { from, $from, to, empty } = state.selection;
if (empty) return type.isInSet(state.storedMarks || $from.marks());
else return state.doc.rangeHasMark(from, to, type);