You are not logged in.
Pages: 1
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
/**
* 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
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
Pages: 1