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

Problem when set html value in editor

3 Answers 116 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eugenio
Top achievements
Rank 1
Eugenio asked on 11 Apr 2012, 05:14 AM
Hi, 
I have a problem when set editor value with html string. The editor html output is different. Using Chrome work fine, but using IE8 not work.
I try this in the demo page (custom tools) and have the same problem.
I did several tests and I think the cause is tag <embed> and in Iframes replace "src" property with "originalsrc".

The code used is:

Example 1:
The editor replace "src" property with "originalsrc".

$('#editor').data('tEditor').value('<iframe src="http://www.clarin.com" />');

editor html output: 

<iframe originalsrc="http://www.clarin.com"></iframe>   --> replace "src" by "originalsrc"


Example 2:
The editor change position of tag <embed> and add property "altHtml" 


$('#editor').data('tEditor').value($('#textbox').val());


textbox value:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="800" width="500">
<param name="name" value="Cursos" />
<param name="FlashVars" value="aut=36" />
<param name="bgcolor" value="#ffffff" />
<param name="align" value="middle" />
<param name="src" value="http://www.sintagmas.com.ar/AdelaidaIgooh.swf"/>
<embed height="800" width="500" type="application/x-shockwave-flash"bgcolor="#ffffff" src="http://www.sintagmas.com.ar/AdelaidaIgooh.swf"flashvars="aut=36" demas="" parametros=""></embed>
</object>

editor html output:
<object altHtml="

<embed height="800" width="500" type="application/x-shockwave-flash"bgcolor="#ffffff" originalsrc="http://www.sintagmas.com.ar/AdelaidaIgooh.swf"flashvars="aut=36" demas="" parametros="" />" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="800" width="500"><param name="name" value="Cursos" /><param name="FlashVars" value="aut=36" /><param name="bgcolor" value="#ffffff" /><param name="align" value="middle" /><param name="src" value="http://www.sintagmas.com.ar/AdelaidaIgooh.swf" /></object>





Thanks for your help 
Eugenio

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Apr 2012, 03:11 PM
Hi Eugenio,

Thanks for reporting these issues, both of which are caused by unexpected browser behavior (fixed in IE9). The first one is easy to fix. The second one seems to require some more research, but we will try to address it appropriately.

I have updated your Telerik points.

Kind regards,
Dimo
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Eugenio
Top achievements
Rank 1
answered on 17 Apr 2012, 10:05 PM
Ok, thank for your reply.

Eugenio
0
Dimo
Telerik team
answered on 05 Jun 2012, 01:32 PM
Hello again,

I would just like to follow up that the fixes for both problems will be included in the coming Q2 release, due this week.

Regards,
Dimo
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Editor
Asked by
Eugenio
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Eugenio
Top achievements
Rank 1
Share this question
or