The forum operates in read-only mode. Please head to StackOverflow for support.
Hi,
When you press shift+enter in a ckeditor, a new line is created. When you press ctrl+enter, nothing happens.
How can I make pressing ctrl+enter to behave same as shift+enter?
Thanks
I found the solution.
Make sure that Enterkey plugin is loaded. Then use editor.setKeystroke() to assign a new keystroke to an existing command (Enter is 13) (fiddle):
editor.setKeystroke()
CKEDITOR.replace( 'editor', { on: { instanceReady: function() { this.setKeystroke( [ [ CKEDITOR.CTRL + 13, 'shiftEnter' ] ] ); } } } );
I found the solution.
I found the solution.
Make sure that Enterkey plugin is loaded. Then use
editor.setKeystroke()
to assign a new keystroke to an existing command (Enter is 13) (fiddle):CKEDITOR.replace( 'editor', {
on: {
instanceReady: function() {
this.setKeystroke( [
[ CKEDITOR.CTRL + 13, 'shiftEnter' ]
] );
}
}
} );