Skip to content

Commit c28b2fd

Browse files
committed
Additional change
1 parent 4e28add commit c28b2fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/ROOT/partials/configuration/suggestededits_content.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ NOTE: You are responsible for saving the model and providing it on the next load
1919
.Example: using `suggestededits_content`
2020
[source,js]
2121
----
22+
const tinymceElement = document.querySelector('textarea#suggestededits');
23+
const model = JSON.parse(tinymceElement.getAttribute('suggestededits-model'));
24+
2225
tinymce.init({
2326
selector: 'textarea#suggestededits', // Change this value according to your HTML
2427
plugins: 'suggestededits',
2528
toolbar: 'suggestededits',
26-
suggestededits_model, // Load the saved model into the editor
29+
suggestededits_model: model, // Load the saved model into the editor
2730
suggestededits_content: 'model' // Set to 'model' if you want to load the initial content from the `suggestededits_model` option
2831
});
2932
----

0 commit comments

Comments
 (0)