With tips from your online resources, I managed to get proportional resizing done in RadEditor Classic, by hooking some JavaScript onto "oncontrolselect".
I'm now trying to apply the same style of code to RadEditor ASP.NET AJAX, but with no success yet. I've replaced the AttachEvenHandler line with
Before I start digging this out: is the oncontrolselect event still available? Am I hooking correctly? Is there something else I might be overseeing?
editor.AttachEventHandler("oncontrolselect", function() |
{ |
// Introduce small delay |
window.setTimeout(function() |
{ |
// 1. Check if we have an image, |
// 2. Get it's original dimensions and |
// 3. install "onresizeend"-handler to constrains proportions |
}, 100); |
}); |
I'm now trying to apply the same style of code to RadEditor ASP.NET AJAX, but with no success yet. I've replaced the AttachEvenHandler line with
$telerik.addExternalHandler(editor.get_document().body, "oncontrolselect", function() |
{ |
// ... |
}); |
Before I start digging this out: is the oncontrolselect event still available? Am I hooking correctly? Is there something else I might be overseeing?