luden
luden

Reputation: 113

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

Upvotes: 9

Views: 10655

Answers (3)

kevin
kevin

Reputation: 1218

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

Upvotes: 1

Jesse Sierks
Jesse Sierks

Reputation: 2397

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.

Upvotes: 15

Thariama
Thariama

Reputation: 50832

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.

Upvotes: 0

Related Questions