add contents
This commit is contained in:
24
lib/plugins/edittable/action/jsinfo.php
Normal file
24
lib/plugins/edittable/action/jsinfo.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user