How to enable tinymce editor right click paste

Priya
Priya
Member
136 Points
38 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: 43
Total Answered: 1
Total Marked As Answer: 0
Posted On: 28-May-2021 08:57

Share:   fb twitter linkedin
Answers
beginer
beginer
236 Points
68 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