Ticket #14585: table-insertion-bug.js

File table-insertion-bug.js, 411 bytes (added by Dylan Fitzgerald, 8 years ago)

JS to reproduce

Line 
1var editor = CKEDITOR.instances.editor;
2
3var cursorPosition = function() {
4  var element = editor.getSelection().getStartElement();
5  console.log("Current cursor position is:");
6  console.dir(element);
7}
8
9var editable = editor.editable();
10editable.attachListener( editor, 'insertElement', function() {
11  console.log("Caught insertElement, calling cursorPosition()...");
12  cursorPosition();
13}, null, null, 100);
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy