Ticket #5819: 5819_4.patch
File 5819_4.patch, 1.6 KB (added by , 13 years ago) |
---|
-
_source/plugins/removeformat/plugin.js
103 103 if ( tagsRegex.test( currentNode.getName() ) ) 104 104 currentNode.remove( true ); 105 105 else 106 { 106 107 currentNode.removeAttributes( removeAttributes ); 108 editor.fire( 'removeFormatCleanup', currentNode ); 109 } 107 110 } 108 111 109 112 currentNode = nextNode; … … 170 173 * @example 171 174 */ 172 175 CKEDITOR.config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign'; 176 177 /** 178 * Fired after an element was cleaned by the removeFormat plugin. 179 * @name CKEDITOR#removeFormatCleanup 180 * @event 181 * @param {Object} data.element The element that was cleaned up. 182 */ -
_source/plugins/showborders/plugin.js
83 83 if ( command.state != CKEDITOR.TRISTATE_DISABLED ) 84 84 command.refresh( editor ); 85 85 }); 86 87 editor.on( 'removeFormatCleanup', function( evt ) 88 { 89 var element = evt.data; 90 if ( editor.getCommand( 'showborders' ).state == CKEDITOR.TRISTATE_ON && 91 element.is( 'table' ) && !element.hasAttribute( 'border' ) ) 92 element.addClass( showBorderClassName ); 93 }); 86 94 }, 87 95 88 96 afterInit : function( editor )