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

Sorry for the wait – I had forgotten about that. :derp:


@piffy
Thanks to Steven, the PR has been merged. :clap:

5 Likes

Any chance we could also add buttons for hightlight?

<mark>hightlight</mark>

Our staff uses that frequently and would like to have a composer button for that

You could try Composer Highlighted Button

1 Like

Oh sweet, that’s even better! Thx for sharing

1 Like