Use new ClipboardAPI to replace outdated document.execCommand()
calls
#684
Labels
dependencies
Pull requests that update a dependency file
document.execCommand()
calls
#684
Currently, we use the
clipboard-rails
gem as wrapper for theclipboard.js
library. It uses afakeCopyAction
to copy to the clipboard viadocument.execCommand()
, which is deprecated. We use the library in ourapp/assets/javascripts/copy_and_paste_button.js
file introduced in #670 (previously only here).Instead, we should use the new Clipboard API that modern browsers support. This would also have the advantage that the infrastructure to test clipboard content in Cypress, introduced via 7429387 (see the TODO notes there) in pull request #670, would work.
The text was updated successfully, but these errors were encountered: