Skip to content

Commit 4b93611

Browse files
committed
Docs: DOC-3243 - The noneditable feature can now be disabled with the new allow_noneditable option.
1 parent 8d0bcc7 commit 4b93611

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

modules/ROOT/pages/8.4.0-release-notes.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
125125

126126
// CCFR here.
127127

128+
=== The noneditable feature can now be disabled with the new `allow_noneditable` option.
129+
// #TINY-10121
130+
131+
Previously, the noneditable plugin was converted to a feature in core in {productname} 6. The feature was always enabled with no documented way to turn it off, which was not always desirable for integrators.
132+
133+
In {productname} {release-version}, a new xref:non-editable-content-options.adoc#allow_noneditable[`+allow_noneditable+`] option is available. It is enabled by default. When set to `+false+`, the noneditable feature is disabled, equivalent to disabling the plugin prior to {productname} 6.
134+
128135

129136
[[changes]]
130137
== Changes

modules/ROOT/pages/non-editable-content-options.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ liveDemo::editable-class-and-editable-root[]
1313
[NOTE]
1414
Visit xref:ie-template-creation.adoc[Template creation example] for a practical example of multi-root editing.
1515

16+
// allow_noneditable
17+
include::partial$configuration/allow_noneditable.adoc[]
18+
1619
// noneditable_class
1720
include::partial$configuration/noneditable_class.adoc[]
1821

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[[allow_noneditable]]
2+
== `+allow_noneditable+`
3+
4+
This option controls whether the non-editable content feature is enabled. When set to `+false+`, the non-editable feature is disabled entirely, equivalent to disabling the `noneditable` plugin prior to {productname} 6.
5+
6+
*Type:* `+Boolean+`
7+
8+
*Default value:* `+true+`
9+
10+
=== Example: using `+allow_noneditable+`
11+
12+
[source,js]
13+
----
14+
tinymce.init({
15+
selector: 'textarea', // change this value according to your HTML
16+
allow_noneditable: false
17+
});
18+
----

0 commit comments

Comments
 (0)