I am using TinyMCE jquery plugin in my project. It works fine. I am trying to use exec command to view the preview. It is not working.
<a href="javascript:;"onclick="$('textarea.tinymce').tinymce().execCommand('Preview');">Preview</a>
But the same comman开发者_高级运维d for bold works fine.
I appreciate any help.
Thanks.
You are not using the right command. Try
$('textarea.tinymce').tinymce().execCommand('mcePreview');
精彩评论