这不是此问题。
我正在 asp.net 中开发一个应用程序并使用tinymce。在我的应用程序中,我需要让用户能够从 YouTube 添加自己的视频。由于某种原因,我可以嵌入视频,但它无法呈现。相反,我看到了这个 html:
<img src="http://localhost/myApplication/jscripts/tiny_mce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="350" height="300" data-mce-json="{'video':{},'params':{'wmode':'transparent','src':'http://www.youtube.com/v/GEZwVa98oKs&rel=1'}}">
为什么我看不到我的对象标签?
有趣的是,当我单击预览按钮(我启用了该小部件)时,视频就会正常显示。
可能是什么原因造成的?
谢谢你!
this is NOT a duplicate of this question.
I am developing an application in asp.net and using tinymce. In my application I need to give the user the ability to add his own videos from youtube. From some reason I can embed a video, but it doesn't render. Instead I see this html:
<img src="http://localhost/myApplication/jscripts/tiny_mce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="350" height="300" data-mce-json="{'video':{},'params':{'wmode':'transparent','src':'http://www.youtube.com/v/GEZwVa98oKs&rel=1'}}">
Why don't I see my object tags?
An interesting thing though, When I click the preview button (I enabled that widget), then the video is presented just fine.
What could be causing this?
Thank you!
发布评论
评论(2)
我遇到了同样的问题,需要添加到 valid_elements img[*]、ifame[*]。
希望tinymce能修复。我不想在我的有效元素中包含 iframe!
I had the same issue, needed to add to valid_elements img[*], ifame[*].
Hope tinymce will fix it. I dont want to have iframe in my valid elements!
确保您的对象标签位于 valid_elements 或 扩展_valid_elements。
make sure your object tags are to be found inside the valid_elements or extended_valid_elements.