ProposalState

Type: String

Static properties

DISABLED_CONTENT_READONLY

The state returned when any content in the proposal's range is for any reason read only.

DISABLED_DOCUMENT_LOCKED

The state returned when the proposal's document is locked.

DISABLED_DOCUMENT_NOT_LOADED

The state returned when the proposal's document has not been loaded (yet).

DISABLED_DOCUMENT_OUT_OF_SYNC

The state returned when the proposal's document is out of sync.

DISABLED_DOCUMENT_SAVE_ERROR

The state returned when the proposal's document has any save error.

DISABLED_PROPOSAL_CONTAINS_NEWLINES

The state returned when the proposed change contains newlines.

DISABLED_TEXT_CHANGED

The state returned when the target text in the content does not match the original text. This means that the content has been changed inside the annotation range.

DISABLED_TEXT_CONTAINS_NEWLINES

The state returned when the target text in the content contains any sort of newlines or block borders.

DISABLED_TOMBSTONED

The state returned when the proposal is tombstoned.

DISABLED_VALIDATION_FAILED

The state returned when merging the proposal would result in an invalid XML document.

ENABLED

The state returned for proposals that can be merged. This reflects a state in which the merge button is enabled.

MERGED

The state returned when the proposal is merged. This might happen after merging via the onProposalMerge callback or when the proposal has been merged manually.

MERGING

The state returned when merging a proposal in progress. This state is only returned when the proposal is merged via the onProposalMerge callback.

NOT_APPLICABLE

The state returned for annotations that are not a propsal. These annotations lack a metadata.proposedChange field.