Skip to content

Commit

Permalink
Add event for Editor JS toolbar setup
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Jan 16, 2024
1 parent 88824c3 commit 626bbd5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 13,792 deletions.
5 changes: 5 additions & 0 deletions assets/js/editor-provider/editorjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class EditorJSProvider {
}
});

// dispatch custom event to allow project to add toolbar
document.dispatchEvent(new CustomEvent('mbiz:rich-editor:editorjs:toolbar', {
'detail': {'toolbar': toolbar}
}));

return toolbar;
}

Expand Down
268 changes: 1 addition & 267 deletions src/Resources/public/css/rich-editor-css.css

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

Loading

0 comments on commit 626bbd5

Please sign in to comment.