Skip to content

Commit a2bbeb4

Browse files
TINY-11909: Add readonly prop to Svelte tech ref
1 parent 2f68e23 commit a2bbeb4

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

modules/ROOT/partials/integrations/svelte-tech-ref.adoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Covered in this section:
77
** xref:id[id]
88
** xref:inline[inline]
99
** xref:disabled[disabled]
10+
** xref:readonly[readonly]
1011
** xref:scriptsrc[scriptsrc]
1112
** xref:conf[conf]
1213
* xref:component-binding[Component binding]
@@ -25,6 +26,7 @@ The `+tinymce-svelte+` `+Editor+` component accepts the following properties:
2526
id="uuid"
2627
inline=false
2728
disabled=false
29+
readonly=false
2830
scriptSrc=undefined
2931
conf={}
3032
modelEvents="input change undo redo"
@@ -134,7 +136,7 @@ Sets the editor to use inline mode.
134136
[[disabled]]
135137
=== `+disabled+`
136138

137-
Set the editor to readonly mode.
139+
Set the editor to disabeld.
138140

139141
*Type:* `+Boolean+`
140142

@@ -149,6 +151,24 @@ Set the editor to readonly mode.
149151
/>
150152
----
151153

154+
[[readonly]]
155+
=== `+readonly+`
156+
157+
Set the editor to readonly mode.
158+
159+
*Type:* `+Boolean+`
160+
161+
*Default value:* `+false+`
162+
163+
==== Example using `+readonly+`
164+
165+
[source,jsx]
166+
----
167+
<Editor
168+
readonly=true
169+
/>
170+
----
171+
152172
[[scriptsrc]]
153173
=== `+scriptSrc+`
154174

0 commit comments

Comments
 (0)