Я использую tinymce 3.4.9, и у меня проблема.
когда я вставляю видео с YouTube, я вижу, что видео было вставлено в текстовую область, но когда я использую
alert(tinyMCE.get('TextInp' id).getContent());
или
alert(oTinyMCE.get('TextInp' id).getContent());
или
alert($('#TextInp' id).html());
Это печать (как предупреждение) всего текста, кроме вставки YouTube (iframe я думаю, что это должно быть). Это ушло.
Я инициализирую tinymce следующим образом:
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();
В чем может быть проблема?
Спасибо