File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
content_editor/static/content_editor Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 522
522
// Hide not allowed plugin buttons
523
523
// If buttons only checks this buttons, else checks all
524
524
function updatePluginButtonsVisibility ( ) {
525
- const buttons = qsa ( ".plugin-buttons .plugin-button" )
525
+ const buttons = qsa ( ".plugin-buttons .plugin-button[data-plugin-prefix] " )
526
526
let visible = 0
527
527
528
528
for ( const button of buttons ) {
569
569
ret = plugin
570
570
}
571
571
}
572
- console . debug ( { id, ret } )
573
572
return ret
574
573
}
575
574
1081
1080
. toArray ( )
1082
1081
. filter ( ( inline ) => inline . classList . contains ( "has_original" ) )
1083
1082
1084
- console . debug ( { region, inlines } )
1085
-
1086
1083
if ( ! inlines . length ) {
1087
1084
continue
1088
1085
}
1112
1109
1113
1110
for ( const inline of inlines ) {
1114
1111
const { prefix, model } = getPluginTypeFromId ( inline . id )
1115
- console . debug ( { prefix, model } )
1116
1112
nextIndent = Math . max (
1117
1113
0 ,
1118
1114
indent + ContentEditor . pluginsByPrefix [ prefix ] . sections ,
1129
1125
"ul input[type=checkbox]" ,
1130
1126
e . target . closest ( "li" ) ,
1131
1127
)
1132
- console . debug ( "checkbox click handler" , { e, checkboxes } )
1133
1128
for ( const cb of checkboxes ) {
1134
1129
cb . checked = e . target . checked
1135
1130
}
You can’t perform that action at this time.
0 commit comments