I'd like to resize the entire editor programmatically. For instance, I'd like to create a function that fires when the window is resized, and it should resize the editor.
With FCKEditor, this happened automatically. When the editor was created at 100% height, and the enclosing div changed size, then the editor did too.
Now, it seems, I need to either create a listener in the editor, or create a function that will fire on window resize. In either case, this code should tell the editor to resize itself. I do *not* want the user to be able to resize the editor manually.
Could someone give me a hint as to how I should approach this? I've combed the API docs, and its not apparent to me.
Thank you,
Don
With FCKEditor, this happened automatically. When the editor was created at 100% height, and the enclosing div changed size, then the editor did too.
Now, it seems, I need to either create a listener in the editor, or create a function that will fire on window resize. In either case, this code should tell the editor to resize itself. I do *not* want the user to be able to resize the editor manually.
Could someone give me a hint as to how I should approach this? I've combed the API docs, and its not apparent to me.
Thank you,
Don
Re: How to programmatically resize the editor?
Maybe this is a bug, and CKEditor should behave as FCKEditor does.
When placed in a div that is sized as a percentage of body size, and both width and height of the CKEditor are set to 100%, then the following behavior may be witnessed:
As the browser is made wider (by dragging corner of browser), the CKEditor gets widre, just as FCKEditor does.
However, when the browser height is changed by the same dragging, CKEditor does not respond by resizing.
A bug in CKEditor? Any workarounds?
Re: How to programmatically resize the editor?
Devs, please let us know if this is currently possible?
Re: How to programmatically resize the editor?
Re: How to programmatically resize the editor?
THAAAANNNK YOUUUU!!!
I tried and tried, I even tried 'resize()', but not quite that syntax (width,height).
Of course that's it, just as you might expect.
I've had a tough time duplicating a number of formats and behaviors from FCKEditor and this was the toughest. There are many, however, and I expect to share my views on this in a future post. With that said, I'm very happy with the advances of CKEditor - nice job to the team!
Thanks again.
- Don