[TW5] Add button to convert INPUT to TEXTAREA in tiddler edit mode, how?

78 views
Skip to first unread message

Siniy-Kit

unread,
Oct 5, 2015, 1:33:13 PM10/5/15
to TiddlyWiki
Hi! Sometimes while editing fields in tiddler I need more then 1 line input. is it possible to add "enlarge" button to many lines near delete field button?

Mat

unread,
Oct 5, 2015, 2:01:48 PM10/5/15
to tiddl...@googlegroups.com
Hi Siniy-Kit

There was a similar proposal in github very recently. I've started to look into it but it turned out to be more difficult (for me) than I thought. If it is of any value, here's how far I got. (I intend to solve it eventually.)

<:-)

Tobias Beer

unread,
Oct 6, 2015, 8:38:42 AM10/6/15
to TiddlyWiki
Hi Mat,
 
There was a similar proposal in github very recently. I've started to look into it but it turned out to be more difficult (for me) than I thought. If it is of any value, here's how far I got. (I intend to solve it eventually.)

Could you update your example to all that which Spangenhelm does? i.e. for displaying fields in the editor, too?
Also, with a little bit of html / css it should be easy to make it look as if one line.

<$edit-text field="foo" tag="textarea" class="one-line" autoHeight="no"/>
<style>.one-line {height:2em;} </style>

The problem with the above is that I specifically turned off TiddlyWiki's way to auto-resize a textarea. I'd rather want to keep it but not have it force some min-height other than the one that I have specified.

Best wishes,

— tb

Mat

unread,
Oct 6, 2015, 1:33:49 PM10/6/15
to TiddlyWiki
Tobias,

Could you update your example to...

I just wanted to inform Siniy-Kit about the github thread. My example isn't really intended to be shown. I was thinking that maybe some (very small) fragment of it might be useful for Siniy-Kit such as a clue about a tiddler name or the syntax for text field etc. I hope to work out the matter eventually and make a pull request but will get back on it when I have time proper for it. I'll look into this thread and your tips then. Thanks.

<:-)

Reply all
Reply to author
Forward
0 new messages