Skip to content
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

Augment CodeMirror instance with detachShareJsDoc() #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbpros
Copy link
Contributor

@jbpros jbpros commented Aug 1, 2014

In a single app context, CodeMirror instances might be attached several times to the same shared doc. This can lead to multiple share channels attached to multiple ghost instances of CodeMirror for the same file, causing an infinite loop while the editors keep appending content to the file.

This new method allows for safely disconnecting a shareJs doc from a CodeMirror instance.

In a single app context, CodeMirror instances might be attached several times to the same shared doc. This can lead to multiple share channels attached to multiple ghost instances of CodeMirror for the same file, causing an infinite loop while the editors keep appending content to the file.

This new method allows for safely disconnecting a shareJs doc from a CodeMirror instance.
@aslakhellesoy
Copy link
Contributor

The build is failing. I suspect it's because you're using ctx.suppress and not suppress. FYI - ctx.suppress is not used on master yet - only on the newcursors branch.

I expect that this change will also make the editor misbehave quite badly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants