Hi,
We have a custom image upload control to insert images into the editor. The control is launched by the user clicking the image icon on the Prometheus Rad editor toolbar.
The issue we are running into with Internet Explorer is that the image is always inserted at the beginning of the editor content. The expected behavior is for the image to be inserted at the cursor location prior to the user clicking the image insert button on the Rad editor toolbar. Please note that this works as expected in Firefox and the image is inserted at the current cursor position.
We are inserting the image html via a callback function after calling a web service. Below is the callback function that does the image insert:
We have a custom image upload control to insert images into the editor. The control is launched by the user clicking the image icon on the Prometheus Rad editor toolbar.
The issue we are running into with Internet Explorer is that the image is always inserted at the beginning of the editor content. The expected behavior is for the image to be inserted at the cursor location prior to the user clicking the image insert button on the Rad editor toolbar. Please note that this works as expected in Firefox and the image is inserted at the current cursor position.
We are inserting the image html via a callback function after calling a web service. Below is the callback function that does the image insert:
function OnWSRequestComplete(results)
{
// Clean up session variable
var b = '<%= Context.Session["SessionID"] =
Session.SessionID %>';
var editor = $find('ctl00_ctl00_ContentPlaceHolder1_ContentArea_SectionContentEditor_SectionEditor'); //get a reference to the editor
editor.pasteHtml(results[1]);
HideUploadControl('SectionUploadControlWindow');
}