Skip to content

Commit

Permalink
Update private/js/tiptap_plugins/cms.toolbar.js
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
fsbraun and sourcery-ai[bot] authored Dec 26, 2024
1 parent 2b5f44e commit 90f93a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/js/tiptap_plugins/cms.toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function _updateToolbar(editor, toolbar) {
selector = 'button, [role="button"]';
}
for (const button of toolbar.querySelectorAll(selector)) {
const action = button.dataset.action;
const {action} = button.dataset;
if (action) {
if (TiptapToolbar[action]) {
const toolbarItem = window.cms_editor_plugin._getRepresentation(action);
Expand Down

0 comments on commit 90f93a9

Please sign in to comment.