Changeset 99
- Timestamp:
- 04/21/06 15:51:10 (3 years ago)
- Files:
-
- 1 modified
-
Trunk/core/tiddlywiki.html (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/core/tiddlywiki.html
r91 r99 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 2 <script type="text/javascript"> 3 var version = {major: 2, minor: 0, revision: 8, date: new Date("Apr 7, 2006"), extensions: {}};3 var version = {major: 2, minor: 0, revision: 9, date: new Date("Apr 18, 2006"), extensions: {}}; 4 4 </script> 5 5 <!-- 6 TiddlyWiki 2.0. 8by Jeremy Ruston, (jeremy [at] osmosoft [dot] com)6 TiddlyWiki 2.0.9 by Jeremy Ruston, (jeremy [at] osmosoft [dot] com) 7 7 8 8 Copyright (c) Osmosoft Limited 2004-2006 … … 76 76 txtMaxEditRows: "30" 77 77 }; 78 78 79 79 // List of notification functions to be called when certain tiddlers are changed or deleted 80 80 config.notifyTiddlers = [ … … 144 144 } 145 145 }; 146 146 147 147 // Macros; each has a 'handler' member that is inserted later 148 148 config.macros = { … … 192 192 jump: {text: "jump", tooltip: "Jump to another open tiddler"} 193 193 }; 194 194 195 195 // Browser detection... In a very few places, there's nothing else for it but to 196 196 // know what browser we're using. … … 469 469 w.subWikify(e,this.terminator); 470 470 }, 471 471 472 472 inlineCssHelper: function(w) 473 473 { … … 663 663 col++; 664 664 } 665 } while(matched); 665 } while(matched); 666 666 } 667 667 }, … … 697 697 name: "monospacedByLineForCSS", 698 698 match: "^/\\*[\\{]{3}\\*/\\n", 699 lookahead: "/\\*[\\{]{3}\\*/\\n*((?:^[^\\n]*\\n)+?)(\\n*^/\\*[\\}]{3}\\*/$\\n?)", 699 lookahead: "/\\*[\\{]{3}\\*/\\n*((?:^[^\\n]*\\n)+?)(\\n*^/\\*[\\}]{3}\\*/$\\n?)", 700 700 handler: config.formatterHelpers.monospacedByLineHelper 701 701 }, … … 711 711 name: "monospacedByLineForTemplate", 712 712 match: "^<!--[\\{]{3}-->\\n", 713 lookahead: "<!--[\\{]{3}-->\\n*((?:^[^\\n]*\\n)+?)(\\n*^<!--[\\}]{3}-->$\\n?)", 713 lookahead: "<!--[\\{]{3}-->\\n*((?:^[^\\n]*\\n)+?)(\\n*^<!--[\\}]{3}-->$\\n?)", 714 714 handler: config.formatterHelpers.monospacedByLineHelper 715 715 }, 716 716 717 717 { 718 name: "wikifyCommentForPlugin", 718 name: "wikifyCommentForPlugin", 719 719 match: "^/\\*\\*\\*\\n", 720 720 terminator: "^\\*\\*\\*/\\n", … … 726 726 727 727 { 728 name: "wikifyCommentForTemplate", 728 name: "wikifyCommentForTemplate", 729 729 match: "^<!---\\n", 730 730 terminator: "^--->\\n", 731 handler: function(w) 731 handler: function(w) 732 732 { 733 733 w.subWikify(w.output,this.terminator); … … 942 942 var lookaheadMatch = lookaheadRegExp.exec(w.source) 943 943 if(lookaheadMatch && lookaheadMatch.index == w.matchStart && lookaheadMatch[1]) 944 { 944 { 945 945 w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length; 946 946 invokeMacro(w.output,lookaheadMatch[1],lookaheadMatch[2],w,w.tiddler); … … 1151 1151 this.nextMatch = 0; 1152 1152 this.highlightRegExp = highlightRegExp; 1153 this.highlightMatch = null; 1153 this.highlightMatch = null; 1154 1154 if(highlightRegExp) 1155 1155 { … … 1198 1198 // Restore the output pointer and exit 1199 1199 this.output = oldOutput; 1200 return; 1200 return; 1201 1201 } 1202 1202 // Check for a formatter match … … 2018 2018 { 2019 2019 var newTitle = story.saveTiddler(title,event.shiftKey); 2020 story.displayTiddler(null,newTitle); 2020 if(newTitle) 2021 story.displayTiddler(null,newTitle); 2021 2022 return false; 2022 2023 } … … 2034 2035 config.commands.deleteTiddler.handler = function(event,src,title) 2035 2036 { 2036 var deleteIt = true; 2037 var deleteIt = true; 2037 2038 if (config.options.chkConfirmDelete) 2038 2039 deleteIt = confirm(this.warning.format([title])); … … 2929 2930 var tags = c.value.readBracketedList(); 2930 2931 var p = tags.find(tag); 2932 if(add == 0) 2933 add = (p == null) ? +1 : -1; 2931 2934 if(add == +1) 2932 2935 { … … 2938 2941 if(p != null) 2939 2942 tags.splice(p,1); 2940 }2941 else if(add == 0)2942 {2943 if(p != null)2944 tags.splice(p,1);2945 else2946 tags.push(tag);2947 2943 } 2948 2944 var result = []; … … 3124 3120 minorUpdate = !minorUpdate; 3125 3121 var newDate = new Date(); 3126 store.saveTiddler(title,newTitle,fields.text, minorUpdate ? undefined :config.options.txtUserName,minorUpdate ? undefined : newDate,fields.tags);3122 store.saveTiddler(title,newTitle,fields.text,config.options.txtUserName,minorUpdate ? undefined : newDate,fields.tags); 3127 3123 if(config.options.chkAutoSave) 3128 3124 saveChanges(); … … 3193 3189 refreshTiddlyLink(e,title); 3194 3190 }, 3195 3191 3196 3192 content: function(e,changeList) 3197 3193 { … … 3279 3275 refreshElements(wrapper,null); 3280 3276 display = document.getElementById("tiddlerDisplay"); 3277 removeChildren(display); 3281 3278 if(!display) 3282 3279 display = createTiddlyElement(wrapper,"div","tiddlerDisplay"); … … 3446 3443 } 3447 3444 // Save new file 3448 var revised = original.substr(0,posOpeningDiv + startSaveArea.length) + 3445 var revised = original.substr(0,posOpeningDiv + startSaveArea.length) + 3449 3446 convertUnicodeToUTF8(allTiddlersAsHtml()) + "\n\t\t" + 3450 3447 original.substr(posClosingDiv); … … 3833 3830 for(var namesCounter=0; namesCounter < daPlugins.length; namesCounter++) 3834 3831 { 3835 if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || 3832 if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || 3836 3833 (navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter]) >= 0) ) 3837 3834 numFound++; … … 4718 4715 4719 4716 // --------------------------------------------------------------------------------- 4720 // DOM utilities - many derived from www.quirksmode.org 4717 // DOM utilities - many derived from www.quirksmode.org 4721 4718 // --------------------------------------------------------------------------------- 4722 4719 … … 4998 4995 padding: 0.5em; 4999 4996 margin: 1em 0em 0em 0em; 5000 border-color: #f0f0f0 #606060 #404040 #d0d0d0; 5001 border-style: solid; 4997 border-color: #f0f0f0 #606060 #404040 #d0d0d0; 4998 border-style: solid; 5002 4999 border-width: 2px; 5003 5000 overflow: auto; … … 5010 5007 background-color: #dd1100; 5011 5008 color: #fff; 5012 padding:1em 0em; 5009 padding:1em 0em; 5013 5010 } 5014 5011 … … 5026 5023 if (detectPlugin("TiddlyWiki Saver")) 5027 5024 { 5028 document.write('<embed style="display: none" name="tiddlyWikiSafariSaver" width="0" height="0" type="application/x-webkit-tiddlywiki-saver"></embed>'); 5025 document.write('<embed style="display: none" name="tiddlyWikiSafariSaver" width="0" height="0" type="application/x-webkit-tiddlywiki-saver"></embed>'); 5029 5026 saveUsingSafari = true; 5030 5027 }
