Ticket #1502: 1502_2.patch
File 1502_2.patch, 3.1 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
138 138 resolved issues with OnRequestEnd.cfm breaking the file browser.</li> 139 139 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1509">#1509</a>] InsertHtml() in IE will no 140 140 longer turn the preceding normal whitespace into &nbsp;.</li> 141 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1502">#1502</a>] The RemoveFormat command now 142 also removes the attributes from the cleaned text. The list of attributes is configurable with 143 FCKConfig.RemoveAttributes.</li> 141 144 </ul> 142 145 <p> 143 146 <a href="_whatsnew_history.html">See previous versions history</a> -
editor/_source/internals/fckconfig.js
135 135 var sComboPreviewCSS = oConfig.ToolbarComboPreviewCSS ; 136 136 if ( !sComboPreviewCSS || sComboPreviewCSS.length == 0 ) 137 137 oConfig.ToolbarComboPreviewCSS = oConfig.EditorAreaCSS ; 138 139 // Turn the attributes that will be removed in the RemoveFormat from a string to an array 140 oConfig.RemoveAttributesArray = (oConfig.RemoveAttributes || '').split( ',' ); 138 141 } 139 142 140 143 // Define toolbar sets collection. -
editor/_source/internals/fckdomtools.js
517 517 return element.removeAttribute( attributeName, 0 ) ; 518 518 }, 519 519 520 /** 521 * Removes an array of attributes from an element 522 */ 523 RemoveAttributes : function (element, aAttributes ) 524 { 525 for ( var i = 0 ; i < aAttributes.length ; i++ ) 526 this.RemoveAttribute( element, aAttributes[i] ); 527 }, 528 520 529 GetAttributeValue : function( element, att ) 521 530 { 522 531 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.RemoveAttributesArray ); 213 215 214 216 currentNode = nextNode ; 215 217 } -
fckconfig.js
192 192 // Only inline elements are valid. 193 193 FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ; 194 194 195 // Attributes that will be removed 196 FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ; 197 195 198 FCKConfig.CustomStyles = 196 199 { 197 200 'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } }