Skip to content
Snippets Groups Projects
Commit 17a1657c authored by chris's avatar chris
Browse files

add comment

parent 17037f7d
No related branches found
No related tags found
1 merge request!119Comment service
......@@ -42,10 +42,13 @@ const getSelectionMark = (state, PMmark) => {
return markFound;
};
/* this is a workaround for now to find marks
that are pm will break them
*/
const findFragmentedMark = (state, PMmark) => {
const { selection: { $from, $to }, doc } = state;
const fromPos = [$from.pos, $from.pos + 1];
const toPos = [$to.pos, $to.pos + 1];
const fromPos = [$from.pos - 1, $from.pos];
const toPos = [$to.pos - 1, $to.pos];
let markFound;
for (let i = 0; i < fromPos.length; i++) {
......
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