Hello guys,
I'm currently working to integrate CKEditor and now I'ld like to know how I can prevent the user to insert a table when the cursor is already placed inside a cell.
So I don't want nested tables. Is there anything I can do?
Cheers,
Jan
I'm currently working to integrate CKEditor and now I'ld like to know how I can prevent the user to insert a table when the cursor is already placed inside a cell.
So I don't want nested tables. Is there anything I can do?
Cheers,
Jan

Re: Nested tables
Kind regards,
Jan
Re: Nested tables
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
One way to do that....
myEditor.on('selectionChange', function(ev){ var parents = ev.data.path.elements; var state = CKEDITOR.TRISTATE_OFF; for (var x=0; x<parents.length; x++) { if (parents[x].getName() === 'table') { state = CKEDITOR.TRISTATE_DISABLED; continue; } } ev.editor.getCommand('table').setState(state); });