Forrest and WYSIWYG editing

Christian Egli <[email protected]> 11 Mar 2003 10:33:24 +0100
Newsgroups gmane.comp.cms.wyona.devel
Message-ID <[email protected]>
There is a thread right now over at forrset-dev. Gianugo Rabellino
submitted a patch to integrate Htmlarea 3.0 (a html inline editor)
into Forrest. It looks quite interesting. Check out
http://htmlarea.cocoondev.org/index.html to see his motivation and a
demo.

To quote from above URL:

What is this?

This is just a plain Forrest distro with a few add-ons, hacks and
modifications:

First of all the editor is based on

* HTMLarea, from http://www.interactivetools.com. This is version 3.0,
  still alpha but quite usable from my experience until now;

* XML content is pulled from Forrest and trasformed to XHTML with a
  few addition (nominally some <div> and class attributes here and
  there so that the stylesheet renders a more "structure oriented"
  HTML that might be processed on the way back to the Forrest
  repository; 

* The edited content is submitted as a plain HTML form, and processed
  by:

        * JTidy, via a modified version of the HTMLGenerator that is
          able to pull content from a request parameter (available in
          Cocoon HEAD); 

        * A stylesheet that converts this HTML back to XML, with
          little or no loss;

        * The SourceWriterTransformer that saves the whole thing back
          to the Forrest repo. 

-- 
Christian Egli       [email protected]   +41 1 272 9161
                     Wyona AG, Hardstrasse 219, CH-8005 Zurich
Open Source CMS      http://www.wyona.org http://www.wyona.com