Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Support for custom keyboard shortcuts #385

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikesuggitt
Copy link

Added support for keyboard shortcuts as a configuration option. Default values still present if not specified.

e.g. can now create an editor as follows:

var shortcuts = {
"66": "bold", // B
"73": "italic", // I
"76": "createLink", // L
"78": "insertUnorderedList",// N
"79": "insertOrderedList", // O
"85": "underline" // U
};

var editor = new wysihtml5.Editor("body", { // id of textarea element
toolbar: "wysihtml5-toolbar", // id of toolbar element
parserRules: wysihtml5ParserRules, // defined in parser rules set
useLineBreaks: false,
shortcuts: shortcuts
});

Added support for dialog commands from keyboard shortcuts, such as link.

mikesuggitt added 2 commits May 14, 2013 14:31
…lt values still present if not specified.

Added support for dialog keyboard shortcut such as link
@jakobdamjensen
Copy link

Will this be merged in?

@mjward
Copy link

mjward commented Aug 25, 2014

I'd also like to know whether this has plans to be merged in? Doesn't look like it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants