question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text truncated on copy with "..." ellipsis

See original GitHub issue

monaco-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:closed
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
pombredannecommented, Dec 12, 2019

@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!

0reactions
alexdimacommented, Dec 12, 2019

No problem, glad I could help.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found