1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-05 16:28:05 +00:00

Add a primitive custom palette editor

This commit is contained in:
Jeremy Ruston
2025-01-02 17:10:51 +00:00
parent b90b449ceb
commit c02c82557b
3 changed files with 25 additions and 0 deletions

View File

@@ -6,6 +6,12 @@ caption: {{$:/language/ControlPanel/Palette/Caption}}
{{$:/snippets/paletteswitcher}}
<$let paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}>
<%if [<paletteEditor>!match[]] %>
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
<%endif%>
</$let>
<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes">
<$button set="$:/state/ShowPaletteEditor" setTo="yes"><<lingo ShowEditor/Caption>></$button>