Changeset 1603
- Timestamp:
- 2008-02-24 16:56:16 (6 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 5 modified
-
editor/_source/internals/fckconfig.js (modified) (1 diff)
-
editor/_source/internals/fckdomtools.js (modified) (1 diff)
-
editor/_source/internals/fckstyles.js (modified) (1 diff)
-
fckconfig.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckconfig.js
r1598 r1603 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 -
FCKeditor/trunk/editor/_source/internals/fckdomtools.js
r1565 r1603 517 517 return element.removeAttribute( attributeName, 0 ) ; 518 518 }, 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 }, 519 528 520 529 GetAttributeValue : function( element, att ) -
FCKeditor/trunk/editor/_source/internals/fckstyles.js
r1565 r1603 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 ; -
FCKeditor/trunk/fckconfig.js
r1598 r1603 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 { -
FCKeditor/trunk/_whatsnew.html
r1602 r1603 142 142 additional fifth parameter "customData" that will be send to the Execute method of the command for that 143 143 menu item, allowing a single command to be used for different menu items..</li> 144 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1502">#1502</a>] The RemoveFormat command now 145 also removes the attributes from the cleaned text. The list of attributes is configurable with 146 FCKConfig.RemoveAttributes.</li> 144 147 </ul> 145 148 <p>