I've searched all over the place but cannot find the answer to this one...
Is it at all possible to set the height of the editor window to be based on the height on the content?
If I don't set the height, it defaults to 200px
If I set the height to 0, it sets the height to 0px
I'm using the autogrow plugin as well. It will only set the height to the contents when the editor has focus. Is it possible to do this at all times, not just onfocus?
Thanks to anyone who might be able to point me in the right direction on this...
Thu, 04/07/2011 - 04:06
#1
Re: Height of editor defined by height of content
Go figure...after days of looking, I found this ticked that worked for me:
http://dev.ckeditor.com/ticket/6161
In the autogrow/plugin.js file I replaced this line:
for ( var eventName in { contentDom:1, key:1, selectionChange:1, insertElement:1 } )
...with this...
for ( var eventName in { instanceReady:1, contentDom:1, key:1, selectionChange:1, insertElement:1 } )
Not sure how this will affect other configurations or implementations but it worked well for my particular situation (inline / inpage editing).
I hope this helps others who have been searching for this solution.