Kotoba.Collab (Kotoba v0.8.0)

Copy Markdown View Source

Collaboration for Kotoba on Issho: Issho is the document's authority, its people and their cursors; Kotoba is the document and its editor.

Your Issho policy names Kotoba's documents with document/1, the editor joins with its issho option (Issho.Join's keys, as every component of the page, and Kotoba's :undo), and the application's JavaScript imports kotoba/collab once. Changes from your own code go through Kotoba.Issho.change/4. See the Collaboration guide.

Summary

Functions

The document's accepted content now: {:ok, %{"epoch" => ..., "revision" => ..., "content" => %Kotoba.Content{}}}.

The content of the exact accepted revision a collaboration form posted.

Functions

content(instance, document_id)

The document's accepted content now: {:ok, %{"epoch" => ..., "revision" => ..., "content" => %Kotoba.Content{}}}.

content(instance, document_id, map)

The content of the exact accepted revision a collaboration form posted.