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

Insert External Video

6 Answers 125 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mattias Moberg
Top achievements
Rank 1
Mattias Moberg asked on 08 Jan 2012, 05:59 PM
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 ?

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Jan 2012, 04:39 PM
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
0
Joss
Top achievements
Rank 1
answered on 11 Apr 2012, 01:49 PM
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


0
Rumen
Telerik team
answered on 11 Apr 2012, 02:07 PM
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.
0
Joss
Top achievements
Rank 1
answered on 11 Apr 2012, 02:21 PM
Brilliant Thanks
0
Harry
Top achievements
Rank 1
answered on 17 Apr 2012, 02:39 PM

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

0
Rumen
Telerik team
answered on 18 Apr 2012, 04:36 PM
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.
Tags
Editor
Asked by
Mattias Moberg
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Joss
Top achievements
Rank 1
Harry
Top achievements
Rank 1
Share this question
or