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

[Solved] rad editor button

1 Answer 86 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Troika
Top achievements
Rank 1
Troika asked on 20 Jul 2013, 05:45 PM
i need the button insert external vĂ­deo with the other default buttons also,
so i put the toolname in the toolsfile.xml then when the rad editor loads i got a js error saying access denied, if i make it by code directly it resets the toolbar buttons

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Jul 2013, 11:47 AM
Hi,

Does the error pop up when loading the Insert External Video tool from the code behind?

To keep the built-in toolbar buttons you should execute the EnsureToolsFileLoaded() method before adding the new button, e.g.

RadEditor1.EnsureToolsFileLoaded();
EditorTool tool = new EditorTool("InsertExternalVideo");
tool.Type = EditorToolType.Button;
RadEditor1.Tools[0].Tools.Add(tool);

Best regards,
Rumen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Troika
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or