Alex Monk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/77052
Change subject: Add JS hook for user scripts to add buttons to all LQT
textareas as they are created
......................................................................
Add JS hook for user scripts to add buttons to all LQT textareas as they are
created
Bug: 21692
Change-Id: If49ef4ac51850355a7f2be8252255534c5dd44a8
---
M lqt.js
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads
refs/changes/52/77052/1
diff --git a/lqt.js b/lqt.js
index 0992770..a482eda 100644
--- a/lqt.js
+++ b/lqt.js
@@ -220,6 +220,7 @@
mwSetupToolbar();
}
currentFocused = $( container ).find( '#wpTextbox1' );
+ mw.hook( 'ext.lqt.textareaCreated' ).fire(
currentFocused );
$( container ).find( '#wpTextbox1,#wpSummary' ).focus(
function () {
currentFocused = this;
} );
--
To view, visit https://gerrit.wikimedia.org/r/77052
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If49ef4ac51850355a7f2be8252255534c5dd44a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits