mirror of
https://github.com/cosmocode/edittable.git
synced 2026-01-18 12:41:29 +00:00
Currently the default width of a cell is wide enough to support its entire content. Add the config option to specify a default width for all columns. This may make sense since for cells with very wide content the cell may become wider than the screen. ABY-67
25 lines
673 B
PHP
25 lines
673 B
PHP
<?php
|
|
|
|
if(!defined('DOKU_INC')) die();
|
|
|
|
/**
|
|
* 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
|
|
*/
|
|
function register(Doku_Event_Handler $controller) {
|
|
// register custom edit buttons
|
|
$controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'fill_jsinfo');
|
|
}
|
|
|
|
function fill_jsinfo() {
|
|
global $JSINFO;
|
|
$JSINFO['plugins']['edittable']['default columnwidth'] = $this->getConf('default colwidth');
|
|
}
|
|
}
|