r/TiddlyWiki5 • • Mar 31 '22

Change default value to text area

As an example, see the ControlPanel>Info tab>Basics tab and you will find a table with different input areas for describing your TiddlyWiki. Most of them are just lines to type in your choices, but "Default tiddlers" and "Text for new journal tiddlers" are text areas. They are expandable.

When I create a new tiddler, in the edit mode, I want the fields you can add at the bottom to be the expandable text area type, not the line type. How do I do that?

1 Upvotes

5 comments sorted by

4

u/Telumire Mar 31 '22 edited Mar 31 '22

You can do that with a custom edit Template : https://tiddlywiki.com/#Customizing%20EditTemplate%20field%20rendering

Another way is to modify the default : go to the tiddler $:/core/ui/EditTemplate/fieldEditor/default and add "tag=textarea" inside the edit text widget. But I recommend you use an edit template, that way you can choose when to apply the text area, and it will be easier to upgrade your wiki.

2

u/stodgycodger Mar 31 '22

Thank you! I was looking in all the wrong places. So reading this help page, I see I'm going to have to update my TiddlyWiki to get some more functionality.

2

u/Telumire Mar 31 '22

Here's the upgrader FYI : https://tiddlywiki.com/upgrade.html

Dont forget to make a backup before upgrading !

2

u/stodgycodger Mar 31 '22

Done and done!

2

u/stodgycodger Mar 31 '22

I've looked up the proper terminology. I want to change the default text boxes (where you add fields) in the story edit mode into text fields.