Please help me for adding keyboard shortcut for bullet and number list using addShortcut() function.
Ctl + N For Number List Ctl + R For Bullet List
Here the code you need to include in your plugin:
ed.addShortcut('ctrl+n', 'OrderedList', function(){
ed.execCommand('InsertOrderedList');
});
ed.addShortcut('ctrl+r', 'UnorderedList', function(){
ed.execCommand('InsertUnorderedList');
});
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.