最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Tinymce right click paste mouse enable - Stack Overflow

programmeradmin1浏览0评论

(I disabled the contextmenu plugin.) In tinymce i would like to paste a text with the right click menu mouse like in this text editor here. I noticed that i can do that when the selector is blinking on the first line. Where can i set up that ?

Regards

Frank

(I disabled the contextmenu plugin.) In tinymce i would like to paste a text with the right click menu mouse like in this text editor here. I noticed that i can do that when the selector is blinking on the first line. Where can i set up that ?

Regards

Frank

Share Improve this question asked Jun 17, 2013 at 12:43 ludenluden 1131 gold badge1 silver badge5 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 15

For anyone else seeing this a few years later, here's what I did to enable right-click paste for my TinyMCE editor:

tinymce.init({
    selector: ".TinyMceTextEditor",
    plugins: "contextmenu",
    contextmenu: "paste | link image inserttable | cell row column deletetable"
});

If you enable the contextmenu plugin, then you can specify the contextmenu itself and include "paste". This way you can bypass the default right-click context menu and still get the paste option (plus a lot of other functionality). The other options I have in the contextmenu are the defaults.

This worked for me on version 5 :

Either disable the TinyMCE context menu and use the native browser context menu :

tinymce.init({
    selector: 'textarea#context-menu',
    contextmenu: false
});

Or enable copy and paste in TinyMCE :

tinymce.init({
    selector: 'textarea#context-menu',
    contextmenu: 'copy paste'
});

Have a look at the tinymce contextmenu plugin. We use a modified version of it as an own plugin to show different option to the user.

发布评论

评论列表(0)

  1. 暂无评论