fonto:is-node-read-only

Type: Function

Returns true if the given node is read-only for any reason.

This includes cases where the entire document is read-only (e.g., due to its lock being unavailable or the document being out of sync with the CMS). It also includes cases where the node or an ancestor is configured as read-only using configureAsReadOnly.

This function can not be used to determine whether the node is rendered in a document preview.

Note that for technical reasons, this function currently returns true for any node in the Fonto Review app. This behavior may change in a future release.

Arguments

  1. node

    (Required)

    Type: Node

    The node to check.

Returns

Type: Boolean

Whether the node should be considered read-only.