MD Composer extras

Just in case anyone wants to hide ALL the buttons from non-staff users, here is my code:

body:not(.staff) .d-editor-button-bar {
    /* Hide specific buttons */
    button {    
        /* Inline buttons */
        &.align_justify_button, 
        &.align_right_button,
        &.align_center_button,
        &.subscript_button,
        &.superscript_button,
        &.strikethrough_button,
        &.underline_button
        {
            display: none;
        }
        
        /* Popup menu */
        &.toolbar-popup-menu-options {
            [data-name="Float left"],
            /* ... */ {
                display: none;
            }
        }
    }
}
2 Likes

I’m now getting a display bug where the extra dropdown “gear” button doesn’t display anything other than a loading bar when I have this theme component installed. This seems to only happen on mobile

1 Like

NVIDIA_Share_vDawBTzSO5

It seems I completely forgot to update the API for mobile in my previous PR. :man_facepalming:

I will make a new PR ASAP.

2 Likes