I implemented a similar js patch for TogetherJS which works great with WikiEditor but not with VisualEditor. the TogetherJS is launched but no edit can be seen mutually. I think it has to do with the major changes that were done in VE since this extension was first released. Any idea for the source of the problem will be great.
Extension talk:TogetherJS
Yes, I haven't finished updating the extension to match the latest version of Visual Editor. https://gerrit.wikimedia.org/r/187409 is probably the patch to watch.
This is good news. Do you have any idea for assuming when such update might be available? I also tried to implement TogetherJS by myself (JavaScript only), and had the same problem. Can you help me understand why does VisualEditor behaves differently in TJS?
You should study the plugins that TogetherJS has for the other rich text editors it supports: ACE is one. TogetherJS needs hooks into the editor in order to synchronize its model with the code editors internal model. For Visual Editor, this consists of hooks into Visual Editors internal "transaction" system.
Thanks. Looks too complicated for me right now, but I will keep an eye on it.
File "ext.togetherjs.js"
line 30
Change
imageFile: '//pinklake.wmflabs.org/extensions/TogetherJS/togetherjs/images/togetherjs-logo.png',
to
imageFile: '//raw.github.com/ianb/togetherjs/master/site/images/togetherjs-logo.png',
or just copy the image into your Mediawiki folder and change the path accordingly.
I've described two basic use cases on the page now, but there are probably more. People should add to it. :)