开发者

How to preview using execcommand in tinyMCE

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜