wysihtml5 icon indicating copy to clipboard operation
wysihtml5 copied to clipboard

Support for custom keyboard shortcuts

Open mikesuggitt opened this issue 11 years ago • 2 comments

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 avatar May 14 '13 13:05 mikesuggitt

Will this be merged in?

jakobdamjensen avatar Nov 08 '13 08:11 jakobdamjensen

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

mjward avatar Aug 25 '14 03:08 mjward