DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:edit_form_addtextarea

EDIT_FORM_ADDTEXTAREA

Description:
add elements to edit forms for editing the given wikitext
DefaultAction:
a plain textarea is added to the edit form
Preventable:
yes
Added:
2020-10-13

This event is signaled by dokuwiki\Ui\Editor::show()1) 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 FORM_EDIT_OUTPUT.

Passed Data

  • $data['wr']: Whether the page is writable
  • $data['form']:
    • 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

devel/event/edit_form_addtextarea.txt · Last modified: 2021-12-19 16:10 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki