I am writting a plugin that will show a button when I focus on a table cell. It adds a div with an absolute position. I can press this button to get the context menu.
My problem is that this div sticks around when I switch to source or save the document. Is there a way filter out this div?
Thanks!
Found a solution...
Found a solution...
I added this:
editor.on( 'toDataFormat', function( evt ) {
evt.data.dataValue.forEach( function( element ) {
if (element.attributes && 'cke_table_menu' in element.attributes) {
element.remove();
}
} );
});