Skip to content

Commit

Permalink
Fix #3 compatibility with the edittable plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed May 5, 2018
1 parent c8e9a4e commit 8abd09b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ public function handle_action_act_preprocess(Doku_Event $event, $param) {
$this->clean_after_save();
$event->data = 'edit';

/*
The edittable plugin would restore $TEXT from the
edittable_data post data on each
ACTION_ACT_PREPROCESS call. This breaks the
automatic restore of the prefix and suffix
data. Stop it from doing this by unsetting its
data.
*/
$INPUT->post->remove('edittable_data');

/*
Stop propagation of the event. All subsequent event
handlers will be called anyway again by the event
Expand Down

0 comments on commit 8abd09b

Please sign in to comment.