I am using SilverStripe 2.4.1. It doesn't seem to matter what I do tinyMCE always strips my quicktime videos down to a flash object. I have a client that insists that his videos be Quicktime for the iPhone and iPad. As you can see below I've added the media plugin, and it doesn't matter if I add it through that or HTML.
This is the code I'm trying to put in:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="540" height="376" >
<param name="src" value="assets/movs/AU-3.mov" >
<param name="autoplay" value="true">QuickTime Movie
<embed src="assets/movs/AU-3.mov" type="image/x-macpaint"
pluginspage="http://www.apple.com/quicktime/download" width="540" height="376" autoplay="true">QuickTime Movie</embed>
</object>
If I add it via HTML and than reopen the HTML window it's stripped to this:
<object width="540" height="376">
<param name="src" value="assets/movs/AU-3.mov"/>
<param name="autoplay" value="true"/>
<embed type="video/quicktime" width="540" height="376" src="assets/movs/AU-3.mov" autoplay="true"/>
</object>
If I add it via the media plugin and open up the HTML there is this:
<object width="540" height="376">
<param name="src" value="assets/movs/AU-3.mov" /><embed type="video/quicktime" width="540" height="376" src="assets/movs/AU-3.mov"> </embed>
</object>
As soon as I hit save and publish it turns into flash object. With the proceeding HTML being what's live and if I save again or look at the HTML it's reduced to this:
<object width="540" height="376" data="assets/movs/AU-3.mov" type="application/x-shockwave-flash">
<param name="src" value="assets/movs/AU-3.mov" />
</object>
I have tried everything I can find on the forum. These are all the different settings in the /mysite/_config.php I've tried:
HtmlEditorConfig::get('cms')->setOption('apply_source_formatting', 'false');
HtmlEditorConfig::get('cms')->setOption('verify_html', 'false');
HtmlEditorConfig::get('cms')->setOption('valid_elements', 'all the elements needed plus what ever is used throughout the site ');
HtmlEditorConfig::get('cms')->enablePlugins('../sapphire/thirdparty/tinymce/plugins/media');
HtmlEditorConfig::get('cms')->insertButtonsAfter('charmap', 'media');
Please let me know if you have any insight as to why it is behaving like this. This is really frustrating. Thanks