1
我想插入HTML到YUI富文本编辑器。如果我使用简单的HTML代码片段,代码就可以工作,但如果我使用更复杂的东西(例如尝试嵌入对象),那么它会失败。插入html到雅虎的YUI富文本编辑器
编辑
失败 - 仅适用于FF浏览器
例如 - 这工作:
var html = '<div><b><u>Hello world!</u></b></div>';
myEditor.execCommand('inserthtml', html);
但这这么想的工作:
var html = '<div><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/OVXIh4q-OmM?fs=1&hl=en_GB&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OVXIh4q-OmM?fs=1&hl=en_GB&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></div>';
myEditor.execCommand('inserthtml', html);
母鹿有谁知道为什么?