0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Fix plain text only copying when using toPlainText

We need to get the HTML to convert.
This commit is contained in:
Neil Jenkins 2020-07-14 19:57:32 +10:00
parent b952894d10
commit d5b320bd7d

View file

@ -18,7 +18,7 @@ var setClipboardData =
cleanupBRs( node, root, true );
node.setAttribute( 'style',
'position:fixed;overflow:hidden;bottom:100%;right:100%;' );
html = plainTextOnly ? '' : node.innerHTML;
html = node.innerHTML;
if ( toPlainText ) {
text = toPlainText( html );
} else {