diff --git a/build/changelog/entries/2025/11/12579.SUP-19262.bugfix b/build/changelog/entries/2025/11/12579.SUP-19262.bugfix new file mode 100644 index 0000000000..4dfb388a63 --- /dev/null +++ b/build/changelog/entries/2025/11/12579.SUP-19262.bugfix @@ -0,0 +1 @@ +Fixes an issue where pasting copied text did not work. \ No newline at end of file diff --git a/src/plugins/common/paste/lib/paste-plugin.js b/src/plugins/common/paste/lib/paste-plugin.js index 156ca58e93..fd2524a462 100755 --- a/src/plugins/common/paste/lib/paste-plugin.js +++ b/src/plugins/common/paste/lib/paste-plugin.js @@ -385,6 +385,10 @@ define([ var data = $event.originalEvent.clipboardData; var rawPaste = data.getData('text/html'); + if (rawPaste.length === 0) { + rawPaste = data.getData('text/plain'); + } + // Make sure the paste contents has an HTML element at the root, so that it can be appended to $CLIPBOARD. if ($(rawPaste).length === 0) { let wrappedPaste = $('').html(rawPaste);