Removing Buttons from Composer
-
We would like to use the following plugin however it adds many buttons to the composer:
https://github.com/MinecraftForgeFrance/nodebb-plugin-extended-markdownWe do not want to use all the buttons and features. Is it possible to remove some of the buttons from composer? or maybe add a panel that will hold the buttons that we pick (a panel above similar to what appears when emoji button is clicked. so we can move unpopular buttons there)
Additionally, when number of buttons are a lot and some goes off the screen, although there is a slide appearing on mobile, on desktop that slide is not appearing and some of the buttons are staying off the screen FYI @baris , I guess this is a bug...
-
You can hide them with CSS, for instance this one hides the bold button:
.composer .formatting-bar .formatting-group li[data-format="bold"] { display: none; }
-
@PitaJ said in Removing Buttons from Composer:
You can hide them with CSS, for instance this one hides the bold button:
.composer .formatting-bar .formatting-group li[data-format="bold"] { display: none; }
Great, thanks a lot. That worked very well. Is there any easy line that can be added to make some buttons active for admins but undisplayed for everyone else.
-
@crazycells add this to the custom javascript:
window.addEventListener('load', function () { document.documentElement.classList.toggle('is-not-admin', !app.user.isAdmin); });
Then just put
.is-not-admin .composer ....
instead -
@PitaJ said in Removing Buttons from Composer:
@crazycells add this to the custom javascript:
window.addEventListener('load', function () { document.documentElement.classList.toggle('is-not-admin', !app.user.isAdmin); });
Then just put
.is-not-admin .composer ....
insteadThanks a lot.