TinyMCE changing "&" to "&"
Permalink
Hello,
I'm trying to use the TinyMCE editor to embed a flash object (its an Mp3 player). I can open the editor, then go edit the HTML source, and paste in the <object> code. The problem is that my swf file needs to have some config vars passed to it, and they are seperated by a "&". It seems that TinyMCE converts it when saving, and then the swf file does not function as expected.
For Example,
<object type="application/x-shockwave-flash" data="/player_mp3_multi.swf" width="400" height="150">
<param name="movie" value="/player_mp3_multi.swf">
<param name="FlashVars" value="config=/config.txt&playlist=/playlist.txt">
Becomes:
<object type="application/x-shockwave-flash" data="/player_mp3_multi.swf" width="400" height="150">
<param name="movie" value="/player_mp3_multi.swf">
<param name="FlashVars" value="config=/config.txt&amp;playlist=/playlist.txt">
</object>
Any idea how I can get around this?
I'm trying to use the TinyMCE editor to embed a flash object (its an Mp3 player). I can open the editor, then go edit the HTML source, and paste in the <object> code. The problem is that my swf file needs to have some config vars passed to it, and they are seperated by a "&". It seems that TinyMCE converts it when saving, and then the swf file does not function as expected.
For Example,
<object type="application/x-shockwave-flash" data="/player_mp3_multi.swf" width="400" height="150">
<param name="movie" value="/player_mp3_multi.swf">
<param name="FlashVars" value="config=/config.txt&playlist=/playlist.txt">
Becomes:
<object type="application/x-shockwave-flash" data="/player_mp3_multi.swf" width="400" height="150">
<param name="movie" value="/player_mp3_multi.swf">
<param name="FlashVars" value="config=/config.txt&amp;playlist=/playlist.txt">
</object>
Any idea how I can get around this?
Becomes
[code]
<object type="application/x-shockwave-flash" data="/player_mp3_multi.swf" width="400" height="150">
<param name="movie" value="/player_mp3_multi.swf">
<param name="FlashVars" value="config=config.txt&playlist=play.txt">
</object>