Forum OpenACS Development: enhanced text format and line breaks
a) is this the way the widget is supposed to work?
b) if not, is it a bug in the widget or in the way I'm using it?
This behavior seems wrong to me as I had thought this was supposed to be the WYSIWYG mode, but I could certainly be wrong about that.
Thanks for any insights.
Are you using
ad_text_html_convert -from $content_mime_type -to text/html -- $content
to convert ?
Check out lars-blogger and bug-tracker for examples.
So I tried using html_value instead, with a message that looked like this:
It looked right on the confirmation page, but the final message ended up like this:
I am guessing this is because the html conversion got run on it twice. Is this correct, that I should rework this so it's only run when going to the confirm page? And why don't I see bug-tracker or lars-blogger doing it this way? I feel like I must be missing something,
I've been thinking about extending the form builder with a "oonfirm" mode, in addition to edit and display, to handle all of this properly, but I haven't done anything about this yet.