How to enable tinymce editor right click paste

Priya
Priya
Participant
936 Points
28 Posts

I migrated tinymce 5 from tinymce 4. But I noticed that right click is not working properly:

I want paste option back. Where need to configure it?

Views: 3046
Total Answered: 1
Total Marked As Answer: 0
Posted On: 28-May-2021 08:57

Share:   fb twitter linkedin
Answers
beginer
beginer
Member
1328 Points
43 Posts
         

In tinymce 5 by default providing contextmenu for link. It's preventing default/native menus. We can either disable or can be put more option.

To enable native context menu put following attribute:

contextmenu: false,

To add more context menu in the tinymce:

tinymce.init({
    selector: ".TinyMceTextEditor",
    plugins: "contextmenu",
    contextmenu: "paste | link image inserttable | cell row column deletetable"
});
Posted On: 04-Jun-2021 21:54
 Log In to Chat