Merge "SimpleWikiLink is no longer used by Parsoid, remove it from VE"

This commit is contained in:
Trevor Parscal 2012-08-14 15:49:27 +00:00 committed by Gerrit Code Review
commit 0db79e5154
2 changed files with 2 additions and 8 deletions

View file

@ -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="#">';

View file

@ -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