With the support of the OpenPaaS::NG research project, the XWiki Labs team from XWikiSAS has worked a lot on improving the realtime collaboration features in XWiki. The realtime engine has evolved and can now be plugged in to many different content editors.

Thanks to the CKEditor integration application, there is now a famous and powerful tool in XWiki to write content using a visual editor, and this tool can be used for collaborative editing with the Realtime WYSIWYG extension. Here we are going to describe the features added by the realtime extension with its latest versions:

  • A new lock message
  • A realtime merging tool
  • The macro editing
  • The position of other users in the document (prototype, not released yet)

Document Lock

If you are working in a wiki where realtime applications are installed, you may encounter a lock message in two different situations.

The first one is similar to the default XWiki lock, which is displayed when you want to edit a page while someone else is already editing it. With the realtime applications, if the other user has enabled the realtime collaboration, instead of being asked if you want to "force editing", you have the ability to join the realtime session:
lock.png

The other situation happens when you want to edit a page with a specific content editor (Wiki editor or WYSIWYG editor) while it is already being edited by another realtime content editor. In that situation, you can either join the existing realtime session, or create a new realtime session in the same document with the content editor of your choice:
lock2.png

Merging Content while Saving

We've just seen that it is now possible to create a new realtime session while there is an existing one in the same document but with another content editor. It is then possible to have some people using the realtime Wiki editor and the realtime Wysiwyg editor at the same time, and they won't have the same content. To avoid the loss of content for people using one of these editors, an automatic merging tool has been added in the realtime extensions.

  • If there isn't any conflict, meaning that both realtime sessions are not trying to change the same parts of the document at the same time, the merge should happen automatically without losing any content.
  • If there are conflicts (both sessions try to edit the same part of the document but with different content), you will have to choose, while saving the document, which content you want to keep: the current realtime content (your changes), or the remote content (the changes from the other realtime session) :

merge.png

Although it is possible to have different realtime sessions (wiki, wysiwyg and forms) for a document at the same time, merge conflicts will result in a risk of losing the content for one part of the users. Be careful when you have two different realtime content editors at the same time in one document!

Macro Editing (Experimental)

Beginning with CkEditor integration 1.7 and Realtime Wysiwyg 1.18, XWiki macros can be added or edited using CkEditor with realtime collaboration enabled. The realtime version is still in an experimental state, but it allows you to edit documents containing macros and edit the macros' content without corrupting the whole page.

Users position (Early Prototype)

This is an early prototype of the feature, not released at the moment.

In future versions, it will be possible to display the users' avatars in the left margin of the document, at the line where is located their cursor. Their avatar will also be displayed in the top bar instead of only their username. These elements will be configurable in the administration interface:

  • In the margin, display / hide the avatars
  • In the top bar, display only the username / only the avatars / both

Users with the default XWiki avatar will be displayed with a fake avatar representing the first character of their username, so that they are easily recognizable.

avatar.png

You can find known issues and add ideas/improvements on https://jira.xwiki.org/browse/RTWYSIWYG and the sources are available on https://github.com/xwiki-contrib/realtime-wysiwyg.

Tags:
    

Get Connected