mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -05:00
Add comment to HTML on copy
This lets us detect on paste if the copy (probably) came from Squire.
This commit is contained in:
parent
3def29e081
commit
e00a62e6fa
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ const extractRangeToClipboard = (
|
|||
|
||||
// Set clipboard data
|
||||
if (!plainTextOnly && html && text !== html) {
|
||||
html = '<!-- squire -->' + html;
|
||||
clipboardData.setData('text/html', html);
|
||||
}
|
||||
clipboardData.setData('text/plain', text);
|
||||
|
|
Loading…
Reference in a new issue