Is there a way to edit a tiddler after opening it using tm-modal

94 views
Skip to first unread message

Shash

unread,
Jun 12, 2015, 6:02:28 AM6/12/15
to tiddl...@googlegroups.com
Hi All,

I am trying to open a tiddler using tm-modal widget. After opening it up I even wish to edit it. Is there any way to edit it in the modal overlay itself.

Regards
Shash

Shash

unread,
Jun 13, 2015, 4:55:36 AM6/13/15
to tiddl...@googlegroups.com
Pushing this up again for some suggestions. Thanks!
Shash

Felix Küppers

unread,
Jun 13, 2015, 5:23:06 AM6/13/15
to tiddl...@googlegroups.com
Hi Shash,

I do it for TiddlyMap when in fullscreen mode. (See https://www.youtube.com/watch?v=6K6bZM0yo3U)

It is not easy(!) to do it but have a look at the code I use:

https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/src/plugins/felixhayashi/tiddlymap/tiddlers/dialog.edit_content.tid

Replace "<<param.ref>>" with the actual tiddler title you want to edit (you can pass it as modal variable).

But be careful. Tiddlymap uses a complex dialog mechanism that first opens the tiddler as draft and then writes all changes to the draft and the user still can cancel the job.

So simply using the template above will undermine tiddlwiki's draft strategy.

If you are not a coder, this is maybe to complicated to achieve.

If you are coder, maybe have a look here: https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/src/plugins/felixhayashi/tiddlymap/widget.map.js#L1401

But I cannot really help you further than this.. Still hope it helps.

-Felix
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eddc6496-f830-4659-9325-9a0fb3601834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages