I have a tiddler which uses the nested <html> capabilities: (currently I 
also have a section label right above it as well)

!HTML
<html>
<div>something</div>
</html>

This gets rendered into the view template, and I proceed to manipulate the 
DOM representation of the HTML section of the tiddler with some 
inlinejavascript.

Now I want to take the HTML resulting from the manipulation and save it 
back into the tiddler. Basically I just grab the relevant manipulated HTML 
and replace the HTML section of the tiddly with the update section function 
lifted from http://www.tiddlytools.com/#EditSectionPlugin (which also 
happens to be where the section label comes into play: var 
tiddlerTextHtmlOnly = store.getTiddlerText(title+'##HTML'); )

This seems like it will work all fine and dandy until I use a macro in the 
HTML portion of the tiddler at which point the DOM representation and 
tiddler HTML content wouldn't match up and thus can't be saved.

Questions:
Is there a better way to do this?
Is there an existing method to specifically grab the HTML content of a 
tiddler, make it into a jQuery object, and manipulate with jQuery? (If I 
could do this I could directly manipulate the pre-rendered HTML content of 
a tiddler and then just refreshDisplay to get the updated rendering of that 
manipulation)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/LHwYwTIFeQEJ.
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.

Reply via email to