Search code examples
javascriptckeditorfckeditor

How to configure shortcut keys in CK EDITOR 4. Not finding Plugin for Keystrocks


I want to disable some key in CK EDITOR.

I am using CKEDITOR 4.0 & I want to disable some shortcuts keys in CKEDITOR.

e.g. help file opens on Alt + 0

In old version Config Available in Source/plugins/keystroks/plugins.js But not availble in new version.


Solution

  • Using config.keystrokes you can add and remove keystrokes.

    From documentation:

    // Disable default CTRL + L keystroke which executes link command by default.
    config.keystrokes = [
        ...
        [ CKEDITOR.CTRL + 76, null ],                       // CTRL + L
        ...
    ];