In our application, we want to force users to fill the tooltips in the Image manager and link manager. The link manager is pretty straightforward I just changed the code in the LinkManager.axcx ( see following )
_insertClickHandler:
function(e)
{
var modifiedLink = this.getModifiedLink();
if (modifiedLink.title != "") {
var args = new Telerik.Web.UI.EditorCommandEventArgs("LinkManager", null, modifiedLink);
//backwards compatibility
args.realLink = modifiedLink;
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(args);
}
//added codes here
else {
alert(
'please fill the Tooltip field');
$telerik.cancelRawEvent(e);
}
},
But in the ImageManager.axcx, I cannot find the same method. I checked the code and I found the SetImageProperties.axcx have the same method but the method is not added to the insert button event handler.
Please help me out here.
Thanks