The following example shows a Paste Options button that provides a drop down of the RadEditor’s advanced paste functionality (Paste, Paste from Word, Paste from word strip font, paste plain text, past as html). With the default toolset radio button selected. Can anyone suggest an approach to achieve this functionality?
Kyle http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx
5 Answers, 1 is accepted
If you want to create similar button/dropdown,you can use the code below:
<telerik:RadEditor ID="RadEditor1" runat="server"> |
<Tools> |
<telerik:EditorToolGroup> |
<telerik:EditorToolStrip Name="Bold"> |
<telerik:EditorTool Name="Bold" /> |
<telerik:EditorTool Name="Italic" /> |
</telerik:EditorToolStrip> |
</telerik:EditorToolGroup> |
</Tools> |
</telerik:RadEditor> |
Thanks for the approach can this be accomplished in the tools file?
Kyle
Please review the following Help article that shows how to achieve the desired behavior:
http://www.telerik.com/help/aspnet-ajax/createtoolstrip.html
I hope this helps.
Sincerely,
George
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have created the following tools file. It does not render a tool strip. Any coments?
<root>
<modules>
</modules>
<tools name="TestGroup1" dockable="true" enabled="true">
<EditorToolStrip Name="Apply Formatting">
<EditorTool Name="Bold" />
<EditorTool Name="Italic" />
<EditorTool Name="Underline" />
</EditorToolStrip>
</tools>
<links>
</links>
<snippets>
</snippets>
<symbols>
</symbols>
<fontNames>
</fontNames>
<fontSizes>
</fontSizes>
<colors>
</colors>
<classes>
</classes>
<paragraphs>
</paragraphs>
<dialogParameters>
</dialogParameters>
<languages>
</languages>
</root>
Please, make sure that you are using RadEditor for ASP.NET AJAX, because the solution for RadEditor Classic is other.
I made a test using the provided ToolsFile content and I was able to create a ToolStrip element in the toolbar. You can see my test in the attached video as well as test my sample project. Am I missing something?
Kind regards,
Rumen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.