如何使 tinymce 与 iframe 一起工作? [英] How to make tinymce work with iframe?
本文介绍了如何使 tinymce 与 iframe 一起工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用 HTML 源代码编辑器输入 时,它只是被过滤了.
When I input <iframe>
with its HTML Source Editor, it's just filtered.
是否可以选择使其与 一起使用?
Is there an option to make it work with <iframe>
?
推荐答案
是的,您可以这样做:
您应该阅读有关有效元素的文档.您必须在 tinymce init 中添加有效元素,否则 tinymce 将删除这些元素:
You should read in the documentation about valid elements. You have to add valid elements in your tinymce init, otherwise tinymce will delete those elements:
添加:
extended_valid_elements : "iframe[src|width|height|name|align]",
这篇关于如何使 tinymce 与 iframe 一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文