rgf100 Posted January 22, 2016 Posted January 22, 2016 I'm trying to get used to typing without BBCode. Bold, Italic, and Underline are easy enough. However... How do I link text without resorting to the mouse? CKEditor says there's a CTRL+L shortcut to bring up the link dialog, but in Chrome that just send you to the address bar. There's an option to navigate the buttons with ALT+F10, arrows key, enter option, but that's quite a few keypresses and assumes the link button is up there. Also, quotes. Any keyboard only option?
Nathan Explosion Posted January 22, 2016 Posted January 22, 2016 Ctrl + L would work if the ckeditor link plugin was used - but it's an ips plugin instead, so it isn't. The shortcuts (keystrokes) are defined within the ckeditor code itself using the setkeystroke function. I'll have a play with the config.js to see if there is a way of overriding the Ctrl + L to force the ips link plugin. BRB.
Nathan Explosion Posted January 22, 2016 Posted January 22, 2016 Here ya go - add the following to applications\core\interface\ckeditor\ckeditor\config.js (after the existing function) CKEDITOR.editorConfig=function(config){ config.keystrokes = [ [CKEDITOR.CTRL + 76, 'ipsLink' ], //while plugin folder is called ipslink, the function in the plugin.js is called ipsLink [CKEDITOR.CTRL + 81, 'ipsquote' ] //plugin name same as plugin folder name. ]; }; That will be CTRL + L for the ipslink plugin and CTRL + Q for the ipsquote plugin (when you are within an editor window!) Be aware that the config.js may get overwritten during an IPS4 upgrade (especially if a ckeditor upgrade is included) so note down the change to add it back in again. If anyone wants to set it to use CTRL + SHIFT + key then the below will do that. CKEDITOR.editorConfig=function(config){ config.keystrokes = [ [CKEDITOR.CTRL + CKEDITOR.SHIFT + 76, 'ipsLink' ], //while plugin folder is called ipslink, the function in the plugin.js is called ipsLink [CKEDITOR.CTRL + CKEDITOR.SHIFT + 81, 'ipsquote' ] //plugin name same as plugin folder name. ]; };
Recommended Posts
Archived
This topic is now archived and is closed to further replies.