禁用tinymce中的自动moxieplayer包装 [英] Disabling automatic moxieplayer wrap in tinymce

查看:53
本文介绍了禁用tinymce中的自动moxieplayer包装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

=)

我建立了一个功能,可以上传,转换然后将视频嵌入tinymce。
Tinymce一直用一些< object> html,使用其moxieplayer.swf。
我想为这些视频使用自定义视频播放器,但是当tinymce表现正常时却不能这样做。

I've built a function that uploads,converts and then embeds a video into tinymce. Tinymce keeps wrapping my video embeds with some < object > html, using their moxieplayer.swf. I want to use custom videoplayers for these videos, but cant do that when tinymce behaves as it does.

这是向tinymce注入的代码:

This is the code im injecting to tinymce :

<video width="320" height="240" poster="5872deprivedwrath.jpg" preload="false" src="5872deprivedwrath.mp4">
<source type="video/mp4" src="5872deprivedwrath.mp4"><source type="video/ogv" src="5872deprivedwrath.ogv">
<object width="320" height="240" type="application/x-shockwave-flash" data="/js/flashmediaelement.swf">
<param name="movie" value="/js/flashmediaelement.swf">
<param name="flashvars" value="controls=true&amp;file=5872deprivedwrath.mp4">
<img src="5872deprivedwrath.jpg" width="320" height="240" title="No video playback capabilities">
</object>
</video>

但是当tinymce收到它时,它会变成一大堆html(我可以在需要时发布它) ),将其全部包裹在嵌入的moxieplayer Flash中。

But when tinymce receives it, it turns into a big blob of html ( i can post that if needed ), wrapping it all in some moxieplayer flash embed.

<video width="320" height="240" poster="8910deprivedwrath.jpg" controls="controls" preload="preload">
<source src="8910deprivedwrath.mp4" type="video/mp4" /><source src="8910deprivedwrath.ogv" type="video/ogv" />
<object width="320" height="240" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="flashvars" value="url=8910deprivedwrath.mp4&amp;poster=8910deprivedwrath.jpg" />
<param name="src" value="moxieplayer.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="true" />
<embed width="320" height="240" type="application/x-shockwave-flash" src="/tiny_mce/plugins/media/moxieplayer.swf" flashvars="url=8910deprivedwrath.mp4&amp;poster=8910deprivedwrath.jpg" allowfullscreen="true" allowscriptaccess="true" />
</object>
</video>

因此,我试图找出如何禁用此功能或解决该功能。

So i'm trying to find out how to disable this function, or work around it.

有人对此有任何经验吗?
非常感谢任何输入,因为我为此很费力!

Has anybody had any experience with this? Any input is greatly appreciated, as im struggling with this one!

推荐答案

在TinyMCE的配置中设置以下选项:

Set the following option in TinyMCE's config:

flash_video_player_url: false

这篇关于禁用tinymce中的自动moxieplayer包装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆