-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't "copy" out of CodeMirror buffer (Firefox 40, Linux, jsbeautifier.org) #3486
Comments
Can you copy/paste text out of one of the demo CodeMirror pages? Say, http://codemirror.net/mode/javascript? |
Yes, that works, darn it :) (Of course I wish it wouldn't, because I completely understand that I'm like some kind of special snowflake here.) I'm trying everything I can think of to diagnose what's going on; I apologize for burdening this project with this issue, so if it seems bogus or impossible then feel free to close it with extreme prejudice. I've been having this problem only for a short while - I have used jsbeautifier quite extensively for many years with essentially the identical setup I've got now. Thank you for paying enough attention to ask these questions in fact. |
It's going to be hard to help you unless you can point us at a particular page that causes the problem for you. jsbeautifier has potentially modified their editor, and they seem to be on an old version of CM (3.11). Perhaps you should file an issue with them, if it's reliably reproducible? |
You're probably right. Thanks for your time; I assure you that I completely understand. |
For whatever it's worth: I'm finding that I can successfully copy out of the CodeMirror buffer on the jsbeautifier site, but only up to exactly 1000 characters worth. If I select 1001 characters or more, all I get when I try to paste elsewhere (into any other application) is a single "-" character. Note that to get more than 1000 characters into the jsbeautifier site in the first place, I successfully cut-and-pasted that much text out of a StackOverflow page and into the jsbeautifier page, without incident. It's only copying back out, and only from jsbeautifier, that I'm seeing the problem. Of course I realize that this may have absolutely nothing to do with CodeMirror. However, when I use the "plain textarea" version of jsbeautifier, everything works fine. |
This does have to do with CodeMirror. Are you pasting using the regular clipboard, or X windows' middle-mouse-button behavior? |
I'm using Ctrl-C to copy out of the page, so not the simple X selection buffer. (I haven't tried using the Firefox right-mouse menu to copy, I don't think, but I can do that.) |
Oh wait, sorry, you asked how I was pasting the clipboard. I'm using Ctrl-V or the right-mouse "Paste" button. I've tried a variety of X applications in addition to Firefox and all behave exactly the same way. |
So jsbeautifier appears to be on codemirror version 3.11, which is two and a half years old. I am not going to debug issues with ancient versions. |
Completely understand. I'll update the ticket with the js-beautify project. Thanks for your time spent thinking about this. |
I know it is old but |
I am having this exact problem trying to copy source code from the Greasemonkey internal editor. I have no idea if this uses CodeMirror, but it's the only reference to a bug like this I could find. I am running Firefox on base Debian. |
Same exact problem here, Greasemonkey copying stops at 1001 characters. Ubuntu 16 |
The offending code is this selection function:
|
Have you brought this issue up with Greasemonkey? |
Though it's something I could do in the past, I cannot now copy the contents of the jsbeautifier CodeMirror box. Well, the copy operation doesn't explode or obviously fail, but all that (apparently) gets copied into the system buffer is a "-" character. It doesn't matter where I try and paste; it's like the copy operation is just doing completely the wrong thing.
Copy/paste on the same machine (Ubuntu 15.04) generally works otherwise, in Firefox and elsewhere. For example, I can copy this text out of the GitHub input block and paste it back.
I can copy this text out of the GitHub input block and paste it back.
The text was updated successfully, but these errors were encountered: