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

RadEditor Flash Detection Issue

2 Answers 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lori
Top achievements
Rank 1
Lori asked on 25 Feb 2009, 10:00 PM
We created a website for one of our clients using the AspDotNetStorefront which includes the RadEditor in the admin portal for managing page content on the site.

We are running into an issue of Flash plugin detection on the home page using the Flash Manager feature in the RadEditor.  I put in a forum post on the AspdotNetStorefront site but no one has replied to it (http://forums.aspdotnetstorefront.com/showthread.php?t=15901).  I thought maybe you could help since it is your component.

We were originally using the following code using the SWFObject which detects the version of the Flash plugin or the absence of a plugin altogether:

<!-- FLASH -->
<div id="main-flash">
<!-- Flash not installed -->
<a href="http://get.adobe.com/flashplayer/" target="_blank"><img src="images/NoFlash.gif" width="960px" height="380px" /></a>
</div>
<script type="text/javascript">
var so = new SWFObject("images/flash/Intro.swf", "sotester", "960", "380", "9", "#ffffff" );
so.addParam("wmode", "opaque");
so.write("main-flash");
</script>
<!-- END FLASH -->

But in order for the client to be able to change the content themselves in the RadEditor they need to use the Flash Manager which adds a flash file to the rich content area in an embed tag as seen below.  

<embed pluginspage=http://www.macromedia.com/go/getflashplayer align=baseline src=/images/flash/NewIntro.swf width=960 height=380 type=application/x-shockwave-flash bgcolor="" salign="LT" quality="high" menu="false" loop="false"></embed>

Well, once in an embed tag, the SWFobject code no longer works and there is no flash detection.  So what i need to know is can we modify the RadEditor code to be able to spit the HTML out in the format of the code I included first above?  And if so, where would we do that since the storefront only contains the Editor .ascx pages and a RadEditor.Net2.dll

Any help on this would be much appreciated! we were on a client deadline to put this live today and now we are in a jam.  Thank you so much if you can help!

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 27 Feb 2009, 05:20 PM
Hello Lori,

We are currently trying to contact the AspDotNetStorefront maker for additional information on how they are using the RadEditor inside their system and what version is being used.

The .dll name indicates that the system uses RadEditor Classic - which belongs to the RadControls Classic suite that we are gradually phasing out. The successor to RadControls classic called RadControls for ASP.NET AJAX was officially launched one year ago. At present only occasional updates are released for RadControls Classic - and in situations such as this one it is sometimes difficult or even impossible to help people that are having trouble with a Classic control.

In your case it looks like there is a fair chance to get things to work. RadEditor (both the Classic and the ASP.NET AJAX versions) allow for modifying the dialogs and changing their logic. Hence, in your case you should edit the dialog and change the string that it returns to the RadEditor - from its current format, to the format you need.

Alternatively, you can develop your own FlashManager dialog and "replace" the FlashManager command completely.

Please examine the following links for extra information on how to modify the built-in editor's dialogs:
Inserting images with predefined attributes via the Image Manager and
Inserting OBJECT tags via the Media Manager.

If you decide to create a custom dialog use the information provided in the following resources
Adding Custom Dialogs and
Custom Dialogs help article.

Good luck,
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
Lori
Top achievements
Rank 1
answered on 27 Feb 2009, 06:47 PM
Thank you so much for the reply on this, it is very helpful!  No one from AspDotNetStorefront even took the time to reply to me.  Thanks again!
Tags
Editor
Asked by
Lori
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Lori
Top achievements
Rank 1
Share this question
or