Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions modules/ROOT/partials/integrations/react-tech-ref.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
** xref:licenseKey[`+licenseKey+`]
** xref:cloudchannel[`+cloudChannel+`]
** xref:disabled[`+disabled+`]
** xref:readonly[`+readonly+`]
** xref:id[`+id+`]
** xref:init[`+init+`]
** xref:initialvalue[`+initialValue+`]
Expand Down Expand Up @@ -143,7 +144,8 @@ xref:toolbar[`+toolbar+`]:: Specify the editor toolbar. This will *override* the

These props can be updated after the editor is initialized. Note that there are xref:event-binding[other events] not mentioned here.

xref:disabled[`+disabled+`]:: Should the editor be in read-only mode.
xref:disabled[`+disabled+`]:: Should the editor be disabled.
xref:readonly[`+readonly+`]:: Should the editor be in read-only mode.

xref:initialvalue[`+initialValue+`]:: The starting value of the editor. Changing this value after the editor has loaded will reset the editor (including the editor content).

Expand Down Expand Up @@ -240,7 +242,7 @@ For information {productname} development channels, see: xref:editor-plugin-vers
[[disabled]]
=== `+disabled+`

The `+disabled+` prop can dynamically switch the editor between a "disabled" (read-only) mode (`+true+`) and the standard editable mode (`+false+`).
The `+disabled+` prop can dynamically toggle the editor's disabled state.

*Type:* `Boolean`

Expand All @@ -257,6 +259,26 @@ The `+disabled+` prop can dynamically switch the editor between a "disabled" (re
/>
----

[[readonly]]
=== `+readonly+`

The `+readonly+` prop can dynamically switch the editor between a read-only mode (`+true+`) and the standard editable mode (`+false+`).

*Type:* `Boolean`

*Default value:* `+false+`

*Possible values:* `+true+`, `+false+`

==== Example: using `+readonly+`

[source,jsx]
----
<Editor
readonly={true}
/>
----

[[id]]
=== `+id+`

Expand Down