mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Get rid of the extraneous <span> around link widgets
This commit is contained in:
parent
89d44e27df
commit
a2dfaec054
@ -21,11 +21,8 @@ var LinkViewer = function(viewWidget,tiddler,field,value) {
|
||||
|
||||
LinkViewer.prototype.render = function() {
|
||||
var text = this.value === undefined ? "" : this.value;
|
||||
// Set the element details
|
||||
this.viewWidget.tag = "span";
|
||||
this.viewWidget.attributes = {
|
||||
"class": "tw-view-link"
|
||||
};
|
||||
// Indicate that we're not generating an element
|
||||
this.viewWidget.tag = undefined;
|
||||
this.viewWidget.children = this.viewWidget.renderer.renderTree.createRenderers(this.viewWidget.renderer.renderContext,[{
|
||||
type: "element",
|
||||
tag: "$link",
|
||||
|
Loading…
Reference in New Issue
Block a user