mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Remove Parsoid hack and fix new references.
Now that I797b2bd87 is in we can remove the data-parsoid hack for new references. Also fix the converter to always insert content for keyless references. Change-Id: Ia42907feb8f64637189eba15139177c7eb5e8899
This commit is contained in:
parent
8039b1c2f8
commit
e67b4030f3
|
@ -78,7 +78,8 @@ ve.dm.MWReferenceNode.static.toDomElements = function ( dataElement, doc, conver
|
|||
|
||||
mwAttr = ve.copyObject( dataElement.attributes.mw ) || {};
|
||||
|
||||
setContents = dataElement.attributes.contentsUsed;
|
||||
setContents = dataElement.attributes.contentsUsed ||
|
||||
dataElement.attributes.listKey === null;
|
||||
|
||||
if ( !setContents ) {
|
||||
// Check if any other nodes with this key provided content. If not
|
||||
|
|
|
@ -145,16 +145,7 @@ ve.ui.MWReferenceDialog.prototype.onClose = function ( action ) {
|
|||
'listGroup': 'mwReference/' + groupName,
|
||||
'listKey': key,
|
||||
'refGroup': groupName
|
||||
},
|
||||
//TODO: remove these htmlAttributes once fixed in Parsoid
|
||||
'htmlAttributes': [
|
||||
{
|
||||
'keys': [ 'data-parsoid' ],
|
||||
'values': {
|
||||
'data-parsoid': '{"src":""}'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{ 'type': '/mwReference' }
|
||||
] );
|
||||
|
|
Loading…
Reference in a new issue