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

Flash in Editor automatically duplicate values

8 Answers 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rizwan
Top achievements
Rank 1
Rizwan asked on 22 Jul 2010, 01:41 PM
Hi
 We are using 2009-1-402-35 version of telerik. Using that please  open Editor, click HTML, Remove text if any and paste this

 


<object height="350" align="middle" width="350" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Test">
<param name="allowScriptAccess" value="always">
<param name="FlashVars" value="dataAge=30&amp;mainCaption=TESTING  (SOME 30 days)">
<param name="allowFullScreen" value="false">
<param name="movie" value="../Test.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed style="vertical-align: middle;" src="../Test.swf" quality="high" bgcolor="#ffffff" name="Test" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="server=dataAge=30&amp;mainCaption=TESTING(SOME 30 days)" width="350" height="350">
</object>

Now Click Design and then click Back HTML and you will notice that All Params are duplicated automatically and originalPath attribute is automatically added. The auto updated Flash tag is below, I have set the first duplicated line bold and you can compare the following lines as well.

<OBJECT id=Test codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=350 align=middle height=350>
<param NAME="allowScriptAccess" VALUE="always"/>
<param NAME="FlashVars" VALUE="dataAge=30&amp;mainCaption=TESTING  (SOME 30 days)"/>
<param NAME="allowFullScreen" VALUE="false"/>
<param NAME="movie" VALUE="../Test.swf"/>
<param NAME="quality" VALUE="high"/>
<param NAME="bgcolor" VALUE="#ffffff"/>

<param name="allowScriptAccess" value="always"/>
<param name="FlashVars" value="dataAge=30&amp;mainCaption=TESTING  (SOME 30 days)"/>
<param name="allowFullScreen" value="false"/>
<param name="movie" value="../Test.swf"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#ffffff"/>

<embed style="vertical-align: middle;" src="../Test.swf" originalAttribute="src" originalPath="../Test.swf" quality="high" bgcolor="#ffffff" name="Test" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="server=dataAge=30&amp;mainCaption=TESTING(SOME 30 days)" width="350" height="350">
</OBJECT>


We are about to release our current version of application and unable to upgrade to latest version at this time, Any help with this specific telerik version would be highly appreciated.

Best Regards
Rizwan Bashir

8 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jul 2010, 04:42 PM
Hello Rizwan,

I am not aware of this problem in the older version 2009-1-402-35, but my recommendation is to upgrade to the latest one 2010.2 713 where this problem is not reproducible. If you are unable to replicate the problem in the Default Settings demo, please, upgrade and this should solve the problem.

If you still experience any problems with the latest build, please, isolate them in a sample working project and send it via a support ticket with instructions how to reproduce them.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 04 Oct 2010, 06:54 PM
Hi!

This issue can be reproduced in IE8 on the latest version.

Scenario:
1. Open Built-in Content Filters demo (http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx)
2. Disable ConvertToXhtml filter
3. Paste html from above
4. Switch to design and back to html

I cannot enable ConvertToXhtml filter in my solution because with the same scenario it adds attributes like this:
visible="function() {
var a = update([this], arguments);
return __method.apply(null, a);
}" toggle="function() {
var a = update([this], arguments);
return __method.apply(null, a);
}" hide="function() {
var a = update([this], arguments);
return __method.apply(null, a);
}"


0
Rumen
Telerik team
answered on 05 Oct 2010, 01:55 PM
Hi Michael,

The content area of RadEditor is an editable IFRAME element which uses the Rich Text Editing engine of the browser to render and produce HTML content. There are multiple browser problems that are fixed by the editor's content filter and once of them is the reported one by you.
It is the ConvertToXhtml filter of RadEditor that corrects the object / embed tags and keeps them unchanged by the browser.

I made a test with the provided content with enabled ConvertToXhtml filter, but I was unable to reproduce the problem with addition of visible attributes. You can see my test at: http://screencast.com/t/uQWyf5Zw. Are you able to reproduce it in the ContentFilters demo?

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 25 Oct 2010, 01:37 PM
Hi Rumen!

This issue can be reproduced on Default Settings demo(http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx)
0
Rumen
Telerik team
answered on 25 Oct 2010, 01:49 PM
Hello Michael,

Can you please provide sample HTML content so that we can reproduce the problem on our end? It would be also very helpful to record your scenario with Jing and show the video demonstrating the problem.

Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 25 Oct 2010, 02:44 PM
Hi Rumen!

The flash example:
<object width="320" height="145" id="msnbc516426" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="movie" value="http://www.msnbc.msn.com/id/32545640"><param name="FlashVars" value="launch=36002627&width=320&height=145"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="wmode" value="opaque" /><embed name="msnbc516426" src="http://www.msnbc.msn.com/id/32545640" width="320" height="145" FlashVars="launch=36002627&width=320&height=145" allowscriptaccess="always" allowFullScreen="true" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>

The video:
http://www.screencast.com/t/mRUu1wd03sY
0
Rumen
Telerik team
answered on 27 Oct 2010, 01:30 PM
Hello Michael,

Thank you for the video.

I was able to reproduce the problem and was able to solve it by enabling the content filter. Please, enable this filter and this will fix the issue on your end.

Greetings,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 29 Oct 2010, 07:35 AM
Hi Rumen!

Yes, enabling the MakeUrlsAbsolute content filter did the trick.

Thank you.
Tags
Editor
Asked by
Rizwan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Michael
Top achievements
Rank 1
Share this question
or