To add to what Astrid said,
you need to call the tw5 parser instead using innerHTML. I think it should
be:
parser =
this.wiki.parseText("text/vnd.tiddlywiki",calendarString,{parseAsInline:
false});
parseTreeNodes = parser ? parser.tree : [];
this.makeChildWidgets(parseTreeNodes);
cheers
BJ
On Thursday, February 26, 2015 at 1:28:46 AM UTC-6, Jed Carty wrote:
>
> I made a simple calendar widget that given a year and a month will build a
> calendar for that month with the correct layout. What I would like to do is
> to be able to give the widget a macro that it will run inside each day on
> the calendar to list things for that day or whatever you want it to do. The
> problem Is that I can't figure out how to get the macro to actually get
> wikified. The html part that builds the calendar works fine, I just can't
> do anything with it.
>
> Here is what it currently does
> <http://inmysocks.tiddlyspot.com/#Calendar%20widget%20example>, I am
> hoping that I am just missing a step and fixing it will be simple.
>
> Any suggestions?
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.