Forum OpenACS Q&A: Re: xowiki Folder Object

Collapse
11: Re: xowiki Folder Object (response to 9)
Posted by Richard Hamilton on
For the record I also tried using the javascript semantic:

var xinha_config.toolbar = new Array('popupeditor','separator','textindicator');

However, this won't work because xowiki interprets the commas as delimiters even when inside curly braces.

The following works:

var xinha_config.toolbar = new Array('popupeditor');

....but clearly this is not much use! 😊

I would like to be able to put the following nested array specification into a form field specification:

{main_page_content:richtext,editor=xinha,label=Other Content,plugins=Stylist OacsFs,javascript=var xinha_config.toolbar = new Array(new Array('popupeditor'),new Array('separator','textindicator'),new Array('separator','justifyleft','justifycenter','justifyright','justifyfull'),new Array('separator','insertorderedlist','insertunorderedlist','outdent','indent'),new Array('separator','inserthorizontalrule','createlink','insertimage','inserttable'),new Array('linebreak','undo','redo','separator','selectall','print'), (Xinha.is_gecko ? [] : ['cut','copy','paste','overwrite','saveas']), new Array('separator','killword','clearfonts','removeformat','toggleborders','splitblock','lefttoright','righttoleft'), new Array('separator','htmlmode','showhelp','about'));}

Regards
Richard