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

[Solved] Javascript Class Flash Manager

3 Answers 112 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 20 Jul 2009, 10:15 AM
Hi

I am loong for a way to call the Flash manager Dialog from the editor through a Javascript method. I have tried the fire command and it works for image and document manager but i need it to work for the flash and media manager aswel.

Thank you

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 22 Jul 2009, 02:42 PM
Hi Stuart,

Please, use the solution provided in the following forum thread: http://www.telerik.com/community/forums/aspnet-ajax/editor/standalone-image-dialog-startup-properties.aspx

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Stuart
Top achievements
Rank 1
answered on 11 Aug 2009, 11:32 AM
i would still liek to keep the editor, i just want to call these from external buttons.
0
Accepted
Rumen
Telerik team
answered on 12 Aug 2009, 11:17 AM
Hello Stuart,

Here is an example demonstrating how to launch the editor's dialogs from external buttons using the fire method:

<telerik:RadEditor ID="RadEditor1" runat="server"
    <ImageManager ViewPaths="~/" UploadPaths="~/" /> 
    <DocumentManager ViewPaths="~/" UploadPaths="~/" /> 
    <MediaManager ViewPaths="~/" UploadPaths="~/" /> 
    <FlashManager ViewPaths="~/" UploadPaths="~/" /> 
</telerik:RadEditor> 
<input type="button" onclick="OpenManager('ImageManager');return false;" value="Image Manager" /> 
<input type="button" onclick="OpenManager('DocumentManager');return false;" value="Document Manager" /> 
<input type="button" onclick="OpenManager('MediaManager');return false;" value="Media Manager" /> 
<input type="button" onclick="OpenManager('FlashManager');return false;" value="Flash Manager" /> 
<script type="text/javascript"
    function OpenManager(manager) 
    { 
        var editor = $find("RadEditor1"); 
        editor.fire(manager); 
    } 
</script> 


All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Stuart
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Stuart
Top achievements
Rank 1
Share this question
or