This is a migrated thread and some comments may be shown as answers.

[Solved] Help Tool in Editor

1 Answer 142 Views
Editor
This is a migrated thread and some comments may be shown as answers.
meyammai
Top achievements
Rank 1
meyammai asked on 14 Mar 2008, 04:18 PM

Hi,

Im using Promethus editor and i have help tool in the toolbar. If i click the help,  it is opening a new window with defualt content. If i would like to add our own customized content, could you pls tell me the way to add the content in the help window of editor.

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Mar 2008, 05:02 PM
Hi Meyammai,

Here is how to overwrite the Help command and implement quickly a help dialog in RadEditor "Prometheus":

In the aspx file overwrite the Help command:

<telerik:radeditor runat="server" ID="RadEditor1">
<Tools>
    <telerik:EditorToolGroup>
        <telerik:EditorTool Name="Help" />
    </telerik:EditorToolGroup>
</Tools>
</telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList["Help"] = function(commandName, editor, args)
{  
   editor.showDialog("HelpDialog", {}, null);
};
</script>

In the codebehind put the following code:

using Telerik.Web.UI;

    protected void Page_Load(object sender, EventArgs e)
    {
        DialogDefinition HelpDialog = new DialogDefinition("./HelpDialog.ascx", new DialogParameters());

        HelpDialog.Modal = true;
        HelpDialog.VisibleTitlebar = true;
        HelpDialog.VisibleStatusbar = true;
        HelpDialog.Width = Unit.Pixel(400);
        HelpDialog.Height = Unit.Pixel(470);
        RadEditor1.AddDialogDefinition("HelpDialog", HelpDialog);
    }
 

Download the attached zipped folder with icons here in the root of your web application. Finally, download the Help.ascx dialog from here.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
meyammai
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or