Hello, I'm trying to build a font-adjuster tiddler for my plugin 
<http://j.d.simplemobile.tiddlyspot.com/>, but due to TW5 inexperience I've 
come across a bothersome thing (not really a problem) I can't solve via 
google-searches, can you guys help me? 

I have a stylesheet tiddler (*TIDDLER A*) that relies on its fields for 
some of its values, and another tiddler (*TIDDLER B*) that contains 
edit-field widgets for the stylesheet tiddler, like so:

*TIDDLER A* 


> .tc-tiddler-view-frame h2.tc-title,
> input.tc-titlebar.tc-edit-texteditor { 
>     font-size: {{!!font-title}}; 
> }
> .tc-tiddler-view-frame h1 { 
>     font-size: {{!!font-h1}}; 
> }


and so on, and so forth 

*TIDDLER B* 


> <tr>
> <td>Title:</td>
> <td><$edit-text tiddler="TIDDLER A TEMP" field="font-title"/>
> <$reveal type=nomatch state="TIDDLER A TEMP!!font-title" text="">
> <$button>
> <$action-setfield $tiddler="TIDDLER A" font-title={{TIDDLER A 
> TEMP!!font-title}}/>
> <$action-setfield $tiddler="TIDDLER A TEMP" font-title=""/>✓</$button>
> <$button>
> <$action-setfield $tiddler="TIDDLER A TEMP" font-title=""/>✕</$button>
> </$reveal>
> </td>
> </tr>
> <tr>
> <td>Heading h1:</td>
> <td><$edit-text tiddler="TIDDLER A TEMP" field="font-h1"/>
> <$reveal type=nomatch state="TIDDLER A TEMP!!font-h1" text="">
> <$button>
> <$action-setfield $tiddler="TIDDLER A" font-h1={{TIDDLER A 
> TEMP!!font-h1}}/>
> <$action-setfield $tiddler="TIDDLER A TEMP" font-h1=""/>✓</$button>
> <$button>
> <$action-setfield $tiddler="TIDDLER A TEMP" font-h1=""/>✕</$button>
> </$reveal>
> </td>
> </tr>


and so on, and so forth

*Questions:*

1. Is there a way to wrap those fields, (font-title, font-h1, font-h2, etc) 
in a list template? Or am I out out luck and have to copy+paste those 
columns, reveals, buttons, etc per field item?

2. Is there a better workaround for the problem of the edit-text widget 
losing focus when the said widget is editing the field of the current 
tiddler? Because of the losing-focus thingy I'm forced to use and edit *TIDDLER 
A TEMP*'s fields instead of simply using *TIDDLER B*'s fields as temporary 
storage...

Help / redirection to help-files would be great!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1386ea93-5570-422b-9638-d7f411718bad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to