Install this theme component
Composer Highlighted Button for Discourse
Adds a Highlighted Text button to the composer in Discourse. Wraps the selected text in HTML <mark></mark> tags.
See also
4개의 좋아요
Good work!
But the range of Theme Components is a little … profuse … for such small differences?
Why not just have one Theme Component, with settings governing what is available?
3개의 좋아요
Yeah, I agree. Do you think I should just combine the Highlighted button with the Inserted and Deleted?
2개의 좋아요
That’s what I would do and just let people decide which features they want exposed?
With that approach you could also add more features with time (if they were similar in nature).
2개의 좋아요
I’d prefer one component that I could keep adding more buttons to, with each button having it’s own toggle on and off in the settings.
For now I could add settings to optionally place the buttons in the existing dropdown, but that seems awkward too.
One button that (on click or optionally on hover) pops open a row of buttons would be preferable to a dropdown IMO.
3개의 좋아요
RGJ
(Richard - Communiteq)
7월 8, 2025, 8:57오전
6
This theme component is broken on 3.5.0.beta8-dev
Uncaught (in promise) TypeError: i.getModel() is undefined
default api-setup.js:53
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 74
_triggerAction d-button.gjs:135
click d-button.gjs:93
and this one as well.
1개의 좋아요
philh
10월 21, 2025, 6:00오후
7
Thanks for the theme component! It has been very handy for highlight multiple paragraphs as once as opposed to using BBCode for each string of text.
There is a small issue when the text is highlighted. The last bit of text is “clipped”.