]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/cutpaste.pm
move plugin toggles to before config setting again
[git.ikiwiki.info.git] / IkiWiki / Plugin / cutpaste.pm
index b1161ba063c64ca8ecd8e08ec711d43682de64d5..24a05601df5ccd02e25a69ad1c254a4c6840871b 100644 (file)
@@ -9,11 +9,20 @@ use UNIVERSAL;
 my %savedtext;
 
 sub import { #{{{
 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);
 } # }}}
 
        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=@_;
 
 sub preprocess_cut (@) { #{{{
        my %params=@_;