jrgong
(jrgong)
24 أبريل 2024، 11:28ص
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)
piffy
6 مايو 2024، 6:15م
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)
It seems I completely forgot to update the API for mobile in my previous PR.
I will make a new PR ASAP.
إعجابَين (2)
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 إعجابات
jrgong
(jrgong)
8 أغسطس 2024، 1:07م
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
8 أغسطس 2024، 1:09م
67
إعجاب واحد (1)
jrgong
(jrgong)
8 أغسطس 2024، 1:11م
68
Oh sweet, that’s even better! Thx for sharing
إعجاب واحد (1)
@Steven it looks like this TC has disappeared from GitHub, was this deliberate?
https://github.com/iunctis/md-composer-extras has gone 404
إعجاب واحد (1)
Steven
25 أبريل 2025، 9:03ص
70
I messed up this week and had to recreate the componant on github and it lost the redirection
This link should work
Decriptions and more infos in : https://meta.discourse.org/t/md-composer-extras/118912
https://github.com/MonDiscourse/md-composer-extras
إعجابَين (2)
RGJ
(Richard - Communiteq)
8 يوليو 2025، 8:55ص
71
This theme component seems to break (here ) on 3.5.0.beta8-dev
Uncaught (in promise) TypeError: e.getModel() is undefined
default api-setup.js:129
eZ plugin-api.gjs:232
Ember 2
_decorateCookedElement composer-editor.gjs:546
previewUpdated composer-editor.gjs:937
18150 decorated-html.gjs:28
Z Ember
18150 decorated-html.gjs:28
compute helper-fn.js:41
Ember 73
إعجابَين (2)
Steven
8 يوليو 2025، 12:27م
72
Thanks for the report, I think it was an old code, that didn’t serve any purpose. I’ve deleted this part, updated the component and it works fine
3 إعجابات