Ticket #14585: table-insertion-bug.js
File table-insertion-bug.js, 411 bytes (added by , 8 years ago) |
---|
Line | |
---|---|
1 | var editor = CKEDITOR.instances.editor; |
2 | |
3 | var cursorPosition = function() { |
4 | var element = editor.getSelection().getStartElement(); |
5 | console.log("Current cursor position is:"); |
6 | console.dir(element); |
7 | } |
8 | |
9 | var editable = editor.editable(); |
10 | editable.attachListener( editor, 'insertElement', function() { |
11 | console.log("Caught insertElement, calling cursorPosition()..."); |
12 | cursorPosition(); |
13 | }, null, null, 100); |