Skip to content
Snippets Groups Projects
Commit 69059b79 authored by chris's avatar chris
Browse files

use fragment.empty for new note creation

parent 37e1eef0
No related branches found
No related tags found
1 merge request!160add track change plugin through service
...@@ -22,7 +22,7 @@ class Note extends Tools { ...@@ -22,7 +22,7 @@ class Note extends Tools {
); );
const footnote = state.config.schema.nodes.footnote.create( const footnote = state.config.schema.nodes.footnote.create(
{ id: uuidv4() }, { id: uuidv4() },
content, Fragment.empty,
); );
dispatch(state.tr.replaceSelectionWith(footnote)); dispatch(state.tr.replaceSelectionWith(footnote));
}; };
......
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