Ckeditor how to apply a keyboard shortcut to a specific style

Can I apply a keyboard shortcut to a specific style from drom styles in CkEditor? I searched for their documents, but could not find a solution for my case.

Here is a screenshot.

enter image description here

Here I want to be able to apply a shortcut with a yellow marker from the Styles drop-down list. Any help would be appreciated. Thanks

+1
source share
1 answer

Here you go . This example shows how to attach a style to CTRL+SHIFT+1 pressing a key. You can use the switch statement for different keystrokes and play with them in any way.

+4
source

Source: https://habr.com/ru/post/1481926/


All Articles