Forum OpenACS Q&A: How to set Xinha's default mode to HTML?

I have been scouring the docs for a steer on this. I have a simple HTML form that I have pasted into a textarea:richtext field in an xowiki::Formpage instance.

If I open the empty form, switch Xinha to HTML mode and then paste in the HTML, everything is fine. However when I try to edit the formpage, as soon as Xinha opens (in WYSIWYG mode) it changes the HTML (probably a cleanup of some sort) which changes my:

<input name="" etc.

to

<input name="Submit Query"

which messes up my output.

I have tried various combinations along the lines of:

{my_content:textarea,richtext,mode=html,rows=10,label=Content}

but none are recognised.

Is it possible to pass field specific parameters to Xinha in the form field specifications or can the config only be accomplished in the xowiki folder object for the whole xowiki instance?

Regards
Richard

Collapse
Posted by Gustaf Neumann on
dear richard, i am not aware of a configuration flag that let's you start xinha in html-mode. If you figure out, how to do this, i can help how to integrate this feature in xowiki.
Collapse
Posted by Richard Hamilton on
Ok, thank you very much. I'll study the Xinha docs more carefully and report back. I've worked around it successfully for now, but the option may prove useful for someone in future anyway.

Regards
Richard