Ckeditor how to apply keyboard shortcut to a particular style

我们两清 提交于 2019-12-01 11:37:08

问题


Is it possible to apply a keyboard shortcut to a particular style from Styles drom down in CkEditor? I searched their docs but I could not find a solution for my case.

Here is screenshot.

Here I want to be able to apply a keyboard shortcut to yellow marker from that Styles drop down. Any help will be appreciated. Thanks


回答1:


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



来源:https://stackoverflow.com/questions/14423734/ckeditor-how-to-apply-keyboard-shortcut-to-a-particular-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!