A directory of browser-based WYSIWYG editors


Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
Flash problems

The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.



Jan 8, 2005, 3:36 AM

Post #1 of 5 (5837 views)
Flash problems Can't Post

The HTML needed to properly display Flash is an object with an embed in it, like so:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="463" height="421" id="myMovie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="myMovie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#134a82" />
<embed src="myMovie.swf" quality="high" bgcolor="#134a82" width="463" height="421" name="myMovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="" />

The object description is for IE, the embed is for Mozilla. The Object is more useful, because it alerts IE users if they need to download the Flash player, or a new version of the player.

htmlArea removes the embed from the object. This prevents the movie from being visible to Mozilla users.

If they are one after another and not nested, htmlArea leaves them alone, but then IE displays the movie twice. If only the embed tag is used, newer versions of IE show the movie, but the plugin notification functionality is lost.

How could I modify htmlArea to not remove the embed from the object?

There is another Mozilla wysiwyg editor ( , click on "examples/demo", then "full featured examples") that has no problem with this, and even has an insert Flash plugin. How could I do this with htmlArea? The code generated by tinymce's Flash plugin looks like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,40,0" width="200" height="100">
<param name="quality" value="high" />
<param name="menu" value="false" />
<embed quality="high" type="application/x-shockwave-flash" pluginspace="" width="200" height="100" src="myFlash.swf">

but if I paste this into htmlArea I get:

<object codebase=",0,40,0" height="100" width="200" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="high" name="quality" /><param value="false" name="menu" /></object>

The embed is gone!


Jan 8, 2005, 12:04 PM

Post #2 of 5 (5830 views)
Re: [mharrisonline] Flash problems [In reply to] Can't Post

If you have a look at how tinyMCE does it (in the flash plugin) you'll see it's not that easy. Just glancing at thier code it looks like it uses placeholder images and such then translates those to the appropriate embed code when it is saved.

There is 693 lines of code in just that plugin!

James Sleeman
PHP Programmer


Jan 10, 2005, 11:06 PM

Post #3 of 5 (5777 views)
Re: [sleemanj] Flash problems [In reply to] Can't Post

I suppose I could try to just convert the obect/embed HTM to a javascript variable and do a document write, but that wouldn't keep it from corrupting any normal Flash embeds it ran into... Frown

New User

Jan 11, 2005, 8:31 AM

Post #4 of 5 (5765 views)
Re: [mharrisonline] Flash problems [In reply to] Can't Post


you just need:

<object data="yourfile.swf" type="application/x-shockwave-flash" width="240" height="64"> 
<param name="movie" value="yourfile.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="bgcolor" value="#CCCCCC" />
<param name="flashvars" value="" />

This works with mozilla, operea and ie


Jan 11, 2005, 11:30 AM

Post #5 of 5 (5753 views)
Re: [dunerecords] Flash problems [In reply to] Can't Post

Hey, thanks! That actually works!

But, so does

<embed name="yourfile" pluginspage="" src="yourfile.swf" width="240" height="64" type="application/x-shockwave-flash" quality="high" bgcolor="#cccccc" allowscriptaccess="sameDomain" scale="noscale" />

I found that if I try to add the missing version information to either, it wouldn't play in Mozilla.

(This post was edited by mharrisonline on Jan 11, 2005, 2:11 PM)


Search for (options)