Archive for March 26th, 2008

tinymce and Windows Media

Wednesday, March 26th, 2008

I submitted this bug to TinyMCE

.. but I thought I’d repost it just to be sure the word got out…

Description of problem: Windows Media will not play on the latest version of TinyMCE found here in IE, however it works in FireFox

Steps to reproduce:
1. in IE7, go to that webpage
2. click on Embed Media
3. change the type to Windows Media
4. select sample.avi under the Media folder
5. click ok and Submit

the generated code contains the line:

<param name=”src” value=”tinymce/jscripts/tiny_mce/plugins/imagemanager/files/media/sample.avi” />

this is the incorrect parameter for the CSID
6BF52A52-394A-11D3-B153-00C04F79FAA6 .. the parameter is URL not SRC.. so

<param name=”url” value=”tinymce/jscripts/tiny_mce/plugins/imagemanager/files/media/sample.avi” />

works

the fix….. in editor_plugin.jschange

if(n==’src’&&p[n].indexOf(‘://’)!=-1&&mt==’application/x-mplayer2′)

to

if(n==’src’&&mt==’application/x-mplayer2′)

this will always insert the URL parameter for Windows Media