Intercept CKEditor keystroke -
can intercept keystroke in ckeditor (the tab key) , replace default behavior? want tab key insert div margin.
this.editorinstance.on( 'tab', function(evt){ evt.editor.inserthtml('span style="margin-left: 40px;"> </span>'); evt.cancel(); return false; })
Comments
Post a Comment