I've got a strange one happening here... I'm programmatically creating a
Tiddler with the content of an email sent to me:
store.suspendNotifications();
var newTiddler = store.createTiddler(subject);
newTiddler.text = messageBody;
newTiddler.addTag("eMailMessage");
story.saveTiddler(subject);
store.resumeNotifications();
store.notify(subject, true);
story.displayTiddler(null, subject);
The email body (string "messageBody") consists of proper HTML, wrapped in
<html> tags.
When first open from the story.displayTiddler call, the Tiddler itself
looks like the text source of the messageBody string, but *without *the
initial <html> tag, something like this:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe GoLive 6">
<title>Welcome to Adobe GoLive 6</title>
</head>
<body bgcolor="#ffffff">
However, if I edit the Tiddler, I see that the first <html> tag is in fact
there:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"
/>
<meta name="generator" content="Adobe GoLive 6">
<title>Welcome to Adobe GoLive 6</title>
</head>
<body bgcolor="#ffffff">
...and as soon as I click "done" editing, the Tiddler renders proper HTML!!
Any ideas why this isn't getting rendered initially? If I close / re-open
the Tiddler, it's no good - I *must *click edit / done (even with no
changes) for it to render.
Thanks,
David.
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.