Formatting toolbar

It doesn’t seem like they have a better one still, but with CSS now you could apply a transform: scaleX(-1) to flip it 180 for a sneaky hack.

This is 5 years too late, just coming here to thank you for keeping this plugin updated and being so responsive to discussions about customizing it. I’ll probably fork it to add some of my own tweaks and codes in the future, just wanted to share my current thoughts on it.

5 Likes

Didn’t think of that, that’s a good idea

2 Likes

Is it possible to customize the toolbar based on role?

i.e. super minimal formatting options for most users but some more advanced options for admins, mods and content creators.

It should be doable. In the body class, a few groups class are added

By default you can hide buttons

.d-editor-button-bar .center_ui_button {
    display: none;
}

And then with each group, show them

.group-moderators .d-editor-button-bar .center_ui_button {
    display: inline-flex;
}

But you need to be sure these groups are added in the body class (I assume it’s set in the security tab in each category settings)

3 Likes

I just updated my Discourse install to the latest version and I saw this message:

[Admin Notice] Plugin ‘discourse-formatting-toolbar’ contains code which needs updating. (id:discourse.resolver-resolutions)

Which I assume is from this plugin. Is this plugin going to be updated for whatever part of the code that needs updating?

I think I saw that the last commit to this plugin was already a few years ago, so if not updated, it might be the case that everyone still using this would need to uninstall.

1 Like

The markdown engine and toolbar options were pretty stable lately that’s why I didn’t add any update. I’ll look into it. I don’t know what the discourse team changed this time.

But I probably will stop my plugins and theme components in the future

2 Likes

Well that is unfortunate. Thanks for making this plugin originally, many members on our forums made use of it over the years.

I guess I next need to look for a replacement plugin.

I pushed an upgrade, it was a little detail. I like those changes

1 Like

Do you mean creating or maintaining?

I’d need a :saluting_face: “thank you for your service” reaction for those kind of announcements :smiling_face_with_tear:

On a more serious note, would AI be a particularly efficient tool to provide fixes for this kind of maintenance, as long they are human-reviewed?

Would you accept and merge PRs still?

I’m not a big AI guy, the one time I tried it was useless.

If the update is not too much trouble I will continue since I need a toolbar like this and a better mobile theme, but between the lack of infos and the frequency of big changes it can be anniying at times.

I welcome any PR of course.

1 Like