Commit 0f9e5c0f authored by chris's avatar chris

trackchanges in progress

parent 509d235f
import { getFromToMark } from "./helpers";
export function findSelectedChanges(state) {
const findSelectedChanges = state => {
const selection = state.selection,
selectedChanges = {
insertion: false,
......@@ -97,6 +97,7 @@ export function findSelectedChanges(state) {
? { from: formatChangePos, to: formatChangePos + formatChangeSize }
: getFromToMark(state.doc, formatChangePos, formatChangeMark);
}
console.log(selectedChanges);
return selectedChanges;
}
};
export { findSelectedChanges };
import { Plugin, PluginKey } from "prosemirror-state";
import { Decoration, DecorationSet } from "prosemirror-view";
import { findSelectedChanges } from "./find_selected_changes";
import { findSelectedChanges } from "./FindSelectedChanges";
import { deactivateAllSelectedChanges } from "./helpers";
export const key = new PluginKey("track");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment