简体   繁体   中英

How can I remove button and key events in ckeditor?

I want to remove the Bold button form my CKEditor. I used the below-mentioned code. but it's only removing the icon from the toolbar. I want to remove key events also. when I press ctrl+b it's put tag in the backend.

http://ckeditor.com/comment/123266#comment-123266

Formatting command Bold is part of basicstyles plugin and removing this plugin, would remove all other formatting commands. So, you should use configuration option removeButtons to remove just this one.

config.removeButtons = 'Bold';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM