Ticket #1502: 1502.patch
File 1502.patch, 1.8 KB (added by , 16 years ago) |
---|
-
editor/_source/internals/fckdomtools.js
517 517 return element.removeAttribute( attributeName, 0 ) ; 518 518 }, 519 519 520 /** 521 * Removes a comma separated list of attributes from an element 522 */ 523 RemoveAttributes : function (element, attributesList ) 524 { 525 var aAttributes = attributesList.split(','); 526 for ( var i = 0 ; i < aAttributes.length ; i++ ) 527 this.RemoveAttribute( element, aAttributes[i] ); 528 }, 529 520 530 GetAttributeValue : function( element, att ) 521 531 { 522 532 var attName = att ; -
editor/_source/internals/fckstyles.js
210 210 // Remove elements nodes that match with this style rules. 211 211 if ( tagsRegex.test( currentNode.nodeName ) ) 212 212 FCKDomTools.RemoveNode( currentNode, true ) ; 213 else 214 FCKDomTools.RemoveAttributes( currentNode, FCKConfig.RemoveAttributes ); 213 215 214 216 currentNode = nextNode ; 215 217 } -
fckconfig.js
189 189 // Only inline elements are valid. 190 190 FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ; 191 191 192 FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,v:shapes,x:str,x:num,hspace,valign' ; 193 192 194 FCKConfig.CustomStyles = 193 195 { 194 196 'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } }