mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-31 01:48:02 +00:00
Use titles when dragging links to non-TiddlyWiki destinations
Handily, this means that you can drag tiddler links from the sidebar into the text editor, making it easier to create links and transclusions.
This commit is contained in:
@@ -158,11 +158,11 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||
// IE doesn't like these content types
|
||||
if(!$tw.browser.isIE) {
|
||||
dataTransfer.setData("text/vnd.tiddler",jsonData);
|
||||
dataTransfer.setData("text/plain",textData);
|
||||
dataTransfer.setData("text/plain",this.to);
|
||||
dataTransfer.setData("text/x-moz-url","data:text/vnd.tiddler," + encodeURI(jsonData));
|
||||
}
|
||||
dataTransfer.setData("URL","data:text/vnd.tiddler," + encodeURI(jsonData));
|
||||
dataTransfer.setData("Text",textData);
|
||||
dataTransfer.setData("Text",this.to);
|
||||
event.stopPropagation();
|
||||
} else {
|
||||
event.preventDefault();
|
||||
|
Reference in New Issue
Block a user