+\r
+ editor.on( 'removeFormatCleanup', function( evt )\r
+ {\r
+ var element = evt.data;\r
+ if ( editor.getCommand( 'showborders' ).state == CKEDITOR.TRISTATE_ON &&\r
+ element.is( 'table' ) && ( !element.hasAttribute( 'border' ) || parseInt( element.getAttribute( 'border' ), 10 ) <= 0 ) )\r
+ element.addClass( showBorderClassName );\r
+ });\r