edit/page: ctrl+S shortkey to save
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 2 Oct 2018 18:58:19 +0000 (20:58 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 26 Oct 2018 19:02:59 +0000 (21:02 +0200)
Expected feature from desktop editors.

edit/page.js

index 5e383835993ebd8f92034e8a1fdf75e275e84217..522d63e3c41d5b55f05b987ea5b05c6d7620b2b2 100644 (file)
@@ -39,6 +39,7 @@ CKEDITOR.plugins.add('inlinesave', {
                                ajaxpost.send(data);
                        },
                });
+               editor.setKeystroke(CKEDITOR.CTRL + 83 /*S*/, 'inlinesave');
                editor.ui.addButton( 'Inlinesave', {
                        command: 'inlinesave',
                        label: editor.lang.save.toolbar,