Skip to content

Commit 32434fc

Browse files
committed
DOC-3246: Improvements
1 parent dfadc29 commit 32434fc

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

modules/ROOT/examples/live-demos/suggestededits/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
/** Fake user database */
22
const userDb = {
33
adamhayes: {
4-
id: 'adamhayes',
5-
name: 'Adam Hayes',
6-
avatar: `https://randomuser.me/api/portraits/men/4.jpg`,
4+
id: 'adamhayes',
5+
name: 'Adam Hayes',
6+
avatar: `https://randomuser.me/api/portraits/men/4.jpg`,
77
},
88
martincook: {
9-
id: 'martincook',
10-
name: 'Martin Cook',
11-
avatar: `https://randomuser.me/api/portraits/men/5.jpg`,
9+
id: 'martincook',
10+
name: 'Martin Cook',
11+
avatar: `https://randomuser.me/api/portraits/men/5.jpg`,
1212
},
1313
kalebwilson: {
14-
id: 'kalebwilson',
15-
name: 'Kaleb Wilson',
16-
avatar: `https://randomuser.me/api/portraits/men/6.jpg`,
14+
id: 'kalebwilson',
15+
name: 'Kaleb Wilson',
16+
avatar: `https://randomuser.me/api/portraits/men/6.jpg`,
1717
},
1818
sarahjones: {
19-
id: 'sarahjones',
20-
name: 'Sarah Jones',
21-
avatar: `https://randomuser.me/api/portraits/women/1.jpg`,
19+
id: 'sarahjones',
20+
name: 'Sarah Jones',
21+
avatar: `https://randomuser.me/api/portraits/women/1.jpg`,
2222
}
2323
};
2424

modules/ROOT/partials/commands/suggestededits-cmds.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[cols="1,3",options="header"]
22
|===
33
|Command |Description
4-
5-
|suggestededits |Toggle the Suggested Edits view
4+
|suggestededits |Toggles the Suggested Edits view.
65
|===
76

8-
.Examples
7+
.Example
98
[source,js]
109
----
1110
tinymce.activeEditor.execCommand('suggestededits');

modules/ROOT/partials/configuration/defaultmenuitems.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tinymce.init({
55
menu: {
66
file: { title: 'File', items: 'newdocument restoredraft | preview | importword exportpdf exportword | print | deleteallconversations' },
77
edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall | searchreplace' },
8-
view: { title: 'View', items: 'code revisionhistory suggestededits | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments' },
8+
view: { title: 'View', items: 'code suggestededits revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments' },
99
insert: { title: 'Insert', items: 'image link media addcomment pageembed codesample inserttable | math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime' },
1010
format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat' },
1111
tools: { title: 'Tools', items: 'spellchecker spellcheckerlanguage | a11ycheck code wordcount' },

modules/ROOT/partials/events/suggestededits-events.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ The following events are provided by the xref:{plugincode}.adoc[{pluginname} plu
33
[cols="1,1,2",options="header"]
44
|===
55
|Name |Data |Description
6-
|suggestededitsBeginReview |N/A |The Suggested Edits view has opened.
7-
|suggestededitsReviewComplete |N/A |A review in the Suggested Edits view has been completed.
8-
|suggestededitsReviewCancelled |N/A |A review in the Suggested Edits view was cancelled.
6+
|SuggestedEditsBeginReview |N/A |The Suggested Edits view has opened.
7+
|SuggestedEditsReviewComplete |N/A |A review in the Suggested Edits view has been completed.
8+
|SuggestedEditsReviewCancelled |N/A |A review in the Suggested Edits view was cancelled.
9+
|SuggestedEditsHasChangesUpdate |`+hasChanges+` |The Suggested Edits model is updated. The `+hasChanges+` data is a boolean value indicating whether there are suggestions to review.
910
|===

modules/ROOT/partials/plugin-apis/suggestededits-apis.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
|hasChanges |N/A |Returns a boolean value indicating whether the document contains any suggested edits.
88
|===
99

10-
== Examples
10+
.Examples
1111

1212
[source,js]
1313
----
@@ -25,7 +25,7 @@ tinymce.activeEditor.plugins.suggestededits.hasChanges();
2525
----
2626

2727
[[get_model]]
28-
== `getModel` Example
28+
.`getModel` Example
2929

3030
This example demonstrates how to submit the current document and model to a server, to ensure they are saved synchronously. The current model is retrieved using the `getModel` API.
3131

@@ -76,7 +76,7 @@ tinymce.init({
7676
----
7777

7878
[[set_model]]
79-
== `setModel` Example
79+
.`setModel` Example
8080

8181
This example demonstrates how to set the model and the document in the editor, after fetching them from a server. The `setModel` method sets the current model of the document and the editor content, as generated from that model.
8282

@@ -101,7 +101,7 @@ tinymce.init({
101101
----
102102

103103
[[reset_model]]
104-
== `resetModel` Example
104+
.`resetModel` Example
105105

106106
This example demonstrates how to reset the model to the current content of the editor, clearing all suggestions. The `resetModel` method generates a new model from the current content and sets it as the current model.
107107

@@ -130,7 +130,7 @@ tinymce.init({
130130
----
131131

132132
[[has_changes]]
133-
== `hasChanges` Example
133+
.`hasChanges` Example
134134

135135
This example demonstrates how to check if there are any changes in the document that need to be reviewed before saving. The `hasChanges` method is used to determine if there are any unreviewed edits.
136136

0 commit comments

Comments
 (0)