\define droppable-canonical()
<$fieldmangler tiddler=<<actionTiddler>>>
<$action-setfield $tiddler=<<actionTiddler>> $field="_canonical_uri" $value=<<actionTiddler>>/>
<$action-setfield $tiddler=<<actionTiddler>> $field="type" $value="text/html"/>
</$fieldmangler>
\end
''Usage:'' This a small macro to add a droppable area in a tiddler to import externally dragged URLs into TiddlyWiki as a canonical-url externally stored resource.
Droppable Image (drag a URL on top of the image):
<$droppable actions=<<droppable-canonical>>>
{{$:/core/images/new-here-button}}
</$droppable>--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/oGs8A1vxjOw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3f21a89e-3e58-41f3-be2e-1cef71af76eb%40googlegroups.com.