Skip to content

Commit 1ea5150

Browse files
committed
Stop crashing and remove debug statements
1 parent 92b1fae commit 1ea5150

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

content_editor/static/content_editor/content_editor.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
// Hide not allowed plugin buttons
523523
// If buttons only checks this buttons, else checks all
524524
function updatePluginButtonsVisibility() {
525-
const buttons = qsa(".plugin-buttons .plugin-button")
525+
const buttons = qsa(".plugin-buttons .plugin-button[data-plugin-prefix]")
526526
let visible = 0
527527

528528
for (const button of buttons) {
@@ -569,7 +569,6 @@
569569
ret = plugin
570570
}
571571
}
572-
console.debug({ id, ret })
573572
return ret
574573
}
575574

@@ -1081,8 +1080,6 @@
10811080
.toArray()
10821081
.filter((inline) => inline.classList.contains("has_original"))
10831082

1084-
console.debug({ region, inlines })
1085-
10861083
if (!inlines.length) {
10871084
continue
10881085
}
@@ -1112,7 +1109,6 @@
11121109

11131110
for (const inline of inlines) {
11141111
const { prefix, model } = getPluginTypeFromId(inline.id)
1115-
console.debug({ prefix, model })
11161112
nextIndent = Math.max(
11171113
0,
11181114
indent + ContentEditor.pluginsByPrefix[prefix].sections,
@@ -1129,7 +1125,6 @@
11291125
"ul input[type=checkbox]",
11301126
e.target.closest("li"),
11311127
)
1132-
console.debug("checkbox click handler", { e, checkboxes })
11331128
for (const cb of checkboxes) {
11341129
cb.checked = e.target.checked
11351130
}

0 commit comments

Comments
 (0)