How about having a property which will auto increase height of ckeditor as we type contents. We can have a config property while initializing whether we need to increase the height of iframe as we type text or insert table or insert html or insert picture or anything.
That can be taken as a new feature. Am using CKEDITOR for my product very soon i will be purchasing license if everything goes well. This feature i have already added by little tweaking
.
for keypress and other required place i added
$('#iframe_' + _currentActiveEditor.name).css('height', _currentActiveEditor.document.$.body.offsetHeight + 60 + "px");
i added unique id for iframe when editor is created.
OR
if (uiframe != null) uiframe.$.style.height = _currentActiveEditor.document.$.body.offsetHeight + 10 + "px"; if (typeof (ufieldset) != "undefined") ufieldset.$.style.height = uiframe.$.style.height }, 100) }
where uiframe is iframe height in Firefox and ufieldset is iframe height in IE and currentActiveEditor is editor which is in active state.
So why dont you guys take this as a feature request which will be really useful.
Wed, 03/10/2010 - 11:16
#1

Re: Auto increase height as we type contents
That's the autogrow plugin. You can test a version at http://dev.fckeditor.net/ticket/4606
Re: Auto increase height as we type contents
For autogrow we dont need scrollbar and screen is flickering. So i added scrolling="no" for iframe and then i saw content was hiding when we click ENTER key or at bottom of the editor.
for removing hiding of content i commented the below code which served my purpose.
var m=o.getDocumentPosition();l+=m.y;l=l<0?0:l;var n=j.getScrollPosition().y;if(l>n||l<n-k)j.$.scrollTo(0,l);
But i think, the above code is not needed when autogrow is activated, may be some configuration can be done for the same.
Also in insertElement also have to invoke listener function inside plugin.js
Re: Auto increase height as we type contents
i dowloaded this - there are no DOC's to help NOOB's like me get this into the app
thank you for the help
Re: Auto increase height as we type contents