Hi,
I am using a rad editor with custom dialogs based on your demo: http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx
I am calling: showExternalDialog() and I give showStatusbar = false,
but I still get the status bar in my radwindow.
here is my code:
Telerik.Web.UI.Editor.CommandList["LinkManager"] = function(commandName, editor, args) {
var elem = editor.getSelectedElement(); //returns the selected element.
if (elem.tagName == "A") {
editor.selectElement(elem);
argument = elem;
}
else {
//remove links if present from the current selection - because of JS error thrown in IE
editor.fire("Unlink");
//remove Unlink command from the undo/redo list
var commandsManager = editor.get_commandsManager();
var commandIndex = commandsManager.getCommandsToUndo().length - 1;
commandsManager.removeCommandAt(commandIndex);
var content = editor.getSelectionHtml();
var link = editor.get_document().createElement("A");
link.innerHTML = content;
argument = link;
}
var myCallbackFunction = function(sender, args) {
editor.pasteHtml(String.format("<a href={0}>{1}</a> ", args.href, args.name))
}
editor.showExternalDialog(
'InsertLink.aspx',
argument,
400,
220,
myCallbackFunction,
null,
'Insert Link',
true,
Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
false,
true);
};
Do you have any idea why?
Is there any workaround to prevent the status bar from showing?
Thanks.
I am using a rad editor with custom dialogs based on your demo: http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx
I am calling: showExternalDialog() and I give showStatusbar = false,
but I still get the status bar in my radwindow.
here is my code:
Telerik.Web.UI.Editor.CommandList["LinkManager"] = function(commandName, editor, args) {
var elem = editor.getSelectedElement(); //returns the selected element.
if (elem.tagName == "A") {
editor.selectElement(elem);
argument = elem;
}
else {
//remove links if present from the current selection - because of JS error thrown in IE
editor.fire("Unlink");
//remove Unlink command from the undo/redo list
var commandsManager = editor.get_commandsManager();
var commandIndex = commandsManager.getCommandsToUndo().length - 1;
commandsManager.removeCommandAt(commandIndex);
var content = editor.getSelectionHtml();
var link = editor.get_document().createElement("A");
link.innerHTML = content;
argument = link;
}
var myCallbackFunction = function(sender, args) {
editor.pasteHtml(String.format("<a href={0}>{1}</a> ", args.href, args.name))
}
editor.showExternalDialog(
'InsertLink.aspx',
argument,
400,
220,
myCallbackFunction,
null,
'Insert Link',
true,
Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
false,
true);
};
Do you have any idea why?
Is there any workaround to prevent the status bar from showing?
Thanks.