make wmd comment support comment editing (I think)
parent
7ca39f49db
commit
72dd9a9a04
|
@ -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));
|
||||
|
|
|
@ -15,6 +15,7 @@ Subject: <TMPL_VAR FIELD-SUBJECT><br />
|
|||
<TMPL_VAR FORM-SUBMIT> <TMPL_VAR FIELD-TYPE> <TMPL_VAR HELPONFORMATTINGLINK><br />
|
||||
IkiWiki directives ([[!directive]]) are <TMPL_UNLESS NAME="ALLOWDIRECTIVES">not </TMPL_UNLESS>allowed in comments on this wiki.<br />
|
||||
<TMPL_VAR NAME="FORM-END">
|
||||
<TMPL_VAR WMD_PREVIEW>
|
||||
|
||||
<TMPL_IF NAME="PAGE_PREVIEW">
|
||||
<hr />
|
||||
|
|
Loading…
Reference in New Issue