(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 badges3 Answers
Reset to default 15For 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.