Hotkeys

You can assign any keyboard shortcuts for BB code. By default WysiBB set some hotkeys. You can add or change their combinations for existing BB codes.

Consider hook up hotkeys for example.

var wbbOpt = {
  allButtons: {
    img: {
      hotkey: "ctrl+shift+5"
    },
    link: {
      hotkey: "ctrl+shift+k"
    }
 }
}
$("#editor").wysibb(wbbOpt);
Some shortcuts already reserved by browsers, so the editor may not work. When assigning combinations make sure that it is not used by the browser.

In this example, we have assigned a call BB code img Hotkey: ctrl + shift +5. A link to the call assigned ctrl + shift + k

Just to set up hotkeys available two initialization parameter hotkeys and showHotkeys.

var wbbOpt = {
  hotkeys: false, //isable hotkeys (the native browser combinations will work)
  showHotkeys: false //Hide combination in the tooltip on hover.
}
$("#editor").wysibb(wbbOpt);

Result