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:
parent
f4656b0f25
commit
bea33efd63
@ -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
|
|
||||||
};
|
|
||||||
}}
|
}}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user