我想下面的代碼TinyMCE的按鍵時,我嘗試顯示內容的預覽
$('textarea.tinymce').keypress(function(){
dealDescription = $('textarea.tinymce').tinymce().execCommand('mcePreview');
$("#deal_preview div").text(dealDescription);
});
,但我不使用jQuery TinyMCE的編輯想使用jQuery TinyMCE的和其他的jQuery UI組件無法正常工作,所以我直接使用tinymce組件。
現在我需要在每個按鍵的預覽框中顯示內容預覽。