Skip to content

Getting the HTML from a tiddler #7496

Answered by pmario
GameDungeon asked this question in Q&A
Discussion options

You must be logged in to vote

The tiddler $:/state/editpreviewtype contains the preview type, that you can select in tiddler edit mode with the preview selector.

It points to: $:/plugins/tiddlywiki/internals/EditTemplate/body/preview/raw, which contains the code, how it is implemented.

See the follwing code. So it uses the view-widget with the currentTiddler as the default tiddler parameter.

<pre><code><$view field="text" format="htmlwikified" /></code></pre>

The wikify-widget has similar functionality and parameters.

The JS function which can render a tiddler is .renderTiddler = function(outputType,title,options) { ... Also have a closer look at the functions directly above this one

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GameDungeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants