Any progress with this?

On Friday, May 25, 2018 at 2:59:59 PM UTC-6, ste...@gmail.com wrote:
>
>
> On Wednesday, May 23, 2018 at 10:40:27 PM UTC+2, ste...@gmail.com wrote:
>>
>>
>>
>> Downside: I believe that a separate tiddler/drop area needs to be created 
>> for other image types, e.g. PNG. 
>>
>>
>> Here is an updated version of my code which allows users to pre-select a 
> file type (GIF, JPEG, PNG or SVG) before importing an image:
>
> \define embedded-image-actions()
> <$wikify name="tiddlercontent2" mode="inline" text='<<actionTiddler>>'>
> <$action-createtiddler $basetitle="New Image" _canonical_uri=<<
> tiddlercontent2>> type={{Embed Image}} $savetitle="Embed 
> Image!!tiddlertitle"/>
> <$action-navigate $to={{Embed Image!!tiddlertitle}}/>
> </$wikify>
> \end
>
>
> <$droppable actions=<<embedded-image-actions>>>
> <div style="float:left;margin-right:1em;">
> <div style="border:1px dotted; 
> width:15em;padding:0.8em;border-radius:5px;text-align:center;">Drop image 
> (<$list filter="[[Embed 
> Image]get[text]]+[removeprefix[image/]]">{{!!title}}</$list>) here</div></
> div>
> </$droppable> 
> <div style="height:2.5em;">
> Image type: <br/>
> <$select tiddler='Embed Image'>
> <option value='image/gif'>GIF</option>
> <option value='image/jpeg'>JPEG</option>
> <option value='image/png'>PNG</option>
> <option value='image/svg+xml'>SVG</option>
> </$select></div>
>
> Of course, automatic detection would be preferable.
>
> Cheers,
>
> Stef
>

-- 
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/93b1fd27-9310-4895-af83-e47d88847e0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to