1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-16 07:17:21 +00:00

Major refactoring of rendering mechanism

We now use a fake DOM implementation on the server to let us share more
rendering code between the text output vs. DOM output paths.
This commit is contained in:
Jeremy Ruston
2013-05-17 10:12:25 +01:00
parent bf4fede34e
commit 551ebdc005
18 changed files with 167 additions and 107 deletions

View File

@@ -123,10 +123,10 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
// Set the dragging class on the element being dragged
$tw.utils.addClass(event.target,"tw-tiddlylink-dragging");
// Create the drag image element
this.dragImage = document.createElement("div");
this.dragImage = this.listWidget.renderer.renderTree.document.createElement("div");
this.dragImage.className = "tw-tiddler-dragger";
this.dragImage.appendChild(document.createTextNode(this.to));
document.body.appendChild(this.dragImage);
this.dragImage.appendChild(this.listWidget.renderer.renderTree.document.createTextNode(this.to));
this.listWidget.renderer.renderTree.document.body.appendChild(this.dragImage);
// Set the data transfer properties
var dataTransfer = event.dataTransfer;
dataTransfer.effectAllowed = "copy";