Ckeditor如何应用键盘快捷方式到特定的样式 [英] Ckeditor how to apply keyboard shortcut to a particular style

查看:174
本文介绍了Ckeditor如何应用键盘快捷方式到特定的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将键盘快捷键应用到CkEditor中下拉菜单中的特定样式?我搜索他们的文档,但我找不到我的案例的解决方案。

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.

这是屏幕截图。

img src =https://i.stack.imgur.com/V4zVt.pngalt =enter image description here>

这里我想将样式下拉列表中的键盘快捷方式应用到黄色标记。任何帮助将不胜感激。感谢

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

推荐答案

这里你去。此示例显示如何将样式附加到 CTRL + SHIFT + 1 击键。
你可以对不同的击键使用switch语句,并以任何你想要的方式玩。

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.

这篇关于Ckeditor如何应用键盘快捷方式到特定的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆