html editor

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

html editor

bsteuhl
How do you change the size of html editor?  The users want more height in the text area.  Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: html editor

bsteuhl
I figured it out - the first thing I realized was that I did not have the 2009 build that had yui rte.  So, once I downloaded the new version, I unpacked orbeon-resources-public.jar and placed ops directory in resources folder.  Then I was able to edit the xforms.js file to only display those rte buttons I needed to display.  Then I finally figured out that all I had to do was add the height and width elements like this after creating the yui editor:

 var yuiRTE = new YAHOO.widget.Editor(control, {
                height: '1000px',
                width: '1000px',
                animate: true,
                toolbar: { ......

That is it.  Thanks.


brian18425 wrote
How do you change the size of html editor?  The users want more height in the text area.  Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: html editor

bsteuhl
Forgot one more thing.  Also make sure you create a properties-local.xml file and place it in config folder with the following text:

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors"
            xmlns:xi="http://www.w3.org/2001/XInclude">
    <property as="xs:boolean" name="oxf.xforms.minimal-resources" value="false"/>
    <property as="xs:boolean" name="oxf.xforms.combine-resources" value="true"/>
</properties>


brian18425 wrote
I figured it out - the first thing I realized was that I did not have the 2009 build that had yui rte.  So, once I downloaded the new version, I unpacked orbeon-resources-public.jar and placed ops directory in resources folder.  Then I was able to edit the xforms.js file to only display those rte buttons I needed to display.  Then I finally figured out that all I had to do was add the height and width elements like this after creating the yui editor:

 var yuiRTE = new YAHOO.widget.Editor(control, {
                height: '1000px',
                width: '1000px',
                animate: true,
                toolbar: { ......

That is it.  Thanks.


brian18425 wrote
How do you change the size of html editor?  The users want more height in the text area.  Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Re: html editor

Erik Bruchez
Administrator
Or you could regenerate xforms-min.js by running it through YUI  
compressor.

-Erik

On Apr 30, 2009, at 4:17 PM, brian18425 wrote:

>
> Forgot one more thing.  Also make sure you create a properties-
> local.xml file
> and place it in config folder with the following text:
>
> <properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:oxf="http://www.orbeon.com/oxf/processors"
>            xmlns:xi="http://www.w3.org/2001/XInclude">
>    <property as="xs:boolean" name="oxf.xforms.minimal-resources"
> value="false"/>
>    <property as="xs:boolean" name="oxf.xforms.combine-resources"
> value="true"/>
> </properties>
>
>
>
> brian18425 wrote:
>>
>> I figured it out - the first thing I realized was that I did not  
>> have the
>> 2009 build that had yui rte.  So, once I downloaded the new  
>> version, I
>> unpacked orbeon-resources-public.jar and placed ops directory in  
>> resources
>> folder.  Then I was able to edit the xforms.js file to only display  
>> those
>> rte buttons I needed to display.  Then I finally figured out that  
>> all I
>> had to do was add the height and width elements like this after  
>> creating
>> the yui editor:
>>
>> var yuiRTE = new YAHOO.widget.Editor(control, {
>>                height: '1000px',
>> width: '1000px',
>> animate: true,
>> toolbar: { ......
>>
>> That is it.  Thanks.
>>
>>
>>
>> brian18425 wrote:
>>>
>>> How do you change the size of html editor?  The users want more  
>>> height in
>>> the text area.  Thank you.
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/html-editor-tp23314762p23326012.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws