Ticket #8226: 8226_2.patch
File 8226_2.patch, 1.9 KB (added by , 12 years ago) |
---|
-
_source/core/dom/element.js
1479 1479 } 1480 1480 } 1481 1481 1482 return $ && new CKEDITOR.dom.document( $.contentWindow.document );1482 return $ && $.contentWindow && new CKEDITOR.dom.document( $.contentWindow.document ); 1483 1483 }, 1484 1484 1485 1485 /** -
_source/core/editor.js
465 465 || getNewName(); 466 466 467 467 if ( this.name in CKEDITOR.instances ) 468 throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.'; 468 { 469 // Check if the editor has been removed from the DOM 470 var previous = CKEDITOR.instances[ this.name ], 471 container = previous.container.$; 472 while ( container && container!=document.body ) 473 container = container.parentNode; 469 474 475 // If it isn't in the document DOM, destroy it silently 476 if ( !container ) 477 previous.destroy( false ); 478 else 479 alert( '[CKEDITOR.editor] The instance "' + this.name + '" already exists.' ); 480 } 470 481 /** 471 482 * A unique random string assigned to each editor instance on the page. 472 483 * @name CKEDITOR.editor.prototype.id -
_source/plugins/wysiwygarea/plugin.js
1032 1032 xmlDeclaration = fullPage && editor.xmlDeclaration, 1033 1033 doc = iframe.getFrameDocument(); 1034 1034 1035 if ( !doc ) 1036 return null; 1037 1035 1038 var data = fullPage 1036 1039 ? doc.getDocumentElement().getOuterHtml() 1037 1040 : doc.getBody().getHtml();