make wmd comment support comment editing (I think)
[ikiwiki.git] / IkiWiki / Plugin / wmd.pm
index 3372ffe38dc35c115829eceba24e06d165045e4b..9e9f17f7f635edc87265f8b9be1e1fdbb99a1390 100644 (file)
@@ -26,8 +26,9 @@ sub formbuilder_setup (@) {
 
        return if ! defined $form->field("do");
        
-       return unless (($form->field("do") eq "edit") ||
-                               ($form->field("do") eq "create"));
+       return unless $form->field("do") eq "edit" ||
+                       $form->field("do") eq "create" ||
+                       $form->field("do") eq "comment";
 
        $form->tmpl_param("wmd_preview", "<div class=\"wmd-preview\"></div>\n".
                include_javascript(undef, 1));