﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11138	insertHtml not inserting images in CKEditor content.	Ameya Sohoni		"I am using the following code in order to insert the image, but image is not getting inserted in content.

insertHtml = function( objectId, stContent, position ) {
  var editor = CKEDITOR.instances[objectId];
  if( editor.mode = 'wysiwyg' ) {
    editor.insertHtml( strContent ); 
    CKEDITOR.instances[objectId].updateElement();
    var instance = CKEDITOR.instances[objectId];
    CKEDITOR.replace( objectId );
  } else {
    alert( 'You must be in WYSIWYG mode.' );  
  }
}

but after doing this it is giving me this error.
Uncaught the editor instance ""XYZ for example"" is already attached to the provided element."	Bug	closed	Normal		General		invalid		
