> So if I understand correctly, you have to manually update the
> ViewTemplate to add the new command for any plugin?

In v2.4.0, the ToolbarCommands shadow tiddler was introduced to make 
this sort of thing easier to handle (i.e. not having to mess with the 
ViewTemplate directly).

Some plugins modify this shadow tiddler to add themselves to the toolbar:
     config.shadowTiddlers.ToolbarCommands =
         config.shadowTiddlers.ToolbarCommands.
         replace("editTiddler", "editTiddler fooCommand");
However, that's a bit of a hack, so I'm not sure it's a wise thing to do.
I'm not aware of any best practice in this regard.
It's probably best to leave it to the user.

> I figured that creating config.commands.myCommand would
> automagically append to the toolbar.

That would be a bit odd - for example, what order would the commands 
appear in? It would also make it harder to customize the toolbar (e.g. 
for read-only mode).

> maybe that's just what I inferred from reading the Wiki page

Any improvements to the community wiki would be most welcome.


-- F.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to