Text truncated on copy with "..." ellipsis
See original GitHub issuemonaco-editor version: See below Browser: Firefox 68.0.1 (64-bit) OS: Linux
Steps or JS usage snippet reproducing the issue:
Copy some long enough text … and paste it: it gets truncated in the middle with dot dot dot ellipsis. On Chrome this is not truncated. Only on FF.
This seems to be closely related to #1458
This is the version used in ClearlyDefined: https://clearlydefined.io/vs/editor/editor.main.js
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.10.1(ebbf400719be21761361804bf63fb3916e64a845)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-----------------------------------------------------------*/
This is the version used in Azure: https://cdn.vsassets.io/3rdParty/_content/Extensions/CodeEditor/0.13.1.1/vs/editor/editor.main.js
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.13.2(53a4043676e6259fb734c90fad14bf16f7425640)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-----------------------------------------------------------*/
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Need a way to copy shortened extra long strings
Actually when using ellipsis via CSS you are not truncating the string but just hiding to plain sight. So, double click, select all...
Read more >Truncate String with Ellipsis - CSS-Tricks
Hey – would anyone know how to do this with a full word? I've seen text-overflow:ellipsis-word used a couple times but haven't been...
Read more >Truncate text - CX Components - Cox Automotive
Name Type Default
children node
collapseAnchorText string "Show less"
displayToolTip bool false
Read more >text-overflow - CSS: Cascading Style Sheets - MDN Web Docs
This keyword value will display an ellipsis ( '…' , U+2026 HORIZONTAL ELLIPSIS ) to represent clipped text. The ellipsis is displayed inside...
Read more >mac Books.app copy text from a epub book, the content is ...
mac Books.app copy text from a epub book, the content is truncated as ellipsis · What kind of book are you copying from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alexdima you nailed it and I am very sorry for having wasted your time here.
The culprit are my settings. I have checked my config and found that the setting
dom.event.clipboardevents.enabled
was set to False to avoid clipboard hijacking from malicious websites. If I enable it, the copy/paste works OK in the fiddle and everywhere.Things works also fine as-is in Chrome and Chromium.
Please accept my apologies and thank you for your patience!
No problem, glad I could help.