Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6171819
ext.linter.edit.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
ext.linter.edit.js
View Options
$
(
()
=>
{
const
location
=
mw
.
config
.
get
(
'wgLinterErrorLocation'
);
function
highlightPosition
(
$textbox
)
{
$textbox
.
trigger
(
'focus'
).
textSelection
(
'setSelection'
,
{
start
:
location
[
0
],
end
:
location
[
1
]
}
);
$textbox
.
textSelection
(
'scrollToCaretPosition'
);
}
if
(
location
)
{
// eslint-disable-next-line no-jquery/no-global-selector
highlightPosition
(
$
(
'#wpTextbox1'
)
);
mw
.
hook
(
've.wikitextInteractive'
).
add
(
()
=>
{
if
(
mw
.
libs
.
ve
.
tempWikitextEditor
)
{
highlightPosition
(
mw
.
libs
.
ve
.
tempWikitextEditor
.
$element
);
}
else
{
// VE dummy textbox
// eslint-disable-next-line no-jquery/no-global-selector
highlightPosition
(
$
(
'#wpTextbox1'
)
);
}
}
);
}
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 8 2026, 21:53 (7 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/62/69eb094ff6332722b6bbbcd050d7
Default Alt Text
ext.linter.edit.js (722 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment