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
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.