Skip to content

Commit

Permalink
Merge pull request #20 from jmulet/develop
Browse files Browse the repository at this point in the history
defered setupCommands does not work on 4.1.2
  • Loading branch information
jmulet authored Dec 1, 2024
2 parents 1daa74b + bd20bb3 commit 6b30ced
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 6b30ced

Please sign in to comment.