jrgong
(jrgong)
2024 年4 月 24 日 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
2024 年5 月 6 日 18: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)
2024 年8 月 8 日 13: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
2024 年8 月 8 日 13:09
67
1 个赞
jrgong
(jrgong)
2024 年8 月 8 日 13: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
2025 年4 月 25 日 09: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)
2025 年7 月 8 日 08: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 个赞
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 个赞