Prtksxna has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/364670 )
Change subject: Replace TextInputWidget (multiline) with
MultilineTextInputWidget
......................................................................
Replace TextInputWidget (multiline) with MultilineTextInputWidget
Also, remove multiline: false from a couple of places since that
is the default value.
Bug: T170275
Change-Id: Ic3e993b1b21eea56aec5e5b13b1b51692db31d5e
---
M modules/editor/editors/ext.flow.editors.none.js
M modules/flow/ui/widgets/editor/editors/mw.flow.ui.WikitextEditorWidget.js
M modules/flow/ui/widgets/editor/mw.flow.ui.EditorSwitcherWidget.js
M modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
M modules/flow/ui/widgets/mw.flow.ui.ReplyWidget.js
5 files changed, 3 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/70/364670/1
diff --git a/modules/editor/editors/ext.flow.editors.none.js
b/modules/editor/editors/ext.flow.editors.none.js
index d44c536..80589da 100644
--- a/modules/editor/editors/ext.flow.editors.none.js
+++ b/modules/editor/editors/ext.flow.editors.none.js
@@ -19,9 +19,8 @@
// node the editor is associated with.
this.$node = $node;
- this.widget = new OO.ui.TextInputWidget( {
+ this.widget = new OO.ui.MultilineTextInputWidget( {
value: content || '',
- multiline: true,
autosize: true,
maxRows: 999,
placeholder: this.$node.attr( 'placeholder' )
diff --git
a/modules/flow/ui/widgets/editor/editors/mw.flow.ui.WikitextEditorWidget.js
b/modules/flow/ui/widgets/editor/editors/mw.flow.ui.WikitextEditorWidget.js
index 00e4e48..7195efd 100644
--- a/modules/flow/ui/widgets/editor/editors/mw.flow.ui.WikitextEditorWidget.js
+++ b/modules/flow/ui/widgets/editor/editors/mw.flow.ui.WikitextEditorWidget.js
@@ -18,8 +18,7 @@
mw.flow.ui.WikitextEditorWidget.parent.call( this, config );
// Main textarea
- this.input = new OO.ui.TextInputWidget( {
- multiline: true,
+ this.input = new OO.ui.MultilineTextInputWidget( {
autosize: true,
maxRows: 999,
placeholder: config.placeholder,
diff --git a/modules/flow/ui/widgets/editor/mw.flow.ui.EditorSwitcherWidget.js
b/modules/flow/ui/widgets/editor/mw.flow.ui.EditorSwitcherWidget.js
index 2b2317e..5362c06 100644
--- a/modules/flow/ui/widgets/editor/mw.flow.ui.EditorSwitcherWidget.js
+++ b/modules/flow/ui/widgets/editor/mw.flow.ui.EditorSwitcherWidget.js
@@ -50,8 +50,7 @@
this.switchingPromise = null;
this.settingPromise = null;
- this.placeholderInput = new OO.ui.TextInputWidget( {
- multiline: true,
+ this.placeholderInput = new OO.ui.MultilineTextInputWidget( {
placeholder: this.placeholder,
classes: [
'flow-ui-editorSwitcherWidget-placeholder-input' ]
} );
diff --git a/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
b/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
index caad1d3..652e383 100644
--- a/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
+++ b/modules/flow/ui/widgets/mw.flow.ui.NewTopicWidget.js
@@ -47,7 +47,6 @@
this.title = new OO.ui.TextInputWidget( {
placeholder: mw.msg( 'flow-newtopic-start-placeholder'
),
- multiline: false,
classes: [ 'flow-ui-newTopicWidget-title' ]
} );
diff --git a/modules/flow/ui/widgets/mw.flow.ui.ReplyWidget.js
b/modules/flow/ui/widgets/mw.flow.ui.ReplyWidget.js
index 75ed555..c3a5ebc 100644
--- a/modules/flow/ui/widgets/mw.flow.ui.ReplyWidget.js
+++ b/modules/flow/ui/widgets/mw.flow.ui.ReplyWidget.js
@@ -65,7 +65,6 @@
if ( this.expandable ) {
this.triggerInput = new OO.ui.TextInputWidget( {
- multiline: false,
classes: [ 'flow-ui-replyWidget-trigger-input'
],
placeholder: config.placeholder
} );
--
To view, visit https://gerrit.wikimedia.org/r/364670
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic3e993b1b21eea56aec5e5b13b1b51692db31d5e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits