Last active
August 29, 2015 13:57
-
-
Save Arlen22/9814436 to your computer and use it in GitHub Desktop.
New Journal buttons (public domain)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { | |
| // Get the story details | |
| var storyList = this.getStoryList(); | |
| // Get the template tiddler if there is one | |
| //changes start here | |
| var tidtext = false; | |
| if(event.param) tidtext = (event.param.indexOf("\n") != -1); | |
| var templateTiddler = tidtext ? new $tw.Tiddler($tw.wiki.deserializeTiddlers("application/x-tiddler", event.param)[0]) : this.wiki.getTiddler(event.param); | |
| console.log(tidtext); | |
| // changes end here | |
| // Create the new tiddler | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| title: My Second Tiddler | |
| This is a new tiddler template. $(test)$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment