开发者

How to make tinymce work with iframe?

开发者 https://www.devze.com 2023-01-16 23:50 出处:网络
When I input <iframe> with its 开发者_StackOverflowHTML Source Editor, it\'s just filtered. Is there an option to make it work with <iframe>?Yes you can do this:

When I input <iframe> with its 开发者_StackOverflowHTML Source Editor, it's just filtered.

Is there an option to make it work with <iframe>?


Yes you can do this:

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:

Add:

extended_valid_elements : "iframe[src|width|height|name|align]",
0

精彩评论

暂无评论...
验证码 换一张
取 消