Skip to content

Commit

Permalink
defered setupCommands does not work on 4.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuletpol committed Dec 1, 2024
1 parent 341dd10 commit bd20bb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion amd/build/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/plugin.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions amd/src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ export default new Promise(async(resolve) => {
// Register options.
registerOptions(editor);
// Resolve the Plugin and include configuration.
// Setup commands (only if the content has been set) to prevent from opening the modal without content.
editor.once('SetContent', () => {
setupCommands(editor);
});
setupCommands(editor);
return pluginMetadata;
});

Expand Down

0 comments on commit bd20bb3

Please sign in to comment.