Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build/changelog/entries/2025/11/12579.SUP-19262.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes an issue where pasting copied text did not work.
4 changes: 4 additions & 0 deletions src/plugins/common/paste/lib/paste-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $('<span>').html(rawPaste);
Expand Down