X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4ef96e2d9994c407f0f2f46301eb91fab6b48a37..6f46cc3b3134e947bb2c5f1ae7dfdd85c9d9dc0c:/IkiWiki/Plugin/cutpaste.pm diff --git a/IkiWiki/Plugin/cutpaste.pm b/IkiWiki/Plugin/cutpaste.pm index b1161ba06..92667a1ef 100644 --- a/IkiWiki/Plugin/cutpaste.pm +++ b/IkiWiki/Plugin/cutpaste.pm @@ -4,16 +4,24 @@ package IkiWiki::Plugin::cutpaste; use warnings; use strict; use IkiWiki 2.00; -use UNIVERSAL; my %savedtext; sub import { #{{{ + hook(type => "getsetup", id => "cutpaste", call => \&getsetup); hook(type => "preprocess", id => "cut", call => \&preprocess_cut, scan => 1); hook(type => "preprocess", id => "copy", call => \&preprocess_copy, scan => 1); hook(type => "preprocess", id => "paste", call => \&preprocess_paste); } # }}} +sub getsetup () { #{{{ + return + plugin => { + safe => 1, + rebuild => undef, + }, +} #}}} + sub preprocess_cut (@) { #{{{ my %params=@_;