在TinyMCE中嵌入带有新iframe嵌入代码的YouTube视频 [英] Embedding YouTube video with new iframe embed code in TinyMCE

查看:1937
本文介绍了在TinyMCE中嵌入带有新iframe嵌入代码的YouTube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用旧版嵌入代码将YouTube视频添加到TinyMCE中,效果很好。有些用户可能没有意识到他们必须点击YouTube嵌入代码链接中的旧嵌入代码链接才能添加。

I tried the old embed code for adding YouTube videos into TinyMCE and it works fine. Some of the users may not realise they have to click on the old embed code option in YouTube embed code link to add it in.

我想让用户轻松

新的嵌入代码看起来像下面的例子:

The new embed code looks like the following example:

<iframe title="YouTube video player" width="640" height="390" 
        src="http://www.youtube.com/embed/VvJ037b_kLs" 
        frameborder="0" allowfullscreen></iframe> 

如何让TinyMCE接受iframe的新版YouTube嵌入代码?

How do I get TinyMCE to accept the new version of the YouTube embed code with iframe?

我正在进行CakePHP网站构建。

I'm working on a CakePHP site build.

推荐答案

使用extended_valid_elements比编辑原始设置更好。

I think that the use of "extended_valid_elements" is better than edit the original settings.

查看: TinyMCS - extended_valid_elements

这篇关于在TinyMCE中嵌入带有新iframe嵌入代码的YouTube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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