[tw5] Re: TiddlyWiki: Drag and drop image link to create tiddler with _canonical_uri link to the image

2023-04-04 Thread Donald Coates
You have to have some sort of server running to upload files.  When you 
drag an image into a single file wiki it is not uploading it, it is 
converting it to binary(?), not actually uploading the image.  The nodejs 
version is running on server software that can upload files.  I use 
filestash via docker for a very lightweight server to upload images that I 
then use this code to create link to by dragging the link.  It is such a 
time saver.

On Monday, April 3, 2023 at 9:19:52 PM UTC-4 Zaphod Beeblebrox wrote:

> Looks great! :)
>
> Now... Work your sorcery and create a version to do the same thing, only 
> with locally-stored images!
>
> On Sunday, April 2, 2023 at 7:36:10 PM UTC-4 Charlie Veniot wrote:
>
>> Related TW script *in this post*, just below the video.
>>
>> https://youtu.be/NjE0MHsndE8
>>
>> ```
>> \define droppable-image-actions()
>> <$action-setfield $tiddler=<> $field="text" $value=""/>
>> <$action-setfield $tiddler=<> $field="_canonical_uri" 
>> $value={{{ [split[/]last[]addprefix[./Graphics%20Samples/]] 
>> }}}/>
>> <$action-setfield $tiddler=<> $field="type" $value={{{ 
>> [split[/]last[]split[.]last[]addprefix[image/]] }}}/>
>> <$action-createtiddler $basetitle={{{ [split[/]last[]] }}} 
>> $template=<>/>
>> <$action-deletetiddler $tiddler=<>/>
>> \end
>>
>> <$droppable actions=<>>
>> 
>> Drop image here
>> 
>> 
>> ```
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/169a0f0a-9229-4e31-b05a-96d4ad53cc32n%40googlegroups.com.


[tw5] Re: Wiki folder 'myfirstwiki' does not exist or is missing a tiddlywiki.info file

2022-07-24 Thread Donald Coates
Hello.  First off discussions have moved to talk.tiddlywiki.org.  You will 
have much quicker answers to your questions there.

I will assume you are new to tiddlywiki.  There are two forms  a tiddlwiki 
can take - 1. a single html file and 2. a nodejs server.

The link you give describes the first form and I don't see any reference to 
the command you are asking about.  There is a link to setting up a nodejs 
server on that page so maybe you followed it?

Unless you are familiar with setting up servers I would suggest using the 
first method and stick to the instructions on the page you referenced - 
don't follow the link about exporting the wiki.

For clarification here are the instructions for setting up the nodejs 
version which are necessary before you use the above command 
- https://tiddlywiki.com/#GettingStarted%20-%20Node.js

Have fun!

On Saturday, July 23, 2022 at 2:06:53 PM UTC-4 ma...@manojnayak.com wrote:

> So I followed instruction to set up tiddlywiki from nesslabs here - 
> https://nesslabs.com/digital-garden-tiddlywiki
>
> But I am getting the following error - 
>
> Wiki folder 'myfirstwiki' does not exist or is missing a tiddlywiki.info 
> file (screenshot attached) [image: Screenshot 2022-07-23 at 11.29.21 
> PM.png]
>
> Could you please let me know what needs to be done?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/129b6af0-af2a-4caf-b90e-17a951ff0642n%40googlegroups.com.


[tw5] Re: trying to embed gist (github) in tiddler

2021-02-23 Thread Donald Coates
>From a previous thread where I was having the same problem:

SOLUTION/WORKAROUND
WARNING: this requires changing a core tiddler.  The code is there for a 
reason.  My use case is very specific in that I will only be doing this on 
a wiki that runs just to render static tiddlers.

I noticed that the rendering process for the  tag renders as 
.  So I just searched and found the tiddler responsible for 
the modification and commented out the code.

The tiddler is $:/core/modules/widgets/element.js  and the code to comment 
out is

if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1)
{ tag = "safe-" + tag;
}

<https://tiddlywiki.com/#>Again this would I imagine create a very serious 
security risk in wikis open to the internet.

I cannot stress enough that this could cause serious issues.  Since it is a 
gist it may just be better to just copy/paste and avoid the potential for 
problems.  
On Friday, February 19, 2021 at 4:57:18 PM UTC-5 gavin@gmail.com wrote:

>
> Hi TW users, 
>
> Does anyone know why the embed code for a gist doesn't display in a 
> tiddler? I get an empty box returned. I tried wrapping in an