Why can't we right click in TinyMCE with plugin plugin in Firefox?

It seems impossible to copy the text and then paste it into the TinyMCE editor using right click paste from Firefox if you have the "paste" plugin. Why is this?

I use:

  • Firefox 33.1.1 (although users have complained about an issue with FF 29)
  • TinyMCE 4.1.1 with plugin

I can right click on them without error:

  • attribute element contenteditable="true"

    (same method as TinyMCE) checked out at http://html5demos.com/contenteditable
  • normal text area
  • TinyMCE 4.1.1 without plugin

Users discussed on the TinyMCE forum back in 2007 and mention a warning that says "Copy / Cut / Paste not available in Mozilla and Firefox" which I don't get with FF 33. Nobody mentions why this problem occurs and the administrators TinyMCE claims "this is not a bug". I am interested to know what changes have been made to Firefox or TinyMCE, what is causing this, and why (security?).

This question - tinymce mouse paste doesn't work - the answer to the question is how to fix the problem: uninstall the "contextarea" plugin or any plugin that the theme is based on. But I'm curious to know why this is happening in the first place.

+3


source to share


1 answer


A co-worker got me back on track and I found these two links:

https://developer.mozilla.org/en-US/Firefox/Releases/29/Site_Compatibility#Security

Removing the allowclipboard policy support broke the copy / paste buttons on some rich text editors like CKEditor. In the near future, standard support for the Click-to-Copy Clipboard API will be implemented. The general keyboard shortcuts, Ctrl + C and Ctrl + V should always work.

http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard



By default, JavaScript is not allowed to read or set clipboard data for security and privacy reasons. This is because website scripts can erase and replace what you have on your clipboard (data loss issue), and they can read anything you have on your clipboard (security and privacy issue ); as such, you must be careful about granting access.

Perhaps someone with TinyMCE experience can provide more information on how it accesses the buffer.

Good follow-up questions might be: Why don't other browsers do this? Why is ctrl + v safer?

+2


source







All Articles