我已着手进行连续工作:
$( #text ).tinymce({
// Location of TinyMCE script, optional, already loaded in page.
script_url : ../adminContent/js/tiny_mce/tiny_mce.js ,
// General options
theme : "advanced",
plugins : "table,advimage,advlink,iespell,inlinepopups,preview,contextmenu,paste,visualchars",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,forecolor,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,removeformat,cleanup,code,|,preview,tablecontrols,|,hr,visualaid,|,charmap,iespell",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
以上法典是完美的。 问题在于我试图去除小孔径。
我删除的法典是:
$( #text ).tinymce().execComm以及( mceRemoveControl , false, text );
我还尝试:
$( #text ).remove();
以及
$( #text ).tinymce().remove();
第一点似乎没有做任何事情。 最后两点给我这个错误:
参考书:t
尽管紫外线是用超文本文件装载的,但我正在用以下文字装载另一个文字:
$.getScript(viewPath + /mod/adminContent/js/editContent.js , function(){
initEditContent(popup);
});
人口是指装满微粒的人群。 这只是用 j子制造的iv。 div的成分是用jquery ajax装载的。
editContent.js认为:
var contentID;
function initEditContent(popup){
contentID = $( #contentID ).val();
tinyMCE.execComm以及("mceAddControl", true, text );
setTimeout(reposition, 50);
setTimeout(reposition, 150);
setTimeout(reposition, 250);
// Submit form
$( #editTextForm ).ajaxForm(
{
// Before submit
beforeSubmit: function(){
//setPopupMessage(popup, <div id="loading"><img src="../../img/loading.gif" /> Please wait...</div> );
},
// Once submit completed
success: function(responseText){
tinyMCE.execComm以及("mceRemoveControl", true, text );
//closePopup(popup);
// Update button with new data
$( # + contentID).html(responseText);
}
});
}