Suppress editing header info text
This commit is contained in:
16
main.php
16
main.php
@@ -21,6 +21,22 @@ $EVENT_HANDLER->register_hook(
|
|||||||
"_luxtools_secedit_button",
|
"_luxtools_secedit_button",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Remove the edit page intro text ("Edit the page and hit Save...")
|
||||||
|
$EVENT_HANDLER->register_hook(
|
||||||
|
"PARSER_LOCALE_XHTML",
|
||||||
|
"BEFORE",
|
||||||
|
null,
|
||||||
|
"_luxtools_suppress_edit_intro",
|
||||||
|
);
|
||||||
|
|
||||||
|
function _luxtools_suppress_edit_intro(\dokuwiki\Extension\Event $event, $param)
|
||||||
|
{
|
||||||
|
if ($event->data['id'] === 'edit' || $event->data['id'] === 'editrev') {
|
||||||
|
$event->preventDefault();
|
||||||
|
$event->data['html'] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function _luxtools_secedit_button(\dokuwiki\Extension\Event $event, $param)
|
function _luxtools_secedit_button(\dokuwiki\Extension\Event $event, $param)
|
||||||
{
|
{
|
||||||
global $ID, $INFO;
|
global $ID, $INFO;
|
||||||
|
|||||||
Reference in New Issue
Block a user