Ticket #4764: 4764.patch
File 4764.patch, 948 bytes (added by , 15 years ago) |
---|
-
_source/core/editor_basic.js
131 131 */ 132 132 CKEDITOR.editor.appendTo = function( elementOrId, config ) 133 133 { 134 if ( typeof elementOrId != 'object' ) 134 var element = elementOrId; 135 if ( typeof element != 'object' ) 135 136 { 136 element OrId= document.getElementById( elementOrId );137 element = document.getElementById( elementOrId ); 137 138 138 if ( !elementOrId)139 if( !element ) 139 140 throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.'; 140 141 } 141 142 142 143 // Create the editor instance. 143 return new CKEDITOR.editor( config, element OrId, CKEDITOR.ELEMENT_MODE_APPENDTO );144 return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO ); 144 145 }; 145 146 146 147 CKEDITOR.editor.prototype =