我正在使用tinymce 3.4.9而且我遇到了问题。 当我从youtube插入视频时,我看到视频已插入到textarea,但是当我使用
时alert(tinyMCE.get('TextInp' id).getContent());
或
alert(oTinyMCE.get('TextInp' id).getContent());
或
alert($('#TextInp' id).html());
它打印(作为警报)除youtube嵌入之外的所有文本(iframe我认为它应该是)。它消失了。
我正在初始化这样的想法:
var oTinyMCE=new tinymce.Editor('TextInp' id, {
theme : "advanced",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : alignMe ,
width: MCEWidth,
height: MCEHeight,
relative_urls : false,
remove_script_host : false,
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,image,cleanup,|,insertdate",
theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media",
language: myLang,
directionality : dir
});
oTinyMCE.render();
可能是什么问题?
由于