-
Notifications
You must be signed in to change notification settings - Fork 877
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
CodeMirror 4 support? #112
Comments
Yeah, we should definitely support CodeMirror 4. Not sure when I'll get On Tue, Apr 1, 2014 at 11:08 AM, benbro notifications@github.com wrote:
|
👍 i will pay someone TWENTY US DOLLARS to do this |
@benbro I'm testing FirePad on CodeMirror 4.1 and it seems to be running fine now (I think they removed some of the breaking 3.x -> 4.x stuff). Can you confirm? Edit: Ah, there appear to be some problems in list indentation in rich text mode. |
ot.js has some CodeMirror 4.0 commits so there are probably few changes needed |
@benbro I've made some commits to Firepad to enable CodeMirror 4 support. Can you test out the latest master? |
listening to 'changes' instead of 'change' is not needed? http://codemirror.net/doc/upgrade_v4.html
Thank you for the update, I'll test it and report back. |
Sounds like for the change/changes thing, you might need to trigger a "compound change" (made up of multiple individual changes) to be affected. I think indenting a bunch of lines in the code editor would do that (it'll add a tab to the beginning of each line as a single compound change) |
@mikelehen I don't think we actually need to modify the change handler. It sounds like compound changes are gone entirely? Don't we just get one change event per actual change now? |
We get a 1 or more 'change' calls. BTW in CM 3 it was also possible to get changes one-by-one without manually I don't understand OT/firepad enough, but I assume since there was existing |
Yeah, looks like change batching in CodeMirror 4 is actually messing with #109 |
Ahh, @vincentwoo, I see what you're saying (everything should still work I'll let you figure out if there are actual issues (related or not) with On Mon, May 19, 2014 at 6:19 PM, Vincent Woo notifications@github.comwrote:
|
Hi
Any plans to support CodeMirror 4?
ot.js has few commits:
Operational-Transformation/ot.js@dfa9b5d
The text was updated successfully, but these errors were encountered: