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

View file

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