-
Notifications
You must be signed in to change notification settings - Fork 401
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
Uncaught IndexSizeError: Failed to execute 'setStart' on 'Range': #82
Comments
Can you tell me which options, mode, and behavior you are using?
|
@robertleeplummerjr I'm using with the default options, just passing the element. |
So then you are using the demo's? If so, which example? On Fri, Sep 19, 2014 at 7:48 PM, Matheus Bras Quaresma <
Robert Plummer |
I'm having the same problem. Building inside a React component and enabling in either componentDidMount or componentDidUpdate. The options I'm using are:
All works fine until you delete the node's innerText and start typing again, at which point the caret jumps around and ends up at the start of the node.
Currently on Chrome:39 |
Same error in partialMode.. inlineMode works fine.. the bug only happens after typing a few characters fairly quickly edit: no it happens when creating slowly.. seems that when the first is added the range gets messed up. Bug also happens in Rich mode demo. |
This makes it work
but now inserting unnecessary |
What are the exact steps to reproduce? |
Click on the editor for the rich editor in your demo, press delete twice (you'll see the caret position change slightly despite their being no text), then type three characters very quickly. From then on - the error happens seemingly randomly in your demo but more consistently in other implementations. The first page load can produce the error consistently. |
Try latest from master. On Sat, Jan 24, 2015 at 1:43 PM, Thomas [email protected] wrote:
Robert Plummer |
Mmm did you bump the version at all after making this change? I'm noticing no difference for my implementation. edit: your demo page still performs exactly the same too |
Here's a video demonstrating the behaviour - you can see the code used to implement and the current version tracked by npm. |
Any fixes on that? Having the same issue here.. |
Same for me, I get this when trying to set a value or typing in anything but inlineMode. |
I was encountering this issue when trying to wrap it in a medium directive and using any mode other than inline. @vkovalskiy @levity just wrap the call in a try / catch construct and things will work as expected. |
For what it's worth, I also just ran into a very similar issue (mine was an The problem for me was caused by a Chrome extensions that was going in and modifying the DOM elements on the page under codemirror's nose (in my case it was this text url to clickable url extension - which would break codemirror if I had a URL in the editor contents). Disabling that extension resolved the issue for me. |
I'm getting this error after typing a few letters. Any ideia what could it be? I'm using Chrome 37.0.2062.94. Thanks!
The text was updated successfully, but these errors were encountered: