diff --git a/core/ui/EditTemplate/body-toolbar-button.tid b/core/ui/EditTemplate/body-toolbar-button.tid index 7390b3e201..8a1fb24a12 100644 --- a/core/ui/EditTemplate/body-toolbar-button.tid +++ b/core/ui/EditTemplate/body-toolbar-button.tid @@ -103,9 +103,9 @@ title: $:/core/ui/EditTemplate/body/toolbar/button <$set name="buttonClasses" - value={{!!button-classes}} + value={{{ [subfilter{!!button-classes}] :and[join[ ]] }}} ><> \end -<> \ No newline at end of file +<> diff --git a/editions/tw5.com/tiddlers/howtos/How to create dynamic editor toolbar buttons.tid b/editions/tw5.com/tiddlers/howtos/How to create dynamic editor toolbar buttons.tid index 5ec53f2ee2..2f57c4219a 100644 --- a/editions/tw5.com/tiddlers/howtos/How to create dynamic editor toolbar buttons.tid +++ b/editions/tw5.com/tiddlers/howtos/How to create dynamic editor toolbar buttons.tid @@ -1,5 +1,5 @@ created: 20201216182347597 -modified: 20211018102328148 +modified: 20260206104319886 tags: title: How to create dynamic editor toolbar buttons type: text/vnd.tiddlywiki @@ -91,6 +91,9 @@ This tiddler contains all the necessary elements that are important for toolbar ; shortcuts : This is the [[Keyboard Shortcut Descriptor]] eg: `((temp-bold))` +; button-classes <<.from-version "5.4.0">> +: Additional CSS classes applied to the created button, definable as a list or filter expression + <<< !! Disabled State diff --git a/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9585 - button-classes.tid b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9585 - button-classes.tid new file mode 100644 index 0000000000..f65da49066 --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9585 - button-classes.tid @@ -0,0 +1,13 @@ +title: $:/changenotes/5.4.0/#9585 +created: 20260106174849522 +modified: 20260106174849522 +tags: $:/tags/ChangeNote +change-type: enhancement +change-category: usability +description: The button classes of Editor toolbar buttons can now be evaluated as filter expressions +release: 5.4.0 +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9585 +github-contributors: BurningTreeC +type: text/vnd.tiddlywiki + +This change lets you define the button-classes of Editor toolbar buttons as filters for flexible styling