Hi sini-Kit
> Thank you Jeremy, but $tw.wiki.renderTiddler("text/plain","$:/core/save/all")
> put lots of \" is it possible to get this code without them?
That looks like JavaScript string escaping; is that something that the console
is adding for the display? I don't see that encoding in my tests.
> I try to use http://tiddlywiki.com/#Saving%20on%20a%20PHP%20Server but it
> don't work with store.php on my server.
Well, your original request is to do something that is already done by the
core, so you might want to start with the existing code.
Best wishes
Jeremy
>
>
>
>
> четверг, 13 апреля 2017 г., 11:48:09 UTC+3 пользователь Jeremy Ruston написал:
>> Hi sini-Kit
>>
>> You can obtain the HTML text that would be used for saving with this snippet:
>>
>> $tw.wiki.renderTiddler("text/plain","$:/core/save/all")
>>
>> In terms of POSTing the wiki to a server you may want to try re-using some
>> of the code in $:/core/modules/savers/upload.js or
>> $:/core/modules/savers/put.js
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>>> On 13 Apr 2017, at 08:06, Tristan Kohl <[email protected]> wrote:
>>>
>>> I do not know if I get you right, but when the file is loadad you can
>>> simply run:
>>>
>>> var html = $tw.wiki.getTiddler("$:/core/templates/tiddlywiki5.html")
>>>
>>> That will return a Tiddler object with the tiddlers content stored in the
>>> property "fields" -> "text"
>>>
>>> Cheers,
>>> Tristan
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/91997afc-5a69-4895-bb2e-8e17fdcc0410%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/2a0b526e-ae90-4fc5-913c-97fd41dc90f0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/65F153E6-57D4-419D-AD18-7741C78C1973%40gmail.com.
For more options, visit https://groups.google.com/d/optout.