devel:event:html_edit_formselection
Table of Contents
HTML_EDIT_FORMSELECTION
- Description:
- add elements to edit forms for editing the given wikitext
- DefaultAction:
- a plain textarea is added to the edit form
- Preventable:
- yes
- Added:
- 2010-01-19
Up to release 2018 Greebo: This event is signaled by show() in inc/html.php when an edit form is shown, handlers can use it to provide own edit forms for special content. The whole form can be changed in HTML_EDITFORM_OUTPUT.
Since release 2020 Hogfather: This event is signaled by Editor::show() in inc/Ui/Editor.php when an edit form is shown, handlers can use it to provide own edit forms for special content. The whole form can be changed in HTML_EDITFORM_OUTPUT.
Passed Data
- $data['wr']: Whether the page is writable
- $data['form']:
- Up to release 2018 Greebo: The Doku_Form object for the edit form
- Since release 2020 Hogfather: The
dokuwiki\Form\Form
object for the edit form. See refactor2021 for fallback code for the Form update.
- $data['media_manager']: Whether the no-JavaScript fallback media manager link should be shown
- $data['intro_locale']: The locale name of the intro page; Unset this for hiding the intro text
See also
- Code related to this event used in any DokuWiki's files, plugins and templates
- HTML_EDITFORM_OUTPUT maybe used to postprocess the resulting edit form
devel/event/html_edit_formselection.txt · Last modified: 2022-07-31 21:58 by Klap-in