From ba794ba58c406e086bb53be7273461db6e0671db Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Fri, 7 Jan 2022 11:49:26 +0900 Subject: [PATCH] Use clipboard.writeText() instead of execCommand("copy") --- .../editor-client/src/js/ui/clipboard.js | 38 +++++++++---------- .../editor-client/src/sass/editor.scss | 4 -- 2 files changed, 17 insertions(+), 25 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js b/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js index 626ada7e5..7fb0fb2a8 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/clipboard.js @@ -940,29 +940,25 @@ RED.clipboard = (function() { if (truncated) { msg += "_truncated"; } - var clipboardHidden = $('