mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 23:44:17 +00:00
Fix VisualEditor (NWE) integration
The hook has been renamed from 've.tempWikitextReady' to 've.wikitextInteractive' in patchset 2 of changeset I3678996bcf644cc889dd168ac3ce48b5c3633ec1 in mw/ext/VisualEditor, but changeset I31a21e10b3fcd88fbce6881475f02a9d37df39c2 in this repo was merged without being updated for that change. Bug: T185279 Change-Id: I3256b0eb999e0259c3706697cd6a50459278af61
This commit is contained in:
parent
a3f991fe2b
commit
6d0c6b6730
|
@ -8,7 +8,7 @@ $( function () {
|
|||
$textbox.trigger( 'focus' ).textSelection( 'setSelection', { start: location[ 0 ], end: location[ 1 ] } );
|
||||
$textbox.textSelection( 'scrollToCaretPosition' );
|
||||
}
|
||||
mw.hook( 've.tempWikitextReady' ).add( function () {
|
||||
mw.hook( 've.wikitextInteractive' ).add( function () {
|
||||
mw.libs.ve.tempWikitextEditor.$element[ 0 ].setSelectionRange(
|
||||
location[ 0 ], location[ 1 ]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue