mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fix problem with dragging text snippets
This commit is contained in:
parent
f4656b0f25
commit
bea33efd63
@ -42,9 +42,7 @@ var importDataTypes = [
|
||||
if(match) {
|
||||
return parseJSONTiddlers(match[1],fallbackTitle);
|
||||
} else {
|
||||
return { // As URL string
|
||||
text: data
|
||||
};
|
||||
return [{text: data}]; // As URL string
|
||||
}
|
||||
}},
|
||||
{type: "text/x-moz-url", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
|
||||
@ -53,30 +51,20 @@ var importDataTypes = [
|
||||
if(match) {
|
||||
return parseJSONTiddlers(match[1],fallbackTitle);
|
||||
} else {
|
||||
return { // As URL string
|
||||
text: data
|
||||
};
|
||||
return [{text: data}]; // As URL string
|
||||
}
|
||||
}},
|
||||
{type: "text/html", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
|
||||
return {
|
||||
text: data
|
||||
};
|
||||
return [{text: data}];
|
||||
}},
|
||||
{type: "text/plain", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
|
||||
return {
|
||||
text: data
|
||||
};
|
||||
return [{text: data}];
|
||||
}},
|
||||
{type: "Text", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {
|
||||
return {
|
||||
text: data
|
||||
};
|
||||
return [{text: data}];
|
||||
}},
|
||||
{type: "text/uri-list", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
|
||||
return {
|
||||
text: data
|
||||
};
|
||||
return [{text: data}];
|
||||
}}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user