Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tinymce right click paste mouse enable

(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

like image 323
luden Avatar asked Mar 24 '23 13:03

luden


1 Answers

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.

like image 88
Jesse Sierks Avatar answered Apr 02 '23 16:04

Jesse Sierks