On Tue, Feb 9, 2010 at 8:54 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.
Thanks
Matthias
I think the in-place editor does not help much in this
case. What you
want to do is a normal text area that triggers an AJAX action that
serializes the textarea and that updates a preview with the freshly
rendered HTML.
Lukas
On 9 February 2010 01:47, Matthias Berth <matthias.berth(a)googlemail.com> wrote:
Hi,
I'm trying to do in-place editing on Pier pages (or rather I want to
use pier wiki markup in user comments in my app). Has anyone done
something like that before? I am using the seaside 3.0 one-click
image.
I can do in-place editing with 'normal' text, the problem with pier
seems to be that the text that you want to edit (pier's wiki source)
is different from what you have on the displayed page (the HTML
rendering of the wiki text).
The Scriptaculous documentation mentions this:
http://wiki.github.com/madrobby/scriptaculous/ajax-inplaceeditor
How to edit server side formatted text (formatted with eg. textile)
Format the text on the server when the initial page is rendered. Add a
new server side action that returns the unformatted text in the
reponse and specify the load Text URL? option as a URL to this action.
The control will load the text from the server instead of using the
text on the page. The action that receives the updated text should
save it and return the formatted text as an HTML snippet in the
reponse.
The relevant option in Scriptaculous Ajax.InPlaceEditor is
loadTextURL V1.5 null Will cause the text to be loaded from
the server (useful if your text is actually textile and formatted on
the server)
Now I see nothing related to this in SUInPlaceEditor.
Do you have any hints how this combination of in-place editing and
wiki markup could be done?
Thanks in advance
Matthias
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki