undefinedoffset/silverstripe-keyboardshortcuts

Adds keyboard shortcuts for common tasks to SilverStripe 3.1 (ctrl/command+s for save anyone?)

Installs: 105

Dependents: 0

Stars: 12

Watchers: 1

Open Issues: 1

Language: JavaScript

0.2.2 2014-08-09 17:52 UTC

README

Adds keyboard shortcuts for common tasks to SilverStripe 3.1 (ctrl/command+s for save anyone?).

Requirements

  • SilverStripe 3.1+

Installation

If you prefer you may also install using composer:

composer require undefinedoffset/silverstripe-keyboardshortcuts

Shortcuts:

These shortcuts are not guarenteed towork in all browsers on all operating systems, and what they do by default on your particualar browser/os is not guarenteed so take care. This module uses a slightly modified Mousetrap by ccampbell for it's keyboard event handling, modifications are to allow interfacing with TinyMCE.

Global

ctrl+s/command+s Save/Save Draft

Pages only

ctrl+shift+s/command+shift+s Save and Publish

ctrl+n/command+n Add Page/Create Page

ctrl+k/command+k Toggle between Draft/Published Preview [not saved]

ctrl+m/command+m Toggle between preview modes (Split mode > Edit mode > Preview mode) saved in session

ctrl+j/command+j Toggle between preview sizes (Auto > Desktop > Tablet > Mobile) saved in session

TinyMCE

ctrl+shift+k/command+shift+k Insert Link

alt+shift+k/alt+shift+k Unlink

ctrl+shift+m/command+shift+m Insert Media

ctrl+shift+l/command+shift+l Insert or Remove Bulleted List

ctrl+l/command+l Insert or Remove Numbered List

These are in addition to the built in keyboard shortcuts for TinyMCE:
ctrl+z/command+z Undo Typing

ctrl+y/command+y Redo Typing

ctrl+b/command+b Bold text

ctrl+i/command+i Italic text

ctrl+u/command+u Underline text

ctrl+1 to ctrl+6/command+1 to command+6 Heading 1 to 6

ctrl+7/command+7 Paragraph

ctrl+8/command+8 Div

ctrl+9/command+9 Address