Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-04-01 02:55:04

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Limiting content width?

I need my button menu bar to be 650px, but I need the content inside the editor to be 585px because that is the exact width it will end up on and our users will be submitting images and tables where its important to have formatting precise.

Is there a way to achieve this?  Ideally with a border around the edge so users can see the widths.

Thanks for all the help here guys! smile

Will



------- my xinha wishlist ------
1. ie paragraphs fixed
2. search/replace in source mode
3. div drop downs for dialogs instead of popup windows

Offline

#2 2005-04-01 03:41:23

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Limiting content width?

i don't know if i did understand you corrctly.. but why do you not set editor.width to 585px?


Niko

Offline

#3 2005-04-01 03:50:49

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Limiting content width?

I want the editor to be larger then the content area for two reasons.  1. to fit all the icons on less rows, 2. if i set the editor width then I have to worry about the scroll bar, which I couldnt seem to get the same width on ie and ff, so the content ended up not being exactly at the width of the editor...

Is it not possible to control the content area seperately?

Thanks

Offline

#4 2005-04-01 04:02:59

adamp
Xinha Pro
Registered: 2005-03-14
Posts: 77

Re: Limiting content width?

I think you'll need to play with the width of the iframe in htmlarea.js making it smaller than the editor width.

Offline

#5 2005-04-01 07:22:40

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Limiting content width?

Adam, that was it, thanks!

Offline

#6 2005-04-01 11:29:54

riftdesign
Xinha Pro
From: South Dakota, USA
Registered: 2005-03-22
Posts: 55
Website

Re: Limiting content width?

You could also limit the width using CSS (and you could add your border too)


rift design studio
[url]http://www.riftdesign.com[/url]

Offline

#7 2005-04-01 11:35:38

adamp
Xinha Pro
Registered: 2005-03-14
Posts: 77

Re: Limiting content width?

The reason I didn't suggest CSS is that anything within the body of the editor window is editable, so users could have deleted the box. The next 'block' up from that is the iframe, which is really what needed re-sizing, though it might need some CSS on the body to stop scrolling.

Offline

#8 2005-04-01 12:40:47

riftdesign
Xinha Pro
From: South Dakota, USA
Registered: 2005-03-22
Posts: 55
Website

Re: Limiting content width?

adamp wrote:

The reason I didn't suggest CSS is that anything within the body of the editor window is editable, so users could have deleted the box. The next 'block' up from that is the iframe, which is really what needed re-sizing, though it might need some CSS on the body to stop scrolling.

I was suggesting that your import a css file / define a class for the content of the frame (which cannot be changed in the editor)


rift design studio
[url]http://www.riftdesign.com[/url]

Offline

#9 2005-04-02 00:34:43

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Limiting content width?

Is there a way to control the iframe outside of htmlarea.js ?

Offline

#10 2005-04-05 01:33:03

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Limiting content width?

you can access the iframe through
editor._iframe


Niko

Offline

Board footer

Powered by FluxBB