CKEditor:允许视频嵌入代码 [英] CKEditor: Allow video embed code

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

问题描述

我使用CKEditor,并希望允许从YouTube,Vimeo等插入嵌入代码
CKEditor将所有标签转换为HTML Chars等效,这是好的,但我想让它为这种类型内容。 iFrame似乎是如何做的现在,所以我怎么能告诉CKEditor单独留下iFrame标签?

I am using CKEditor and want to allow the insertion of embed code from YouTube, Vimeo etc. CKEditor turns all tags into HTML Chars equivalent, which is good, but I want it to make exceptions for this kind of content. iFrames seem to be how it's done nowadays, so how can I tell CKEditor to leave iFrame tags alone?

谢谢。

推荐答案

在搜索同一个解决方案时发现了您的问题。这是我发现的。基本上,它添加一个按钮到工具栏,像图像按钮,但它弹出一个框,让你粘贴嵌入代码从YouTube,Vimeo等。似乎工作得很好。

Just found your question while searching for the same solution. Here is what I found. Basically, it adds a button to your toolbar like the Image button, but it pops up a box for you to paste the embed code from YouTube, Vimeo etc. into. Seems to work pretty well.

http://www.fluidbyte.net/index.php?view=embed-youtube-vimeo-etc-into-ckeditor

编辑:链接到archive.org:
http://web.archive.org/web/20110805213357/http://www.fluidbyte.net/index.php?view = embed-youtube-vimeo-etc-into-ckeditor

Link to archive.org: http://web.archive.org/web/20110805213357/http://www.fluidbyte.net/index.php?view=embed-youtube-vimeo-etc-into-ckeditor

这篇关于CKEditor:允许视频嵌入代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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