![]() It is implemented using the OOUI library. The "combobox" input type provides a combo box interface: an input that functions like a regular autocomplete field, but has an additional down-arrow icon, like that of a dropdown, to let the user see all the available values at once. These were formerly real input types, but have been aliases for "combobox" or "tokens" (depending on whether the input holds a list of values, or just one) since version 5.0. Text with autocomplete, textarea with autocomplete The default value for this is set by the variable $wgPageFormsVisualEditorMaxHeight, which by default is 400. If VisualEditor is being used, specifies a maximum height (in pixels) for the textarea, since VE uses autogrow. If you would like the toolbar to show up at the top of the edit field rather than at the bottom (default) you will also have to add |class=toolbarOnTop Another extension, VEForAll, must also be installed. visualeditor - uses the VisualEditor extension, which must be installed.This does not work with multiple-instance templates. tinymce - uses the TinyMCE extension, which must be installed. ![]() You should also upgrade to version 5.1 or later of Page Forms if you are using an older versions or you can apply the Page Forms patch here. If you are using a version somewhere in the middle for WikiEditor, and you don't want to upgrade MediaWiki, you can manually apply the necessary change to the code, which can be found here. It was restored in the 1.36 version of WikiEditor, with a corresponding change in version 5.1 of Page Forms. Note that there was a change to the WikiEditor code in the version that corresponds to MediaWiki version 1.34 that broke this functionality. If you want to add any additional custom toolbars to WikiEditor, you will need to add them in the JavaScript to ('#free_text').wikiEditor, just as they exist for ('#wpTextbox1').wikiEditor. Unfortunately, only one input within the form can have WikiEditor associated with it, due to a limitation in the WikiEditor extension. wikieditor - uses the WikiEditor extension, which must be installed.Sets the textarea to "auto-grow" its height to match that of its contents, so that a scrollbar won't be needed.Īdds a JavaScript-based editor to the textarea to make editing its contents more user-friendly. The autocapitalize parameter in the corresponding HTML tag to whatever value is set for this parameter examples include on, off, sentences, etc. Specifies help text that is displayed in the input until the user clicks on it. Specifies the maximum allowed length of the input. Specifies the width of the input, in characters. The default input type corresponds to the HTML "text" input. This page covers the various input types available within Page Forms, and the parameters and other customizations that can be set for them.
0 Comments
Leave a Reply. |