jrgong
(jrgong)
April 24, 2024, 11:28am
62
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
piffy
May 6, 2024, 6:15pm
63
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
It seems I completely forgot to update the API for mobile in my previous PR.
I will make a new PR ASAP.
2 Likes
Sorry for the wait – I had forgotten about that.
MonDiscourse:master
← Arkshine:user-new-api-mobile
opened 02:53AM - 22 May 24 UTC
Same as #12 but for mobile.
I forgot to update the file.
@piffy
Thanks to Steven, the PR has been merged.
5 Likes
jrgong
(jrgong)
August 8, 2024, 1:07pm
66
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
Moin
August 8, 2024, 1:09pm
67
1 Like
jrgong
(jrgong)
August 8, 2024, 1:11pm
68
Oh sweet, that’s even better! Thx for sharing
1 Like