U I Integration
Fonto Document History can be integrated into the user interface in various ways.
Integration in Fonto Editor
By default, Fonto Document History is integrated in the Fonto Editor user interface. The button which navigates to Fonto Document History can be configured like any other button in Fonto Editor.
To add the Document History functionality to your Editor instance, enable the Document History add-on (fontoxml-document-history
). If you want the buttons for placing comments on selections and elements in Document History to be enabled, you need to include fontoxml-document-history-annotations
package. This package requires the fontoxml-annotations
package to be present.
Launching directly
Document History
Optionally, Fonto Document History can be launched directly without having to open the Fonto Editor first. This is useful in the scenario where you want to be able to provide a read-only experience from your CMS.
Launching Fonto Document History directly is very similar to launching the editor. The following URL must be constructed:
{
Name |
Description |
---|---|
|
The base URL of the editor. |
|
The scope object which is normally passed to the editor. See the CMS integration guide for more information. |
|
The identifier of the document for which to show the history. |
To start document history without any way of going back to the editor add the prevent
scope parameter with its value set to true
.
Document Compare
To launch in Document Compare mode to compare 2 revisions of arbitrary documents, use the following parameters in the scope:
Field |
Type |
Description |
---|---|---|
|
string |
Document ID for document A |
|
string |
Document ID for document B |
|
string |
Revision ID for document A |
|
string |
Revision ID for revision B |