Changeset 486
- Timestamp:
- 2007-07-20 12:33:46 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckxhtml.js
r479 r486 29 29 { 30 30 FCKXHtmlEntities.Initialize() ; 31 31 32 32 // Set the correct entity to use for empty blocks. 33 33 this._NbspEntity = ( FCKConfig.ProcessHTMLEntities? 'nbsp' : '#160' ) ; … … 61 61 this.XML = null ; 62 62 63 // Safari adds xmlns="http://www.w3.org/1999/xhtml" to the root node (#963) 64 if ( FCKBrowserInfo.IsSafari ) 65 sXHTML = sXHTML.replace( /^<xhtml.*?>/, '<xhtml>' ) ; 66 63 67 // Strip the "XHTML" root node. 64 // Workaround: Safari adds xmlns="http://www.w3.org/1999/xhtml" to the root node #963 65 if ( FCKBrowserInfo.IsSafari ) 66 sXHTML = sXHTML.substr( 44, sXHTML.length - 52 ).Trim() ; 67 else 68 sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 68 sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 69 69 70 70 // Remove the trailing <br> added by Gecko. … … 455 455 if ( FCKBrowserInfo.IsGecko ) 456 456 sHtml = FCKTools.HTMLDecode( sHtml ); 457 457 458 458 // Remove the saved urls here as the data won't be processed as nodes 459 459 sHtml = sHtml.replace( /\s_fcksavedurl="[^"]*"/g, '' ) ;