diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-07 15:39:36 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-05-07 15:39:36 +0300 |
commit | a868aca3e6c1f8669398ac4a747fa40a496319e7 (patch) | |
tree | b081d03b9b76f97a861361b91902d949dfd562b3 | |
parent | aed5581c6d40b2fd843cb1fd478c616e70a2f9f7 (diff) |
Add save keymap
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | src/components/Editor.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 380313cdd..5d7725bb9 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -258,6 +258,13 @@ state: EditorState.create({ doc: authority.doc, plugins: [ + keymap({ + "Ctrl-s": (state, dispatch, event) => { + authority.forceSave() + authority.fetchSteps() + return true; + } + }), ...exampleSetup({schema}), collab({ version: authority.steps.length, |