mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Correct the content type for tiddlers loaded from application/x-tiddler containers
This commit is contained in:
parent
8b0703b694
commit
c63eb4c045
@ -396,6 +396,7 @@ $tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/js","t
|
|||||||
});
|
});
|
||||||
$tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/tid","tiddlerdeserializer",{
|
$tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/tid","tiddlerdeserializer",{
|
||||||
"application/x-tiddler": function(text,fields) {
|
"application/x-tiddler": function(text,fields) {
|
||||||
|
fields.type = "text/x-tiddlywiki";
|
||||||
var split = text.indexOf("\n\n");
|
var split = text.indexOf("\n\n");
|
||||||
if(split !== -1) {
|
if(split !== -1) {
|
||||||
fields = $tw.utils.parseFields(text.substr(0,split),fields);
|
fields = $tw.utils.parseFields(text.substr(0,split),fields);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user