From 4a10f694c4e0895df9145b46c18a8b9633e68926 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 16 Aug 2007 16:26:08 +0000 Subject: [PATCH] web commit by http://jeremie.koenig.myopenid.com/ --- doc/todo/preview_changes.mdwn | 59 +++-------------------------------- 1 file changed, 5 insertions(+), 54 deletions(-) diff --git a/doc/todo/preview_changes.mdwn b/doc/todo/preview_changes.mdwn index d04c32314..5b77981a6 100644 --- a/doc/todo/preview_changes.mdwn +++ b/doc/todo/preview_changes.mdwn @@ -28,59 +28,10 @@ But: the following patch. (note that this is not the only template which has its submit buttons hardcoded; is this supposed to work around something?) -
-Index: templates/editpage.tmpl
-===================================================================
---- templates/editpage.tmpl     (révision 4130)
-+++ templates/editpage.tmpl     (copie de travail)
-@@ -57,9 +57,7 @@
- Optional comment about this change:
-
- -- -- -- -+ - - - -Index: IkiWiki/CGI.pm -=================================================================== ---- IkiWiki/CGI.pm (révision 4130) -+++ IkiWiki/CGI.pm (copie de travail) -@@ -304,6 +304,7 @@ - eval q{use CGI::FormBuilder}; - error($@) if $@; - my $form = CGI::FormBuilder->new( -+ title => "editpage", - fields => \@fields, - charset => "utf-8", - method => 'POST', -@@ -321,7 +322,8 @@ - ); - - run_hooks(formbuilder_setup => sub { -- shift->(form => $form, cgi => $q, session => $session); -+ shift->(form => $form, cgi => $q, session => $session, -+ buttons => \@buttons); - }); - - decode_form_utf8($form); -@@ -402,12 +404,12 @@ - preprocess($page, $page, - filter($page, $page, $form->field('editcontent')), 0, 1)))); - } -- else { -+ elsif ($form->submitted eq "Save Page") { - $form->tmpl_param("page_preview", ""); - } - $form->tmpl_param("page_conflict", ""); - -- if (! $form->submitted || $form->submitted eq "Preview" || -+ if ($form->submitted ne "Save Page" || - ! $form->validate) { - if ($form->field("do") eq "create") { - my @page_locs; -
+I've got a [preliminary implementation](http://www.jk.fr.eu.org/ikiwiki/showdiff.pm), +which depends on [this patch](http://www.jk.fr.eu.org/ikiwiki/pluggable_editpage_buttons.diff) +and the [[plugins/contrib/plaintext]] plugin. + +There is still some tweaking needed, though. --[[JeremieKoenig]] \ No newline at end of file -- 2.26.2