Skip to content

Commit

Permalink
Update commandToHotkeys docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed May 13, 2024
1 parent 37cf482 commit 98e8687
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/plugins/hotkeys/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ import { Config } from 'jodit/config';

declare module 'jodit/config' {
interface Config {
/**
* You can redefine hotkeys for some command
*
* @example
* ```js
* const jodit = Jodit.make('#editor', {
* commandToHotkeys: {
* bold: 'ctrl+shift+b',
* italic: ['ctrl+i', 'ctrl+b'],
* }
* })
* ```
*/
commandToHotkeys: IDictionary<string | string[]>;
}
}

/**
* You can redefine hotkeys for some command
*
* @example
* ```js
* var jodit = Jodit.make('#editor', {
* commandToHotkeys: {
* bold: 'ctrl+shift+b',
* italic: ['ctrl+i', 'ctrl+b'],
* }
* })
* ```
*/
Config.prototype.commandToHotkeys = {
removeFormat: ['ctrl+shift+m', 'cmd+shift+m'],
insertOrderedList: ['ctrl+shift+7', 'cmd+shift+7'],
Expand Down

0 comments on commit 98e8687

Please sign in to comment.