Hello,
I'm trying to add a button to the Image Manager of the RadEditor that opens a window with a Image CMS url and then refreshes the directory content.
Better would actually be to override the Upload button. I tried this, but got two windows as "args.set_cancel(true);" wasn't recognised.
I would appreciate any help you could give me in this matter.
Thank you.
Paul Herzberg
I'm trying to add a button to the Image Manager of the RadEditor that opens a window with a Image CMS url and then refreshes the directory content.
Better would actually be to override the Upload button. I tried this, but got two windows as "args.set_cancel(true);" wasn't recognised.
function toolbarClicked(toolbar, args) {
var buttonValue = args.get_item().get_value();
if (buttonValue == 'Upload')
{
var wnd = window.radopen("./ComplexControls/Editor/EditorDialogs/Img.aspx", null);
wnd.setSize(400, 400);
args.set_cancel(true);
}
}
I would appreciate any help you could give me in this matter.
Thank you.
Paul Herzberg