1
0
Fork 0
dokuwiki-plugins-extra/plugins/55/edittable/action/jsinfo.php
Daniel Baumann 778f9ac0bf
Adding edittable version 2023-01-14 (66785d9).
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-24 19:33:14 +01:00

24 lines
661 B
PHP

<?php
/**
* handles the data that has to be written into jsinfo
*
* like displaying the editor and adding custom edit buttons
*/
class action_plugin_edittable_jsinfo extends DokuWiki_Action_Plugin
{
/**
* Register its handlers with the DokuWiki's event controller
*/
public function register(Doku_Event_Handler $controller)
{
// register custom edit buttons
$controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'fill_jsinfo');
}
public function fill_jsinfo()
{
global $JSINFO;
$JSINFO['plugins']['edittable']['default columnwidth'] = $this->getConf('default colwidth');
}
}