I am using setHTML('') to reset the innerHTML of the fck editor to a blank string once the user clicks anywhere on the editor.
This issue is only present in firefox, (i have only tried IE and firefox for now)
The issue is when the textarea is of any size other than that of the standard fck size. Upon the call of the setHTML function the editor resizes itself inside the textarea to the default size known to fck.
If the textarea is smaller than the standard size then text will go inside the textarea and you cannot read any text below the bottom of the textarea. If the textarea is larger then it simply resizes to the standard size but the outline border of the editor is still present.
An example can be found by editing the sample08.html file in _samples/html/
before the call to Create() simply add in a height larger than that of the default size of 180px.
eg.
-------------------
oFCKeditor.Height = 400;
oFCKeditor.Create() ;
-------------------
Then open the HTML file, hit the 'Set Editor Contents' button to reset the content. once that is done type in garbage and hit enter about 10 times, you will notice the editor scrolls inside the original 400px height fck editor.
Is this a known bug or have I just stumbled across it?
thanks.
Shaun
This issue is only present in firefox, (i have only tried IE and firefox for now)
The issue is when the textarea is of any size other than that of the standard fck size. Upon the call of the setHTML function the editor resizes itself inside the textarea to the default size known to fck.
If the textarea is smaller than the standard size then text will go inside the textarea and you cannot read any text below the bottom of the textarea. If the textarea is larger then it simply resizes to the standard size but the outline border of the editor is still present.
An example can be found by editing the sample08.html file in _samples/html/
before the call to Create() simply add in a height larger than that of the default size of 180px.
eg.
-------------------
oFCKeditor.Height = 400;
oFCKeditor.Create() ;
-------------------
Then open the HTML file, hit the 'Set Editor Contents' button to reset the content. once that is done type in garbage and hit enter about 10 times, you will notice the editor scrolls inside the original 400px height fck editor.
Is this a known bug or have I just stumbled across it?
thanks.
Shaun
RE: fck autoresizing editor
Not been able to find setHTML function either, changing the function in fck_1.js seems to have no effect, even if I delete the function and clear the cache
RE: fck autoresizing editor
In fckeditor_gecko.js (editor/js/fckeditor.js)
update the function FCK.OnAfterSetHTML to:
FCK.OnAfterSetHTML=function(){FCKDocumentProcessor.Process(FCK.EditorDocument);FCK.Events.FireEvent('OnAfterSetHTML');FCK.ToolbarSet.Collapse();FCK.ToolbarSet.Expand()}