开发者

How to preview using execcommand in tinyMCE

开发者 https://www.devze.com 2023-01-30 21:32 出处:网络
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.

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');
0

精彩评论

暂无评论...
验证码 换一张
取 消