TinyPortal
Development => Support => Topic started by: Uber_Tiny on January 11, 2007, 05:33:03 AM
So I was fighting with this for around 3 hours trying to figure out what I was doing wrong. Kinda annoyed me a bit today.
My issue is that every time I would place my HTML in TnyMCE it would add code and delete some of mine trying to make it a .swf (flash) video rather than the .wmv (Windows movie). But after fighting with this for many hours I finally decided that maybe I should try a different editor. So instead of using TinyMCE I changed to Whizzywig. This allowed me to place my HTML without it changing anything on it's own.
Is there a reason why it does this?
What I am using:
TP v0.9.6beta
SMF v1.1.1
This is the code I place in TinyMCE
<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="center">
<tr><td>
<OBJECT id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://www.geforce3d.net/forums/stuff/small/small_media/small.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.geforce3d.net/forums/stuff/small/small_media/small.wmv" autostart="true" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded WindowsMedia file -->
<!-- begin link to launch external media player... -->
<tr><td align='center'>
<a href="http://www.geforce3d.net/forums/stuff/small/small_media/small.wmv" style='font-size: 85%;' target='_blank'>Launch in external player</a>
<!-- ...end link to launch external media player... -->
</td></tr>
</table>
This is what it does to it
<!-- begin embedded WindowsMedia file... --> <table cellpadding="0" border="0" align="center"> <tbody><tr><td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="320" height="285"><param name="movie" value="http://www.geforce3d.net/forums/stuff/small/small_media/small.wmv" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="" /><embed src="http://www.geforce3d.net/forums/stuff/small/small_media/small.wmv" wmode="" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="320" height="285"></embed></object> </td></tr> <!-- ...end embedded WindowsMedia file --> <!-- begin link to launch external media player... --> <tr><td align="center"> <a target="_blank" href="http://www.geforce3d.net/forums/stuff/small/small_media/small.wmv">Launch in external player</a> <!-- ...end link to launch external media player... --> </td></tr> </tbody></table>
Sorry about it making the code like that. But that is what TinyMCE does to the code. Not only does it make it a long lin with no <*br> it also try's placing flash BS in it.
Any feed back on this or why it does this would be great.
No feed back, but I should let you know that TinyPortal no longer supports TinyMCE. We have dropped that editor in favor or wysiwyg and FCKeditor.
Gotcha...thanks for the quick reply!