On Sat, Oct 10, 2009 at 11:35 AM, Eric Shulman <[email protected]> wrote:
>
>> It seems that as soon as I put a <<edit fieldname>> macro in a
>> tiddler, it becomes impossible to edit the text from that point on
>> (from inside TiddlyWiki; I could always hack the file externally I
>> suppose!); hitting edit in the toolbar just focuses on the new input
>> field. Is that right, and is there anything I can do to edit the text
>> again?
>
> The <<edit>> macro was originally written for use from within an
> EditTemplate.
>
> When you embed <<edit>> within tiddler content to display the edit
> field in *view* mode, it confuses the core's view/edit template
> transition handling, which looks to see if a field created by the
> <<edit>> macro exists in the rendered tiddler.  If it does, it assumes
> that the tiddler is already in edit mode and doesn't switch templates.

This feels like a bug to me; is there a ticket for it?

> In addition, there's nothing you can *do* with any changes you enter
> into a "view mode input field"... because there is no 'done' button to
> press to tell the core to copy the changed value back to the tiddler
> field.

Similarly, when I added an edit macro to ViewTemplate, I found there
was no way to undo it because there was no way to get the "delete"
button to delete the ViewTemplate.

> Fortunately, I have a plugin that extends the core's <<edit>> field
> code so that it can handle both of these issues, making it possible to
> embed <<edit>> directly in tiddler content and have it actually work:
>
> http://www.TiddlyTools.com/#EditFieldPlugin
>
> After you install this plugin in your document, you will once again be
> able to edit the tiddler with the embedded <<edit>> macro.

Great work, good to know. Thanks Eric.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to