diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-14 23:08:25 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-14 23:08:25 +0100 |
commit | 88e6a4f27638db93e9ca8ca28ea1710343c34701 (patch) | |
tree | 5221c761f3e785e4f49a936f5f2fc4e9a031051d | |
parent | b2bc63f038e8b3c51be7fdf0fd8a3bd65721a4e3 (diff) | |
download | rpg-88e6a4f27638db93e9ca8ca28ea1710343c34701.tar.gz rpg-88e6a4f27638db93e9ca8ca28ea1710343c34701.tar.bz2 |
HTML_EDITFORM_INJECTION event added
A simple event to inject additional HTML into the editform. This probably
needs to be improved.
darcs-hash:20061114220825-7ad00-ce868b8d8a25f5120c49dc018b8fd1024aff6e12.gz
-rw-r--r-- | inc/auth.php | 1 | ||||
-rw-r--r-- | inc/html.php | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/inc/auth.php b/inc/auth.php index 07f335627..bedc3877e 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -73,6 +73,7 @@ } //load ACL into a global array + global $AUTH_ACL; if(is_readable(DOKU_CONF.'acl.auth.php')){ $AUTH_ACL = file(DOKU_CONF.'acl.auth.php'); }else{ diff --git a/inc/html.php b/inc/html.php index f2ceceddd..8fb516598 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1117,6 +1117,11 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? <textarea name="wikitext" id="wiki__text" <?php echo $ro?> cols="80" rows="10" class="edit" tabindex="1"><?php echo "\n".formText($text)?></textarea> + <?php //bad and dirty event insert hook + $evdata = array('writable' => $wr); + trigger_event('HTML_EDITFORM_INJECTION', $evdata); + ?> + <div id="wiki__editbar"> <div id="size__ctl"></div> <?php if($wr){?> |