The forum operates in read-only mode. Please head to StackOverflow for support.
Hi
Try open any link in text here http://ckeditor.com/demo#inline. It wont, cause editor panel appers. Is there any ideas about how to open links?
In order to achieve this you can try to customize the link plugin. file path ckeditor/plugins/link/plugin.js
Search the file for the keyword "doubleclick". Approximately line number 94, And right before that place paste the followin code.
This code will enable opening links in a new tab when you hold ctrl key and clicking on the link.
editor.on('contentDom', function(evt){ var isCTRL = false; this.document.on('click', function(ev) { var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || ev.data.element; if (element!=undefined && element.is( 'a' ) ) { if(isCTRL) { window.open(element.$.href,'_blank'); } } }); editor.document.on( 'keyup', function(event) { if(event.data.$.keyCode == 17) isCTRL=false; }); editor.document.on( 'keydown', function(event) { if(event.data.$.keyCode == 17) isCTRL=true; }); });
Open links in inline editor
In order to achieve this you can try to customize the link plugin. file path ckeditor/plugins/link/plugin.js
Search the file for the keyword "doubleclick". Approximately line number 94, And right before that place paste the followin code.
This code will enable opening links in a new tab when you hold ctrl key and clicking on the link.