mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
MW*ImageNode's can't take link annotations
Because there's no sane wikitext to handle that case, and Parsoid will just output garbage. Bug: 53151 Change-Id: I9e065aa46d88f6bed9c47127b3e002ec2e1fec5a
This commit is contained in:
parent
f001d306ad
commit
2d0bf61c78
|
@ -43,6 +43,8 @@ ve.dm.MWBlockImageNode.static.childNodeTypes = [ 'mwImageCaption' ];
|
|||
|
||||
ve.dm.MWBlockImageNode.static.matchTagNames = [ 'figure' ];
|
||||
|
||||
ve.dm.MWBlockImageNode.static.blacklistedAnnotationTypes = [ 'link' ];
|
||||
|
||||
ve.dm.MWBlockImageNode.static.getMatchRdfaTypes = function () {
|
||||
return Object.keys( this.rdfaToType );
|
||||
};
|
||||
|
|
|
@ -39,6 +39,8 @@ ve.dm.MWInlineImageNode.static.storeHtmlAttributes = {
|
|||
|
||||
ve.dm.MWInlineImageNode.static.matchTagNames = [ 'span' ];
|
||||
|
||||
ve.dm.MWInlineImageNode.static.blacklistedAnnotationTypes = [ 'link' ];
|
||||
|
||||
ve.dm.MWInlineImageNode.static.getMatchRdfaTypes = function () {
|
||||
return Object.keys( this.rdfaToType );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue