﻿var editor1ClientObject = null;
RadEditorCommandList["ImageLink"] =
function anon(commandName, editor, oTool)
{
	editor1ClientObject = editor;
	editor.ShowDialog(
		"../RadControls/Editor/JamSaiImageLink.htm"
		, null//argument
		, 350
		, 50
		, callBackFunctionPtr
		, null
		, "Image Link");
};

function callBackFunctionPtr(returnValue)
{
	if (returnValue)
	{
		editor1ClientObject.PasteHtml('<img src="' + returnValue + '" alt="" />');
	}
}