mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "Use blacklist instead of whitelist for storeHtmlAttributes of MWBlockImageNode."
This commit is contained in:
commit
8a614ae395
|
@ -26,7 +26,9 @@ ve.inheritClass( ve.dm.MWBlockImageNode, ve.dm.BranchNode );
|
|||
|
||||
ve.dm.MWBlockImageNode.static.name = 'mwBlockImage';
|
||||
|
||||
ve.dm.MWBlockImageNode.static.storeHtmlAttributes = [ 'data-parsoid' ];
|
||||
ve.dm.MWBlockImageNode.static.storeHtmlAttributes = {
|
||||
'blacklist': [ 'typeof', 'class', 'src', 'resource', 'width', 'height', 'href', 'rel' ]
|
||||
};
|
||||
|
||||
ve.dm.MWBlockImageNode.static.handlesOwnChildren = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue