Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ tinymce.init({
.catch(() => ({ id: userId })))),

init_instance_callback: (editor) => {
tinymce.activeEditor.execCommand('suggestededits');
editor.execCommand('suggestededits');
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ tinymce.init({
.catch(() => ({ id: userId })))),

init_instance_callback: (editor) => {
tinymce.activeEditor.execCommand('suggestededits');
editor.execCommand('suggestededits');
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ tinymce.init({
.catch(() => ({ id: userId })))),

init_instance_callback: (editor) => {
tinymce.activeEditor.execCommand('suggestededits');
editor.execCommand('suggestededits');
}
});
2 changes: 1 addition & 1 deletion modules/ROOT/examples/live-demos/suggestededits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ tinymce.init({
.catch(() => ({ id: userId })))),

init_instance_callback: (editor) => {
tinymce.activeEditor.execCommand('suggestededits');
editor.execCommand('suggestededits');
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ NOTE: You are responsible for saving the model and providing it on the next load
.Example: using `suggestededits_content`
[source,js]
----
const tinymceElement = document.querySelector('textarea#suggestededits');
const model = JSON.parse(tinymceElement.getAttribute('suggestededits-model'));

tinymce.init({
selector: 'textarea#suggestededits', // Change this value according to your HTML
plugins: 'suggestededits',
toolbar: 'suggestededits',
suggestededits_model, // Load the saved model into the editor
suggestededits_model: model, // Load the saved model into the editor
suggestededits_content: 'model' // Set to 'model' if you want to load the initial content from the `suggestededits_model` option
});
----
Loading