2011-04-25 24 views

回答

0

是的,這是可能的。

您需要在tinymce init中將模式設置爲「精確」。 另外,當textarea獲得焦點時,您將需要初始化正確的tinymce編輯器。

$('#mytextarea').focus(function() { 
    alert('Handler for .focus() called.'); 
    tinymce.execCommand('mceAddControl',true, $('#mytextarea').attr("id")); 
}); 

要關閉一個編輯器實例使用:

tinymce.execCommand('mceRemoveControl',true, editor_id); 
相關問題