Page 1 of 1

flash weirdness

Posted: Sun Jan 02, 2005 12:55 pm
by uptoeleven
Hi,

This is slightly OT as I can't work out if the problem is with TinyMCE or CMS. My suspicion is that it's to do with the way they're tied together.

When I add a flash movie in CMS instead of a movie, an image tag appears, thus:
Now from my reading of the source code it looks like the tag is supposed to get dynamically replaced but not only is this not happening, it's not throwing an error either (as far as I can see) - all that happens is when I view the page the image tag is still there as though I'd inserted an image.

I'm using Firefox 1.0 on Win XP but it also fails in IE 6.0

As I am not completely sure what is supposed to happen I don't know where to begin trying to trace the problem. Does anyone else experience the same?[/quote]

that and the race conditions

Posted: Sun Jan 02, 2005 9:03 pm
by uptoeleven
that and the race conditions which mean that if I post a lot of badly formed html (such as what comes out of Microsoft

Office) it doesn't always get to the database. Sloppy. Mind you maybe it's just that javascript isn't thread-safe

flash weirdness

Posted: Sun Jan 02, 2005 11:27 pm
by uptoeleven
This changes the image to the right path.

But it still doesn't fix the fact that there is no flash object being inserted.

Can anyone get it to work? Can you insert flash into your content using the flash insert in TinyMCE? If so, how?

flash weirdness

Posted: Mon Jan 03, 2005 12:10 am
by Greg
Hi

Wishy it looks like we need all the code in tintmce/modulefunctions.php at line 56:

Code: Select all

theme : "advanced",
theme_advanced_toolbar_location: "top",
verify_html: "false",
plugins : "advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,ibrowser",
theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,ibrowser",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
When I inserted this the flash module works correctly. This is the same code as the advanced example on the tinymce website.

it works!!!

Posted: Mon Jan 03, 2005 3:23 am
by uptoeleven
Brill,

It works! Thanks very much!

Now I can go back to what I was doing before - making a clone of bulletmenu that can do this.

flash weirdness

Posted: Mon Jan 03, 2005 3:29 am
by Ted
I can't wait to see that...

flash weirdness

Posted: Mon Jan 03, 2005 1:00 pm
by Greg
Here is a similar one that I run on some of my plain html sites
Go Here

gave up

Posted: Tue Jan 04, 2005 2:23 pm
by uptoeleven
it's a big nasty faff and taking far too much time. There are already solutions out there that do the same thing but don't need me to reinvent the wheel, I'll use Greg's solution.