From 7ca39f49db67de756795ad419791082e115fbd98 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 7 Mar 2009 18:52:14 -0500 Subject: forgot to add wmd tag here --- templates/editpage.tmpl | 1 + 1 file changed, 1 insertion(+) (limited to 'templates') diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index 4b54db2d1..b1cf015a2 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -37,6 +37,7 @@ Optional comment about this change:
+
-- cgit v1.2.3 From 72dd9a9a0434e1682d7e27b935500c010a03dddc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 7 Mar 2009 18:54:26 -0500 Subject: make wmd comment support comment editing (I think) --- IkiWiki/Plugin/wmd.pm | 5 +++-- templates/editcomment.tmpl | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/IkiWiki/Plugin/wmd.pm b/IkiWiki/Plugin/wmd.pm index 3372ffe38..9e9f17f7f 100644 --- a/IkiWiki/Plugin/wmd.pm +++ b/IkiWiki/Plugin/wmd.pm @@ -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", "
\n". include_javascript(undef, 1)); diff --git a/templates/editcomment.tmpl b/templates/editcomment.tmpl index 891bcae65..7590cdfd7 100644 --- a/templates/editcomment.tmpl +++ b/templates/editcomment.tmpl @@ -15,6 +15,7 @@ Subject:

IkiWiki directives ([[!directive]]) are not allowed in comments on this wiki.
+
-- cgit v1.2.3