This question is locked. New answers and comments are not allowed.
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 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"
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
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 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