Ticket #5819: 5819_3.patch
File 5819_3.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/removeformat/plugin.js
34 34 var removeAttributes = editor._.removeAttributes || 35 35 ( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) ); 36 36 37 var showBordersCommand = editor.getCommand( 'showborders' ); 38 37 39 var filter = CKEDITOR.plugins.removeformat.filter; 38 40 var ranges = editor.getSelection().getRanges(); 39 41 … … 103 105 if ( tagsRegex.test( currentNode.getName() ) ) 104 106 currentNode.remove( true ); 105 107 else 108 { 106 109 currentNode.removeAttributes( removeAttributes ); 110 111 if ( currentNode.is( 'table' ) 112 && showBordersCommand && showBordersCommand.state == CKEDITOR.TRISTATE_ON 113 && !currentNode.hasAttribute( 'border' ) ) 114 currentNode.addClass( 'cke_show_border' ); 115 } 107 116 } 108 117 109 118 currentNode = nextNode;