Skip to content

Commit 2d858c7

Browse files
author
Farzad Hayatbakhsh
committed
DOC-1928: Update config options part 3 (N-R)
1 parent 4fb435c commit 2d858c7

31 files changed

+128
-493
lines changed

modules/ROOT/partials/configuration/_checklist.md

Lines changed: 0 additions & 402 deletions
This file was deleted.

modules/ROOT/partials/configuration/newdocument_content.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[newdocument_content]]
22
== `+newdocument_content+`
33

4-
This option sets the content a new editor contains when the xref:available-menu-items.adoc#the-core-menu-items[File -> New document] menu item is invoked.
4+
This option sets the content a new editor contains when the xref:available-menu-items.adoc#the-core-menu-items[menu:File[New document]] menu item is invoked.
55

66
*Type:* `+String+`
77

modules/ROOT/partials/configuration/nonbreaking_force_tab.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[[nonbreaking_force_tab]]
22
== `+nonbreaking_force_tab+`
33

4-
This option allows you to force {productname} to insert three `+ +` entities when the user presses the keyboard kbd:[Tab] key.
4+
This option allows you to force {productname} to insert a specified number of `+ +` entities when the user presses the keyboard kbd:[Tab] key.
5+
6+
When set to `+true+`, it will insert three `+ +` entities. When set to a number, it will insert that many `+ +` entities.
57

68
It's important to note that this does not change the behavior of the menu and toolbar controls, which will continue to insert a single `+&nbsp+` entity when `+nonbreaking_force_tab+` value is `+true+`.
79

@@ -16,9 +18,9 @@ The `+nonbreaking_force_tab+` setting can break the following functionality:
1618
* The `+lists+` plugin uses the kbd:[Tab] key for item indentation.
1719
====
1820

19-
*Type:* `+Boolean+`
21+
*Type:* `+Boolean+` or `+Number+`
2022

21-
*Possible values:* `+true+`, `+false+`
23+
*Possible values:* `+true+`, `+false+`, or any positive number
2224

2325
*Default value:* `+false+`
2426

modules/ROOT/partials/configuration/noneditable_regexp.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ This option is used to specify a regular expression or array of regular expressi
55

66
NOTE: If elements are matched by the regular expression, the elements will be replaced with spans. Use xref:noneditable_class[`+noneditable_class+`] for elements.
77

8-
*Type:* `+String+`
8+
*Type:* `+RegExp+` or `+Array+` of `+RegExp+`
9+
10+
*Default value:* `+[]+`
911

1012
=== Example: using `+noneditable_regexp+`
1113

modules/ROOT/partials/configuration/object_resizing.adoc

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33

44
This options allows you to turn on/off the resizing handles on images, tables or media objects. This option is enabled by default and allows you to resize table and images. You can also specify a CSS3 selector of what you want to enable resizing on.
55

6-
=== Disable all resizing of images/tables
6+
*Type:* `+Boolean+` or `+String+`
77

8-
*Type:* `+Boolean+`, `+String+`
8+
*Possible values:* `+true+`, `+false+`, or a valid CSS selector
99

10-
*Possible values:* `+true+`, `+false+`
11-
12-
*Default value:* `+true+`, or a valid CSS selector
10+
*Default value:* `+'table,img,figure.image,div,video,iframe'+` on desktop, `+false+` on mobile
1311

1412
include::partial$misc/admon-different-default-for-mobile.adoc[]
1513

16-
==== Example: disable object resizing
14+
=== Example: disable all object resizing
1715

1816
[source,js]
1917
----
@@ -23,15 +21,7 @@ tinymce.init({
2321
});
2422
----
2523

26-
=== Enable resizing on images only
27-
28-
*Type:* `+Boolean+`, `+String+`
29-
30-
*Possible values:* `+true+`, `+false+`
31-
32-
*Default value:* `+true+`, `+img+`
33-
34-
==== Example: enable object resizing for images
24+
=== Example: enable object resizing for images only
3525

3626
[source,js]
3727
----

modules/ROOT/partials/configuration/pagebreak_separator.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[[pagebreak_separator]]
22
== `+pagebreak_separator+`
33

4+
The `+pagebreak_separator+` option allows you to specify the separator string that will be used to identify page breaks in the content.
5+
46
*Type:* `+String+`
57

68
*Default value:* `+'<!-- pagebreak -->'+`

modules/ROOT/partials/configuration/pagebreak_split_block.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[pagebreak_split_block]]
22
== `+pagebreak_split_block+`
33

4-
When enabled this option makes it easier to split block elements with a page break.
4+
When enabled, this option makes it easier to split block elements with a page break.
55

66
*Type:* `+Boolean+`
77

modules/ROOT/partials/configuration/paste_as_text.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[paste_as_text]]
22
== `+paste_as_text+`
33

4-
This option enables you to set the default state of the `+Paste as text+` menu item under the `+Edit+` menu dropdown. It's disabled by default.
4+
This option enables you to set the default state of the menu:Edit[Paste as text] menu item.
55

66
*Type:* `+Boolean+`
77

modules/ROOT/partials/configuration/paste_postprocess.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
ifndef::pluginname[]
55

6-
This option enables you to modify the pasted content before it gets inserted into the editor, but after it's been parsed into a DOM structure.
6+
This option allows you to modify the pasted content before it gets inserted into the editor, but after it's been parsed into a DOM structure.
77

88
*Type:* `+Function+`
99

10+
*Default value:* `+undefined+`
11+
1012
=== Example: using `+paste_postprocess+`
1113

1214
[source,js]
@@ -36,6 +38,8 @@ NOTE: The mode 'auto' is used when the content source does not have formatting t
3638

3739
*Type:* `+Function+`
3840

41+
*Default value:* `+undefined+`
42+
3943
=== Example {productname} configuration:
4044

4145
[source,js]

modules/ROOT/partials/configuration/paste_preprocess.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
ifndef::pluginname[]
55

6-
This option enables you to modify the pasted content before it gets inserted into the editor.
6+
This option allows you to modify the pasted content before it gets inserted into the editor.
77

88
*Type:* `+Function+`
99

10+
*Default value:* `+undefined+`
11+
1012
=== Example: using `+paste_preprocess+`
1113

1214
[source,js]
@@ -36,6 +38,8 @@ NOTE: The mode 'auto' is used when the content source does not have formatting t
3638

3739
*Type:* `+Function+`
3840

41+
*Default value:* `+undefined+`
42+
3943
=== Example {productname} configuration:
4044

4145
[source,js]

0 commit comments

Comments
 (0)