Changeset 1081
- Timestamp:
- 2007-11-15 06:19:37 (2 years ago)
- Location:
- FCKeditor/trunk/editor/_source/internals
- Files:
-
- 2 modified
-
fck_ie.js (modified) (1 diff)
-
fckundo.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck_ie.js
r874 r1081 284 284 sText = FCKTools.ProcessLineBreaks( window, FCKConfig, sText ) ; 285 285 286 var closeTagIndex = sText.search( '</p>' ) ; 287 var startTagIndex = sText.search( '<p>' ) ; 288 289 if ( ( closeTagIndex != -1 && startTagIndex != -1 && closeTagIndex < startTagIndex ) 290 || ( closeTagIndex != -1 && startTagIndex == -1 ) ) 291 { 292 var prefix = sText.substr( 0, closeTagIndex ) ; 293 sText = sText.substr( closeTagIndex + 4 ) ; 294 this.InsertHtml( prefix ) ; 295 } 296 286 297 // Insert the resulting data in the editor. 298 FCKUndo.SaveLocked = true ; 287 299 this.InsertHtml( sText ) ; 300 FCKUndo.SaveLocked = false ; 288 301 } 289 302 } -
FCKeditor/trunk/editor/_source/internals/fckundo.js
r969 r1081 28 28 FCKUndo.MaxTypes = 25 ; 29 29 FCKUndo.Typing = false ; 30 FCKUndo.SaveLocked = false ; 30 31 31 32 FCKUndo._GetBookmark = function() … … 115 116 FCKUndo.SaveUndoStep = function() 116 117 { 117 if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )118 if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG || this.SaveLocked ) 118 119 return ; 119 120