mirror of
https://github.com/heyman/heynote.git
synced 2025-06-20 09:37:50 +02:00
Minor formatting
This commit is contained in:
parent
1b3665b7b6
commit
662a234377
@ -87,8 +87,8 @@ const noteBlockWidget = () => {
|
|||||||
});
|
});
|
||||||
//console.log("deco range:", delimiter.from === 0 ? delimiter.from : delimiter.from+1,delimiter.to-1)
|
//console.log("deco range:", delimiter.from === 0 ? delimiter.from : delimiter.from+1,delimiter.to-1)
|
||||||
widgets.push(deco.range(
|
widgets.push(deco.range(
|
||||||
delimiter.from === 0 ? delimiter.from : delimiter.from+1,
|
delimiter.from === 0 ? delimiter.from : delimiter.from + 1,
|
||||||
delimiter.to-1,
|
delimiter.to - 1,
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ const noteBlockWidget = () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return [noteBlockStartField];
|
return noteBlockStartField;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ const atomicNoteBlock = ViewPlugin.fromClass(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
provide: plugin => EditorView.atomicRanges.of(view => {
|
provide: plugin => EditorView.atomicRanges.of(view => {
|
||||||
return view.plugin(plugin)?.atomicRanges || []
|
return view.plugin(plugin)?.atomicRanges || []
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -233,7 +233,6 @@ const preventSelectionBeforeFirstBlock = EditorState.transactionFilter.of((tr) =
|
|||||||
export const noteBlockExtension = () => {
|
export const noteBlockExtension = () => {
|
||||||
return [
|
return [
|
||||||
blockState,
|
blockState,
|
||||||
|
|
||||||
noteBlockWidget(),
|
noteBlockWidget(),
|
||||||
atomicNoteBlock,
|
atomicNoteBlock,
|
||||||
blockLayer(),
|
blockLayer(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user