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() {
|
LinkViewer.prototype.render = function() {
|
||||||
var text = this.value === undefined ? "" : this.value;
|
var text = this.value === undefined ? "" : this.value;
|
||||||
// Set the element details
|
// Indicate that we're not generating an element
|
||||||
this.viewWidget.tag = "span";
|
this.viewWidget.tag = undefined;
|
||||||
this.viewWidget.attributes = {
|
|
||||||
"class": "tw-view-link"
|
|
||||||
};
|
|
||||||
this.viewWidget.children = this.viewWidget.renderer.renderTree.createRenderers(this.viewWidget.renderer.renderContext,[{
|
this.viewWidget.children = this.viewWidget.renderer.renderTree.createRenderers(this.viewWidget.renderer.renderContext,[{
|
||||||
type: "element",
|
type: "element",
|
||||||
tag: "$link",
|
tag: "$link",
|
||||||
|
Loading…
Reference in New Issue
Block a user