Insert External Video

7 posts, 0 answers
  1. Mattias Moberg
    Mattias Moberg avatar
    18 posts
    Member since:
    Aug 2009

    Posted 08 Jan 2012 Link to this post

    Hi.
    Im using Version 2010.2.929.40.
    Is there any way to get hand on Insert External Video to add as Custom Dialog for the editor ?
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 09 Jan 2012 Link to this post

    Hi,

    The Insert External Video tool is one of the major new features in the Q3 2011 (version 2011.3.1115) release. As being a part of the new controls bundle, its code cannot be used with earlier releases or extracted and used as a custom dialog.


    Kind regards,
    Rumen
    the Telerik team
    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 their blog feed now
  3. Joss
    Joss avatar
    3 posts
    Member since:
    Jun 2010

    Posted 11 Apr 2012 Link to this post

    Hi, we've just bought the full ASP.NET AJAX suite of controls, but can't seem to find any documentation on this feature, is it a dialog in the editor?

    Thanks

    Joss


  4. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 11 Apr 2012 Link to this post

    Hi,

    You can find information about the Insert External Video dialog in the following live demo: Dialogs. The tool name is InsertExternalVideo.

    Best regards,
    Rumen
    the Telerik team
    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 their blog feed now.
  5. Joss
    Joss avatar
    3 posts
    Member since:
    Jun 2010

    Posted 11 Apr 2012 Link to this post

    Brilliant Thanks
  6. Harry
    Harry avatar
    7 posts
    Member since:
    Mar 2010

    Posted 17 Apr 2012 Link to this post

    This is a really great feature!
    Great work!
     
    But I miss one important thing:
    The generated code doesn´t have an "wmode=opaque" parameter.
    Due to this the iframe overlays sometimes important page-components, like e.g. menus, context-menus, etc.
    This is an old and well known flash issue.
     
    Is there a way to implement an automatic addition of this parameter, so the generated code would look like this code snippet:

    <iframe width="520" height="293" src="http://www.youtube.com/embed/video_id?wmode=opaque" frameborder="0"></iframe>

    best regards

  7. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 18 Apr 2012 Link to this post

    Hi,

    You can use the OnClientPasteHtml event of RadEditor to modify the iframe's src:

    <telerik:RadEditor runat="server" ID="RadEditor1" ContentFilters="DefaultFilters,MakeUrlsAbsolute" OnClientPasteHtml="OnClientPasteHtml">
        <Tools><telerik:EditorToolGroup><telerik:EditorTool Name="InsertExternalVideo" /></telerik:EditorToolGroup></Tools>
    </telerik:RadEditor>
    <script type="text/javascript">
        function OnClientPasteHtml(sender, args) {
            var commandName = args.get_commandName();
            var value = args.get_value();
                     
            if (commandName == "InsertExternalVideo") {
                alert(value);
                args.set_value(value);
            }
        }
    </script>


    All the best,
    Rumen
    the Telerik team
    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 their blog feed now.
Back to Top