mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +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>'
|
'close': '</a>'
|
||||||
},
|
},
|
||||||
'link/SimpleWikiLink': {
|
|
||||||
'open': function () {
|
|
||||||
return '<a href="#">';
|
|
||||||
},
|
|
||||||
'close': '</a>'
|
|
||||||
},
|
|
||||||
'link/unknown': {
|
'link/unknown': {
|
||||||
'open': function () {
|
'open': function () {
|
||||||
return '<a href="#">';
|
return '<a href="#">';
|
||||||
|
|
|
@ -38,7 +38,7 @@ ve.dm.LinkAnnotation.converters = {
|
||||||
}
|
}
|
||||||
|
|
||||||
link.setAttribute( 'rel', 'mw:' + subType );
|
link.setAttribute( 'rel', 'mw:' + subType );
|
||||||
if ( subType === 'WikiLink' || subType === 'SimpleWikiLink') {
|
if ( subType === 'WikiLink' ) {
|
||||||
// Set href to /title
|
// Set href to /title
|
||||||
// FIXME article path should be configurable, currently Parsoid always uses '/'
|
// FIXME article path should be configurable, currently Parsoid always uses '/'
|
||||||
// FIXME space -> _ is MW-specific
|
// FIXME space -> _ is MW-specific
|
||||||
|
@ -58,7 +58,7 @@ ve.dm.LinkAnnotation.converters = {
|
||||||
'data': {}
|
'data': {}
|
||||||
},
|
},
|
||||||
i, attribute;
|
i, attribute;
|
||||||
if ( subType === 'WikiLink' || subType === 'SimpleWikiLink' ) {
|
if ( subType === 'WikiLink' ) {
|
||||||
// Get title from href by stripping article path
|
// Get title from href by stripping article path
|
||||||
// FIXME article path should be configurable, currently Parsoid always uses '/'
|
// FIXME article path should be configurable, currently Parsoid always uses '/'
|
||||||
// FIXME _ -> space is MW-specific
|
// FIXME _ -> space is MW-specific
|
||||||
|
|
Loading…
Reference in a new issue