http://trac.tiddlywiki.org/changeset/12296

MartinBudden
2010-07-22 08:43:43 -0700 (Thu, 22 Jul 2010)
88
Ticket #610

enhance toolbar macro syntax to render tiddler/slice/section content inline

---------------

U   Trunk/core/js/Toolbar.js

---------------

Modified: Trunk/core/js/Toolbar.js
===================================================================
--- Trunk/core/js/Toolbar.js    2010-07-22 11:44:37 UTC (rev 12295)
+++ Trunk/core/js/Toolbar.js    2010-07-22 15:43:43 UTC (rev 12296)
@@ -150,10 +150,18 @@
                                c = c.substr(1);
                                break;
                        }
-                       if(c in config.commands)
+                       if(c in config.commands) {
                                this.createCommand(place,c,tiddler,className);
+                       } else {
+                               this.customCommand(place,c,wikifier,tiddler);
+                       }
                        break;
                }
        }
 };
 
+// Overrideable function to extend toolbar handler
+config.macros.toolbar.customCommand = function(place,command,wikifier,tiddler)
+{
+}
+

-- 
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