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:
parent
b952894d10
commit
d5b320bd7d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue