File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
modules/ROOT/partials/configuration Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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+
2225tinymce.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----
You can’t perform that action at this time.
0 commit comments