Reputation: 7485
At this point, there is no question that right click pasting in TinyMCE is not possible due to browser restrictions (unless the user specifically enables it).
However, is there ANY work around for this, like catching a paste event using JavaScript, pasting the clipboard contents to some hidden textarea somewhere, and then pulling the contents of that and inserting it into wherever they clicked paste? Or is this wishful thinking?
Or would you possible be able to do a preventdefault
on the right click even so that the normal right click menu comes up instead?
Upvotes: 2
Views: 587
Reputation: 7485
If you want right click pasting, you need to choose between having the TinyMCE contextmenu or right click paste. By disabling contextmenu, the usual browser right click box appears instead, which allows you to paste what's on your clipboard into the rich text box.
Upvotes: 1