find tiddler name

2 views
Skip to first unread message

okido

unread,
Dec 8, 2008, 3:39:48 PM12/8/08
to TiddlyWikiDev
I am making a plugin that can replace text, inserts dates etc.
There is a button in the edit toolbar that starts this process.
As long as the tiddler is edited for the first time I can not get it
working.
It is part of story I understand and I need to retrieve the tiddler
title somehow is my guess.

How do I get the title from the tiddler when I press the button in the
edit toolbar as long as it is not saved to store.

Thanks, Okido

FND

unread,
Dec 8, 2008, 5:16:54 PM12/8/08
to Tiddly...@googlegroups.com
> How do I get the title from the tiddler when I press the button in the
> edit toolbar as long as it is not saved to store.

I've struggled with this myself recently - here's what I came up with:
http://tinyurl.com/5d364o
(http://trac.tiddlywiki.org/browser/Trunk/contributors/FND/plugins/TiddlerPreviewPlugin.js#L73)

Essentially, the gatherSaveFields method should do most of what you need.

HTH.


-- F.

okido

unread,
Dec 9, 2008, 1:02:09 PM12/9/08
to TiddlyWikiDev
Thanks FND,

Will give it a try, Okido

On Dec 8, 11:16 pm, FND <F...@gmx.net> wrote:
> > How do I get the title from the tiddler when I press the button in the
> > edit toolbar as long as it is not saved to store.
>
> I've struggled with this myself recently - here's what I came up with:
> http://tinyurl.com/5d364o
> (http://trac.tiddlywiki.org/browser/Trunk/contributors/FND/plugins/Tid...)
Reply all
Reply to author
Forward
0 new messages