An implementation of a document context.

This class is typically instantiated by the document manager.

Type Parameters

Implements

Constructors

Properties

sessionContext: SessionContext

The client session object associated with the context.

translator: ITranslator

Accessors

Methods

  • Save the document to a different path chosen by the user.

    Returns Promise<boolean>

    A promise that resolves to true if the save operation was initiated. Returns false if the user cancelled the operation.

    Note:

    • If the save operation proceeds but fails due to an error in the content manager, the returned value will still be true.
    • Consumers interested in the actual result of the save should listen to the saveState signal to be notified when the save succeeds or fails.