Changeset 217
- Timestamp:
- 2007-03-16 17:49:45 (22 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/internals/fck.js (modified) (8 diffs)
-
editor/_source/internals/fckregexlib.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck.js
r210 r217 89 89 this.EditingArea = new FCKEditingArea( document.getElementById( 'xEditingArea' ) ) ; 90 90 this.EditingArea.FFSpellChecker = false ; 91 91 92 92 // Final setup of the lists lib. 93 93 FCKListsLib.Setup() ; … … 207 207 208 208 if ( FCKConfig.FullPage ) 209 { 209 210 sXHTML = FCKXHtml.GetXHTML( oDoc.getElementsByTagName( 'html' )[0], true, format ) ; 211 212 if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 ) 213 sXHTML = FCK.DocTypeDeclaration + '\n' + sXHTML ; 214 215 if ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 ) 216 sXHTML = FCK.XmlDeclaration + '\n' + sXHTML ; 217 } 210 218 else 211 219 { 212 if ( FCKConfig.IgnoreEmptyParagraphValue && oDoc.body.innerHTML == '<P> </P>' ) 220 sXHTML = FCKXHtml.GetXHTML( oDoc.body, false, format ) ; 221 222 if ( FCKConfig.IgnoreEmptyParagraphValue && FCKRegexLib.EmptyOutParagraph.test( sXHTML ) ) 213 223 sXHTML = '' ; 214 else215 sXHTML = FCKXHtml.GetXHTML( oDoc.body, false, format ) ;216 224 } 217 225 … … 221 229 if ( FCKBrowserInfo.IsIE ) 222 230 sXHTML = sXHTML.replace( FCKRegexLib.ToReplace, '$1' ) ; 223 224 if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )225 sXHTML = FCK.DocTypeDeclaration + '\n' + sXHTML ;226 227 if ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 )228 sXHTML = FCK.XmlDeclaration + '\n' + sXHTML ;229 231 230 232 return FCKConfig.ProtectedSource.Revert( sXHTML ) ; … … 315 317 { 316 318 html = FCKConfig.ProtectedSource.Protect( html ) ; 317 319 318 320 // Fix for invalid self-closing tags (see #152). 319 321 html = html.replace( FCKRegexLib.InvalidSelfCloseTags, '$1></$2>' ) ; 320 322 321 323 html = FCK.ProtectEvents( html ) ; 322 324 html = FCK.ProtectUrls( html ) ; … … 332 334 html = html.replace( FCKRegexLib.EmCloser, '<\/i>' ) ; 333 335 } 334 336 335 337 this._ForceResetIsDirty = ( resetIsDirty === true ) ; 336 338 … … 430 432 // Removes the enter key handler. 431 433 FCK.EnterKeyHandler = null ; 432 434 433 435 if ( resetIsDirty ) 434 436 this.ResetIsDirty() ; … … 570 572 571 573 FCK.SetHTML( sHtml, !bIsDirty ) ; 572 574 573 575 // Set the Focus. 574 576 FCK.Focus() ; … … 644 646 // Listen for keystroke events. 645 647 FCK.KeystrokeHandler.AttachToElement( FCK.EditorDocument ) ; 646 648 647 649 if ( FCK._ForceResetIsDirty ) 648 650 FCK.ResetIsDirty() ; 649 651 650 652 // This is a tricky thing for IE. In some cases, even if the cursor is 651 653 // blinking in the editing, the keystroke handler doesn't catch keyboard -
FCKeditor/trunk/editor/_source/internals/fckregexlib.js
r210 r217 60 60 61 61 // Empty elements may be <p></p> or even a simple opening <p> (see #211). 62 EmptyParagraph : /^<([^ >]+)[^>]*>\s*(<\/\1>)?$/i , 62 EmptyParagraph : /^<([^ >]+)[^>]*>\s*(<\/\1>)?$/ , 63 64 EmptyOutParagraph : /^<([^ >]+)[^>]*>(?:\s*| )(<\/\1>)?$/ , 63 65 64 66 TagBody : /></ , -
FCKeditor/trunk/_whatsnew.html
r214 r217 117 117 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/190">#190</a>] Toolbars 118 118 may be wrongly positioned. Fixed.</li> 119 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/254">#254</a>] The IgnoreEmptyParagraphValue 120 setting is now correctly handled in Firefox.</li> 119 121 </ul> 120 122 <h3>