DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

devel:event:edit_form_addtextarea

This is an old revision of the document!


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

This event is signaled by inc\Ui\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 FORM_EDIT_OUTPUT.

Passed Data

  • $data['wr']: Whether the page is writable
  • $data['form']:
    • The dokuwiki\Form\Form object for the edit form. See refactor2 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.1601641336.txt.gz · Last modified: 2020-10-02 14:22 by s-sahara