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

[CoEditor] Inconsistent typing #166

Closed
vinomaster opened this issue Mar 7, 2012 · 5 comments
Closed

[CoEditor] Inconsistent typing #166

vinomaster opened this issue Mar 7, 2012 · 5 comments
Assignees
Milestone

Comments

@vinomaster
Copy link
Member

iTel: Synchronization of 2 users typing is not working consistently

Scenario: User1 types text, User2 does not always see what user1 typed. If User2 types text, User1 is not able to see it

@vinomaster
Copy link
Member Author

Currently unable to validate (recreate) this issue since demosdev.opencoweb.org is down due to a ramification in our build process from yesterday's Milestone 0.8 build. We will revisit this issue once the demo server is backup using trunk codebase.

@ghost ghost assigned bitpshr Mar 7, 2012
@ghost ghost assigned ccotter Jun 5, 2012
@ccotter
Copy link
Member

ccotter commented Jun 5, 2012

I've recreated the situation from the demo code in the most recent checkout of opencoweb/cowebx (f870ddc2c3076ffe86ddcb968df2a6177b7aae49) on my local machine. I haven't been able to recreate the use case from http://demos.opencoweb.org

@ccotter
Copy link
Member

ccotter commented Jun 6, 2012

I tested with three browsers (Safari, Chrome, and Firefox) on a macbook, and the only scenario I could reproduce the bug is when a new Safari window joins an already existing editor session, and the other sessions type text. The new Safari window will not receive the updates.

The underlying cause appears to be that the rangy javascript library fails to be initialized (rangy.init()) on the new Safari session, although I can't determine why. By manually calling rangy.init() on startup, the issue goes away, and I am unable to reproduce the behavior described above.

@bitpshr
Copy link

bitpshr commented Jun 7, 2012

This issue is synonymous with #167 . The typing is inconsistent when the position is off due to the cross browser differences between contentEditable DOM rendering / Rangy.

@ccotter
Copy link
Member

ccotter commented Oct 16, 2012

The specific cause of this issue (rangy not being initialized, see above) has been fixed, so this issue is closed.

@ccotter ccotter closed this as completed Oct 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants