mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "SimpleWikiLink is no longer used by Parsoid, remove it from VE"
This commit is contained in:
commit
0db79e5154
|
@ -132,12 +132,6 @@ ve.ce.TextNode.annotationRenderers = {
|
|||
},
|
||||
'close': '</a>'
|
||||
},
|
||||
'link/SimpleWikiLink': {
|
||||
'open': function () {
|
||||
return '<a href="#">';
|
||||
},
|
||||
'close': '</a>'
|
||||
},
|
||||
'link/unknown': {
|
||||
'open': function () {
|
||||
return '<a href="#">';
|
||||
|
|
|
@ -38,7 +38,7 @@ ve.dm.LinkAnnotation.converters = {
|
|||
}
|
||||
|
||||
link.setAttribute( 'rel', 'mw:' + subType );
|
||||
if ( subType === 'WikiLink' || subType === 'SimpleWikiLink') {
|
||||
if ( subType === 'WikiLink' ) {
|
||||
// Set href to /title
|
||||
// FIXME article path should be configurable, currently Parsoid always uses '/'
|
||||
// FIXME space -> _ is MW-specific
|
||||
|
@ -58,7 +58,7 @@ ve.dm.LinkAnnotation.converters = {
|
|||
'data': {}
|
||||
},
|
||||
i, attribute;
|
||||
if ( subType === 'WikiLink' || subType === 'SimpleWikiLink' ) {
|
||||
if ( subType === 'WikiLink' ) {
|
||||
// Get title from href by stripping article path
|
||||
// FIXME article path should be configurable, currently Parsoid always uses '/'
|
||||
// FIXME _ -> space is MW-specific
|
||||
|
|
Loading…
Reference in a new issue