2014-01-11 63 views

回答

0

确保已加载Enterkey插件。然后使用editor.setKeystroke()到一个新的按键分配给现有的命令(输入为13)(fiddle):

CKEDITOR.replace('editor', { 
    on: { 
     instanceReady: function() { 
      this.setKeystroke([ 
       [ CKEDITOR.CTRL + 13, 'shiftEnter' ] 
      ]);       
     } 
    } 
}); 
+0

它的工作原理!多谢。 – user3179196