From a2bbeb47533f47bd3b129c8bf642fb686353a9b3 Mon Sep 17 00:00:00 2001 From: lorenzo-pomili Date: Tue, 27 May 2025 07:31:10 +0200 Subject: [PATCH 1/2] TINY-11909: Add `readonly` prop to Svelte tech ref --- .../integrations/svelte-tech-ref.adoc | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/partials/integrations/svelte-tech-ref.adoc b/modules/ROOT/partials/integrations/svelte-tech-ref.adoc index 7b41df09e6..c3afa88a7b 100644 --- a/modules/ROOT/partials/integrations/svelte-tech-ref.adoc +++ b/modules/ROOT/partials/integrations/svelte-tech-ref.adoc @@ -7,6 +7,7 @@ Covered in this section: ** xref:id[id] ** xref:inline[inline] ** xref:disabled[disabled] +** xref:readonly[readonly] ** xref:scriptsrc[scriptsrc] ** xref:conf[conf] * xref:component-binding[Component binding] @@ -25,6 +26,7 @@ The `+tinymce-svelte+` `+Editor+` component accepts the following properties: id="uuid" inline=false disabled=false + readonly=false scriptSrc=undefined conf={} modelEvents="input change undo redo" @@ -134,7 +136,7 @@ Sets the editor to use inline mode. [[disabled]] === `+disabled+` -Set the editor to readonly mode. +Set the editor to disabeld. *Type:* `+Boolean+` @@ -149,6 +151,24 @@ Set the editor to readonly mode. /> ---- +[[readonly]] +=== `+readonly+` + +Set the editor to readonly mode. + +*Type:* `+Boolean+` + +*Default value:* `+false+` + +==== Example using `+readonly+` + +[source,jsx] +---- + +---- + [[scriptsrc]] === `+scriptSrc+` From ce06aec8df93a1f37b40ad4e59435008bafacc84 Mon Sep 17 00:00:00 2001 From: lorenzo-pomili Date: Tue, 27 May 2025 07:40:52 +0200 Subject: [PATCH 2/2] TINY-11909: typo --- modules/ROOT/partials/integrations/svelte-tech-ref.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/partials/integrations/svelte-tech-ref.adoc b/modules/ROOT/partials/integrations/svelte-tech-ref.adoc index c3afa88a7b..8c884b7938 100644 --- a/modules/ROOT/partials/integrations/svelte-tech-ref.adoc +++ b/modules/ROOT/partials/integrations/svelte-tech-ref.adoc @@ -136,7 +136,7 @@ Sets the editor to use inline mode. [[disabled]] === `+disabled+` -Set the editor to disabeld. +Set the editor to disabled. *Type:* `+Boolean+`