Open in modal edit mode

137 views
Skip to first unread message

T. E. Sanders

unread,
Feb 22, 2020, 5:59:50 PM2/22/20
to TiddlyWiki
With the following button at the bottom of a tiddler, I can open the contents in a popup. Is there a way to tell it to open in edit mode?

<$linkInvokeActions to=<<currentTiddler>> > Modal Test
     <$action-sendmessage $message='tm-modal' $param=<<currentTiddler>> />
</$linkInvokeActions>


TiddlyTweeter

unread,
Feb 23, 2020, 3:03:20 AM2/23/20
to TiddlyWiki
Ciao T. E Sanders.

Nice question. You've asked some very good questions. 

EDIT via modal is something that I tried myself do but got nowhere.
It would be very useful to be able to do that as there are many situations where it is appropriate. 
Possibly with control of what bits of editor are shown.

Best wishes
TT

Mark S.

unread,
Feb 23, 2020, 10:04:27 AM2/23/20
to TiddlyWiki
It would be useful. A quick and dirty way is to create a tiddler with content like

{{HelloThere||$:/core/ui/EditTemplate}}

then pop that tiddler into a new window. A little bit ugly since it shows a blank title. Creating a special template would be the next step.

T. E. Sanders

unread,
Feb 23, 2020, 11:18:30 AM2/23/20
to TiddlyWiki
Thanks guys, I'll see where I get. BTW, the plugin TiddlyMap does this exact thing when in fullscreen mode, that's why I figured it must be dooable. I may have to go pull that plugin apart and see how they're doing it. In fact, they have it so that it'll open in a read-mode, with tabs for read/edit (they're called something else, but that's the gist)

TiddlyTweeter

unread,
Feb 23, 2020, 12:13:24 PM2/23/20
to TiddlyWiki
You are right. TiddlyMap does it.

TT

TonyM

unread,
Feb 23, 2020, 4:51:07 PM2/23/20
to TiddlyWiki
T E,

I was intrigued and planned to have something similar for some time. This includes edit in new window/or modal. The open in new window has a fix in the pre-release so I experimented with a copy. By using the edit template I have it working but some small artifacts that need work, for example this is how it opened,

Snag_3931d3dc.png

 I have to click near the down arrows to make the edit content appear;

Snag_39348a22.png



Modal's require multiple tiddlers and fields set so its not trivial to share the code patterns. 

Edit in new window looks better but I need to resolve the focus issue

Snag_393649f3.png


Please ask if you want me to share my buggy and unfinished code.

Remember that normally editing a tiddler that the edit methods rename it to a draft tiddler, thus I have excluded title from this example, however the tag and type can be edited the field editor throws some bugs.

I think edit in modal is good for keeping edit restricted to one tiddler at a time for novices and could "replace" the normal edit button in some implementations. Modifying the modal size may need a hack.

The open in new window could allow multiple tiddlers open for edit, and easily can be made full screen. 


Regards
Tony

Mat

unread,
Feb 23, 2020, 7:49:51 PM2/23/20
to TiddlyWiki
It's not a modal but maybe the SideEditor is of relevance. I use it every day even if there are a few tweaks I haven't come around to implement to it yet.

<:-)

Birthe C

unread,
Feb 23, 2020, 8:57:04 PM2/23/20
to TiddlyWiki
Hi Mat,

Super SideEditor fan here looking forward to you tweaks.


Birthe

Mark S.

unread,
Feb 23, 2020, 9:35:28 PM2/23/20
to TiddlyWiki
A simple approach when you want to edit notes in their own window:

Reply all
Reply to author
Forward
0 new messages