mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "You know what, just don't render hrefs, these links aren't clickable anyway"
This commit is contained in:
commit
35803f97ac
|
@ -103,13 +103,13 @@ ve.ce.TextNode.annotationRenderers = {
|
||||||
},
|
},
|
||||||
'link/extLink': {
|
'link/extLink': {
|
||||||
'open': function( data ) {
|
'open': function( data ) {
|
||||||
return '<a href="' + mw.html.escape( data.href || '#' ) + '">';
|
return '<a href="#">';
|
||||||
},
|
},
|
||||||
'close': '</a>'
|
'close': '</a>'
|
||||||
},
|
},
|
||||||
'link/wikiLink': {
|
'link/wikiLink': {
|
||||||
'open': function( data ) {
|
'open': function( data ) {
|
||||||
return '<a href="' + mw.html.escape( mw.util.wikiGetLink( data.title || '' ) ) + '">';
|
return '<a href="#">';
|
||||||
},
|
},
|
||||||
'close': '</a>'
|
'close': '</a>'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue