mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-02 16:18:54 +00:00
@@ -41,7 +41,7 @@ exports.parse = function() {
|
||||
tag: "a",
|
||||
attributes: {
|
||||
href: {type: "string", value: this.match[0]},
|
||||
"class": {type: "string", value: "tw-tiddlylink-external"},
|
||||
"class": {type: "string", value: "tc-tiddlylink-external"},
|
||||
target: {type: "string", value: "_blank"}
|
||||
},
|
||||
children: [{
|
||||
|
||||
@@ -73,7 +73,7 @@ exports.parseLink = function(source,pos) {
|
||||
tag: "a",
|
||||
start: pos,
|
||||
attributes: {
|
||||
"class": {type: "string", value: "tw-tiddlylink-external"},
|
||||
"class": {type: "string", value: "tc-tiddlylink-external"},
|
||||
},
|
||||
children: [textNode]
|
||||
};
|
||||
|
||||
@@ -44,7 +44,7 @@ exports.parse = function() {
|
||||
tag: "a",
|
||||
attributes: {
|
||||
href: {type: "string", value: link},
|
||||
"class": {type: "string", value: "tw-tiddlylink-external"},
|
||||
"class": {type: "string", value: "tc-tiddlylink-external"},
|
||||
target: {type: "string", value: "_blank"}
|
||||
},
|
||||
children: [{
|
||||
|
||||
@@ -60,15 +60,15 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
|
||||
if(this.linkClasses) {
|
||||
classes.push(this.linkClasses);
|
||||
}
|
||||
classes.push("tw-tiddlylink");
|
||||
classes.push("tc-tiddlylink");
|
||||
if(this.isShadow) {
|
||||
classes.push("tw-tiddlylink-shadow");
|
||||
classes.push("tc-tiddlylink-shadow");
|
||||
}
|
||||
if(this.isMissing && !this.isShadow) {
|
||||
classes.push("tw-tiddlylink-missing");
|
||||
classes.push("tc-tiddlylink-missing");
|
||||
} else {
|
||||
if(!this.isMissing) {
|
||||
classes.push("tw-tiddlylink-resolves");
|
||||
classes.push("tc-tiddlylink-resolves");
|
||||
}
|
||||
}
|
||||
domNode.setAttribute("class",classes.join(" "));
|
||||
@@ -126,7 +126,7 @@ LinkWidget.prototype.handleClickEvent = function (event) {
|
||||
LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||
if(this.to) {
|
||||
// Set the dragging class on the element being dragged
|
||||
$tw.utils.addClass(event.target,"tw-tiddlylink-dragging");
|
||||
$tw.utils.addClass(event.target,"tc-tiddlylink-dragging");
|
||||
// Create the drag image elements
|
||||
this.dragImage = this.document.createElement("div");
|
||||
this.dragImage.className = "tw-tiddler-dragger";
|
||||
@@ -170,7 +170,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||
|
||||
LinkWidget.prototype.handleDragEndEvent = function(event) {
|
||||
// Remove the dragging class on the element being dragged
|
||||
$tw.utils.removeClass(event.target,"tw-tiddlylink-dragging");
|
||||
$tw.utils.removeClass(event.target,"tc-tiddlylink-dragging");
|
||||
// Delete the drag image element
|
||||
if(this.dragImage) {
|
||||
this.dragImage.parentNode.removeChild(this.dragImage);
|
||||
|
||||
Reference in New Issue
Block a user