mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-16 07:17:21 +00:00
Fix problem with pasting items into the browser
This commit is contained in:
@@ -174,8 +174,8 @@ DropZoneWidget.prototype.handlePasteEvent = function(event) {
|
|||||||
var item = items[t];
|
var item = items[t];
|
||||||
if(item.kind === "file") {
|
if(item.kind === "file") {
|
||||||
// Import any files
|
// Import any files
|
||||||
this.wiki.readFile(item.getAsFile(),function(tiddlerFields) {
|
this.wiki.readFile(item.getAsFile(),function(tiddlerFieldsArray) {
|
||||||
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify([tiddlerFields])});
|
self.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
|
||||||
});
|
});
|
||||||
} else if(item.kind === "string") {
|
} else if(item.kind === "string") {
|
||||||
// Create tiddlers from string items
|
// Create tiddlers from string items
|
||||||
|
|||||||
Reference in New Issue
Block a user