Inserting Flash via the Topic editor breaks the editor

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I'm using Nop v1.8.

I remember in 1.4 there was an insert SWF button, but now there isn't.

When I insert Flash into the Topic (specifically, HomePageText) the editor disappears---the SWF gets displayed on the public site, but I lose the ability to continue editing the HomePageText.

I tried two methods of embedding the swf:  swfobject.js via googleapis, then the standard Object/Embed tag method.  Both methods break the editor.

Further testing revealed that simply typing in an embed tag  (ie, <embed>asdf</embed>) breaks the editor.

Any suggestions?

*************  my swfobject code, pretty standard stuff ************
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<script type="text/javascript">
  var params = {
    quality: "high",
    scale: "noscale",
    wmode: "window",
    allowscriptaccess: "always",
    bgcolor: "#ffffff"
  };
  var flashvars = {};
  var attributes = {id:"flash-deliver-by"};
  swfobject.embedSWF("http://mysite.com/myFlash.swf", "flash-deliver-by", "630", "80", "9.0.124", "expressInstall.swf", flashvars, params, attributes);
</script>
13 years ago
This is what I have done in 1.9 version in the contactus topic and it worked.
I am guessing it should work for 1.8 too:



<embed width="514" height="428" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" src="mystuff.swf" type="application/x-shockwave-flash" quality="high" bgcolor="#ffffff" allowscriptaccess="sameDomain" />
13 years ago
Thanks for the help naimul,

I copy/pasted your self terminating embed tag into the topic (and adjusted my swf info o' course), but it still broke the editor.

If it's working in 1.9 I'm not going to sweat this too much.

Thanks again!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.