TinyMCE:API/tinymce.Editor/addShortcut

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: addShortcut

Summary

Adds a keyboard shortcut for some command or function.

Syntax

<bool> addShortcut(<String> pa, <String> desc, <String/Function> cmd_func, <Object> sc)

Parameters

pa
Shortcut pattern. Like for example: ctrl+alt+o.
desc
Text description for the command.
cmd_func
Command name string or function to execute when the key is pressed.
sc
Optional scope to execute the function in.

Returns

true/false state if the shortcut was added or not.

Personal tools