summaryrefslogtreecommitdiffstats
path: root/plugins/55/edittable/action/jsinfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/55/edittable/action/jsinfo.php')
-rw-r--r--plugins/55/edittable/action/jsinfo.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/55/edittable/action/jsinfo.php b/plugins/55/edittable/action/jsinfo.php
new file mode 100644
index 0000000..de80c4f
--- /dev/null
+++ b/plugins/55/edittable/action/jsinfo.php
@@ -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');
+ }
+}