mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 09:04:21 +00:00
Merge "Editcheck: fix typo in ConvertReferenceEditCheck"
This commit is contained in:
commit
c7979510e6
|
@ -20,7 +20,7 @@ mw.editcheck.ConvertReferenceEditCheck.prototype.onDocumentChange = function ( s
|
||||||
const referenceNode = documentModel.getInternalList().getItemNode( index );
|
const referenceNode = documentModel.getInternalList().getItemNode( index );
|
||||||
const href = ve.ui.CitoidReferenceContextItem.static.getConvertibleHref( referenceNode );
|
const href = ve.ui.CitoidReferenceContextItem.static.getConvertibleHref( referenceNode );
|
||||||
if ( href ) {
|
if ( href ) {
|
||||||
const fragment = surfaceModel().getLinearFragment( node.getOuterRange() );
|
const fragment = surfaceModel.getLinearFragment( node.getOuterRange() );
|
||||||
return new mw.editcheck.EditCheckAction( {
|
return new mw.editcheck.EditCheckAction( {
|
||||||
highlights: [ fragment ],
|
highlights: [ fragment ],
|
||||||
selection: fragment,
|
selection: fragment,
|
||||||
|
|
Loading…
Reference in a new issue