Ticket #2113: 2113_4.patch
File 2113_4.patch, 2.6 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
61 61 IE6 bug which causes floating dialogs to appear blank after opening it for the first time.</li> 62 62 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2136">#2136</a>] Fixed JavaScript error in IE 63 63 when opening the bullet list properties dialog.</li> 64 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2113">#2113</a>] Fixed unneeded <span 65 class="Apple-style-span"> created after inserting special characters.</li> 64 66 </ul> 65 67 <h3> 66 68 Version 2.6</h3> -
editor/_source/internals/fck_gecko.js
361 361 this.EditorDocument.execCommand( 'inserthtml', false, html ) ; 362 362 this.Focus() ; 363 363 364 // Save the caret position before calling document processor. 365 var range = new FCKDomRange( this.EditorWindow ) ; 366 range.MoveToSelection() ; 367 var bookmark = range.CreateBookmark() ; 368 364 369 FCKDocumentProcessor.Process( FCK.EditorDocument ) ; 365 370 371 // Restore caret position, ignore any errors in case the document 372 // processor removed the bookmark <span>s for some reason. 373 try 374 { 375 range.MoveToBookmark( bookmark ) ; 376 range.Select() ; 377 } 378 catch ( e ) {} 379 366 380 // For some strange reason the SaveUndoStep() call doesn't activate the undo button at the first InsertHtml() call. 367 381 this.Events.FireEvent( "OnSelectionChange" ) ; 368 382 } -
editor/_source/internals/fckdocumentprocessor.js
247 247 fakeImg.className = 'FCK__Flash' ; 248 248 fakeImg.setAttribute( '_fckflash', 'true', 0 ); 249 249 } ) ; 250 251 // Buggy <span class="Apple-style-span"> tags added by Safari. 252 if ( FCKBrowserInfo.IsSafari ) 253 { 254 FCKDocumentProcessor.AppendNew().ProcessDocument = function( doc ) 255 { 256 var spans = doc.getElementsByClassName ? 257 doc.getElementsByClassName( 'Apple-style-span' ) : 258 Array.prototype.filter.call( 259 doc.getElementsByTagName( 'span' ), 260 function( item ){ return item.className == 'Apple-style-span' ; } 261 ) ; 262 for ( var i = spans.length - 1 ; i >= 0 ; i-- ) 263 FCKDomTools.RemoveNode( spans[i], true ) ; 264 } 265 }