Announcement

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

#1 2006-12-07 23:22:59

wmerrell
New member
From: Philadelphia PA, USA
Registered: 2006-12-06
Posts: 3

How do I Resize the editor?

I want to use the editor in a resizable window. Is there a way to change the dimensions (height and width) of the editor during use, in runtime, using javascript calls?

--Will

Offline

#2 2006-12-08 15:22:02

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: How do I Resize the editor?

/**
*  Size the editor to a specific size, or just refresh the size (when window resizes for example)
*  @param width optional width (CSS specification)
*  @param height optional height (CSS specification)
*  @param includingBars optional boolean to indicate if the size should include or exclude tool & status bars
*/
xinha_editors.myTextArea.sizeEditor = function(width, height, includingBars, includingPanels)

Offline

#3 2006-12-08 16:13:50

wmerrell
New member
From: Philadelphia PA, USA
Registered: 2006-12-06
Posts: 3

Re: How do I Resize the editor?

Thanks,

I had worked that out, (I do read source code) but thanks for the confirmation.

One problem I am still having is that there appears to be some space around the editor that is unpleasant. It also seems quirky about the size. It resizes but not quite where I would expect. Does sizeEditor refer to the overall bounding rectangle or some space inside?

What I am trying to do is put the editor inside a popup window that allows my user to edit some things on demand. I am using the Prototype Windows Class library (http://prototype-window.xilinus.com/) to manage my windows. Right now I am using the form of window that loads a page into an iframe inside the window. Ideally, I would like to put the editor in the simpler type of window that simply puts the content inside a div within the calling page. The main reason I am using the url/iframe version is that I haven't yet figured out how to properly terminate or close the editor. Simply dumping the loaded page handles this for now.

Can you ofer me any suggestions on making the editor fit tightly inside the window with none of it hanging over on the right and bottom?

Any other thoughts on doing this?

Thanks,
-- Will

Offline

Board footer

Powered by FluxBB