rad editor button

2 posts, 0 answers
  1. Troika
    Troika avatar
    101 posts
    Member since:
    Feb 2013

    Posted 20 Jul 2013 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    13849 posts

    Posted 24 Jul 2013 Link to this post

    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.
Back to Top