> > > The question then becomes, how can the DCToC plug be repaired to work
> > > with TW2.4.3?
> I did some digging recently and got it working in combination with the
> TiddlyTools SectionLinksPlugin. Mended a couple of other things too,
> like the 'show/hide' button which opened a blank window in IE6, and
> only showing the table when there's three or more headings in a
> tiddler. I'll dig out the code tomorrow and post the changes I made.
Here's what I changed, for what it's worth in the light of the latest
addition to Eric's SectionLinksPlugin:
To fix the heading links, find '// Remove WikiLinks', substitute the
following for the two lines that start with 'text += ...':
text += line.substr(0, i).replace(/[!]/g, '#');
text += '[[' + desc + '|' + myTiddler.title + '##' + desc +
']]\n';
To fix the toggle button, find the line:
createTiddlyButton(r, "toggle", "show/collapse table of contents",
function() { config.macros.showtoc.toggleElement(this.nextSibling); },
"toggleButton")
and add "return false;" immediately before the closing curly brackets.
In IE that should stop a click on the toggle button from opening a
blank window.
Jonathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---