1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Fix problem with dragging text snippets

This commit is contained in:
Jermolene 2017-03-20 22:03:28 +00:00
parent f4656b0f25
commit bea33efd63

View File

@ -42,9 +42,7 @@ var importDataTypes = [
if(match) { if(match) {
return parseJSONTiddlers(match[1],fallbackTitle); return parseJSONTiddlers(match[1],fallbackTitle);
} else { } else {
return { // As URL string return [{text: data}]; // As URL string
text: data
};
} }
}}, }},
{type: "text/x-moz-url", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { {type: "text/x-moz-url", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
@ -53,30 +51,20 @@ var importDataTypes = [
if(match) { if(match) {
return parseJSONTiddlers(match[1],fallbackTitle); return parseJSONTiddlers(match[1],fallbackTitle);
} else { } else {
return { // As URL string return [{text: data}]; // As URL string
text: data
};
} }
}}, }},
{type: "text/html", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { {type: "text/html", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return { return [{text: data}];
text: data
};
}}, }},
{type: "text/plain", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { {type: "text/plain", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return { return [{text: data}];
text: data
};
}}, }},
{type: "Text", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) { {type: "Text", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {
return { return [{text: data}];
text: data
};
}}, }},
{type: "text/uri-list", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { {type: "text/uri-list", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
return { return [{text: data}];
text: data
};
}} }}
]; ];