Ah, OK. I still want something simpler: just edit the whole document
in-place. Anyway, the basic problem (from my point of view) remains:
the text you want to edit is different from the text that is already
in the html.
Using Scriptaculous Ajax.InPlaceEditor's loadTextURL would allow pier
to put the wiki-source text into the textarea when the in-place editor
starts.
I'll keep looking around the source then, maybe I find something
similar in the Scriptaculous seaside package :)
Matthias
On Tue, Feb 9, 2010 at 9:44 AM, Lukas Renggli <renggli(a)gmail.com> wrote:
If I understood you correctly you want something along
Stackoverflow,
where you see the resulting HTML along when you type.
No, I want the simpler thing: I click on some text and get a text
area where I can edit the wiki source. No live preview necessary.
That's far more complicated.
Have a look at PRHaloRenderer in Pier-EditorEnh this is somehow
similar. This adds a halo around each structure as it is rendered to
HTML. In your case you would do something similar but render an
in-place editor around each paragraph.
Some versions of Pier back in 2005 or 2006 had such a functionality.
You might get some ideas looking at that code, although I don't
remember if it every worked. Directly editing the document AST becomes
quite tricky if you go beyond simple paragraphs.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki