mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-22 17:28:44 +00:00
prevents drag and drop import in same window
fixes #592 Introduces and preserves **_origin** field when using drag-and-drop — bad idea? discard? different field name? demo http://592.tiddlyspot.com
This commit is contained in:
@@ -153,7 +153,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||
}
|
||||
// Then the data
|
||||
dataTransfer.clearData();
|
||||
var jsonData = this.wiki.getTiddlerAsJson(this.to),
|
||||
var jsonData = this.wiki.getTiddlerAsJson(this.to,true),
|
||||
textData = this.wiki.getTiddlerText(this.to,""),
|
||||
title = (new RegExp("^" + $tw.config.textPrimitives.wikiLink + "$","mg")).exec(this.to) ? this.to : "[[" + this.to + "]]";
|
||||
// IE doesn't like these content types
|
||||
|
||||
Reference in New Issue
Block a user