热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在富文本编辑器中嵌入flash-embeddingflashinrichtexteditor

Ivebeentryingtoembedaflashwidgetinsidearichtexteditor(http:code.google.complwrte)

I've been trying to embed a flash widget inside a rich text editor (http://code.google.com/p/lwrte/), by adding an tag to the iframe's HTML using mozilla's .insertHTML function (http://www.mozilla.org/editor/midas-spec.html), but for some reason it never shows up - using firebug i can see that the embed tag is there, but it has stripped out the closing tag.

我一直在尝试在富文本编辑器(http://code.google.com/p/lwrte/)中嵌入Flash小部件,方法是使用mozilla的.insertHTML函数向iframe的HTML添加标签(http:// www.mozilla.org/editor/midas-spec.html),但由于某种原因它永远不会出现 - 使用firebug我可以看到embed标签在那里,但它已经剥离了结束标签。

any suggestions? how do other RTEs do this?

有什么建议?其他RTE如何做到这一点?

thanks

1 个解决方案

#1


IE and Firefox don't support Flash or any other plug-in inside an editable tag.

IE和Firefox不支持可编辑标记内的Flash或任何其他插件。

What other editors (Like TinyMCE or CKEditor) do is that they insert a placeholder image that gets replaced by the corresponding object/embed tags when the form is been submitted.

其他编辑器(如TinyMCE或CKEditor)所做的是,他们插入占位符图像,在提交表单时,该占位符图像将被相应的对象/嵌入标记替换。

For example, the placeholder image for CKEditor looks like this:

例如,CKEditor的占位符图像如下所示:

Flash Animation

As you can see they urlencode the entire object tag in the _cke_realelement attribute.

如您所见,他们在_cke_realelement属性中对整个对象标记进行了urlencode。


推荐阅读
author-avatar
书友79086887
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有