mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Fix wikitext warning: Get range from selection before trying to find start"
This commit is contained in:
commit
5d6ee06b84
|
@ -773,7 +773,7 @@ ve.init.mw.ViewPageTarget.static.checkForWikitextWarning = function ( surface, w
|
|||
if ( !selection ) {
|
||||
return;
|
||||
}
|
||||
node = doc.getBranchNodeFromOffset( selection.start );
|
||||
node = doc.getBranchNodeFromOffset( selection.getRange().start );
|
||||
if ( !( node instanceof ve.ce.ContentBranchNode ) ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue