-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cut-Off code when pasting a large minified style #21
Comments
Do you have any evidence that would point to it being fixed if I updated CodeMirror? |
No real evidence. It's just a suspicion as CM has probably changed a lot in recent years. @marijnh: This is probably far-fetched, but do you remember an issue where pasting into CM could cut off the pasted text? The CM version in use here is 2.36. |
Unfortunately, it seems to be caused by Chromium. See: |
Hmm, not totally conviced. Here's a sample CSS: http://goo.gl/SSS5mj I can paste the content of this file fine on http://codemirror.net/demo/theme.html as well as another CM 4.6 instance I run. |
I just tried installing the latest CodeMirror into Stylish and it seems to be fixed, at least with the CSS you provided there. |
Nice! Maybe you could do a PR with the updated CM, so this can get fixed quickly. |
Yes, this was a Chrome bug that CodeMirror is now working around with, if I remember correctly, turning off line wrapping in its hidden textarea. |
When pasting 80k of minified code with no line breaks into the CodeMirror editor, the content of the code box gets cut off at around 15k characters. I suspect this might be caused by the old CodeMirror version in use.
The text was updated successfully, but these errors were encountered: