Revision

23 Sep 20251 minute to read

The revision class which holds the information related to changes made in the document

Properties

author string

Gets or sets the author name who made the change

customData string

To set the custom data value.

date string

Indicates when the track changes made

hasChanges boolean

Private

revisionType RevisionType

Indicates the type of track changes revision

Methods

accept

Method which accepts the selected revision, revision marks will be removed and changes will be included in the viewer.

Returns void

getContent

Retrieves the content of the revision as an HTML string.

Returns string

reject

Method which rejects the selected revision, revision marks will be removed leaving the original content.

Returns void

select

Select the current revision.

Returns void

cloneRevisions

Method to clone the revisions for the element

Parameter Type Description
revisions Revision[] revision array.

Returns string[]