Class: EditingContextManager

sync.api. EditingContextManager


new EditingContextManager()

Editing context manager. To get access to this manager use sync.api.Workspace#getEditingContextManager. Initially, the context is built from the following URL parameters: - ditamap - dita.val.url

Members


<static> EventTypes :string

Event types for the editing context manager.
Type:
  • string
Properties:
Name Type Default Description
CONTEXT_CHANGED string editing_context_changed

Methods


getDitaContext()

Return the DITA context used by the current tab.

*********************************
EXPERIMENTAL - Subject to change
********************************

Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.

Since:
  • 22
Returns:
The DITA context.
Type
sync.api.DitaContext

updateDitaContext(context)

Updates the new context - assumes the server-side model of the current editor already has the context set. The server-side model's context can be set using the ro.sync.servlet.operation.SetDitaMapOperation operation.

*********************************
EXPERIMENTAL - Subject to change
********************************

Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.

Parameters:
Name Type Description
context sync.api.DitaContext The DITA context for the current file. Currently only instances of {sync.dita.DitaContext} are supported to provide editing context for DITA files.
Since:
  • 22