Hi all,
I have a problem with Chrome (2.0.172.33) and the current version of FCKeditor (2.6.4.1).
As you can see, the height is nowhere near 400px (outer border).
But as soon as I click inside the content window, the height adjusts it self automaticly to the proper height.
Any one else who's experiencing this? Or has a solution to this?
// Carl
Tue, 07/07/2009 - 13:09
#1
Re: Chrome loading problem (wrong height)
Re: Chrome loading problem (wrong height)
It seems limited to Chrome and Safari (as you point out).
Somehow the rendering at page load is faulty.
Maybe it's a browser-file setting? Since the .NET engine renders the page (HTML) differently depending on the capabilities of the browser.
Re: Chrome loading problem (wrong height)
This faulty '100%' height is set in /fckeditor/editor/_source/classes/fckeditingarea.js @ line 99. I can't locate where Firefox and IE are getting their correct computed values from, but I expect the problem should be solved there.
Attachments:
Re: Chrome loading problem (wrong height)
Re: Chrome loading problem (wrong height)
At least I'm creating the FCKeditor by using the ASP.NET (2.0) version, with the .DLL as generator
Then it doesn't work!
Re: Chrome loading problem (wrong height)
This same code isn't working in my case, unfortunaly. I'm using Vista SP1 and Chrome 2.0.172.33
Re: Chrome loading problem (wrong height)
I got Vista SP2, but SP1 worked as well, and Chrome 2.0.172.33 and FCK 2.6.4...
Try a different doctype. The example I gave you worked with no doctype specified, but we also use it with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Hopefully that will solve it.
Re: Chrome loading problem (wrong height)
Re: Chrome loading problem (wrong height)
Updated Google Chrome to version 3.0.193.0. Problem unfortunately remains...
Re: Chrome loading problem (wrong height)
Re: Chrome loading problem (wrong height)
After FCKeditor is properly loaded, you can use the Javascript API function SetHTML(). No matter what you inject, Google Chrome gets forced to set the causing iframe to it's proper height!
Note: this is not a fix! So the problem still needs further investigation!!!
Re: Chrome loading problem (wrong height)
Re: Chrome loading problem (wrong height)
from 'br'. if you want other browsers to use 'br', add a condition:
Re: Chrome loading problem (wrong height)
Besided this would be a work-around and not the solution, FCK is configured that way already by default. So it doesn't work.
The problem lies in the height of that specific iframe being configured as 100%, instead of a fixed height in pixels. An iframe with 100% height will only be 100% when the browser is set to run in quirks mode. Since most of use use a more recent doctype - like xhtml strict -, this is a problem that needs to be fixed within FCK itself!
Re: Chrome loading problem (wrong height)
Which page does this go on?
Re: Chrome loading problem (wrong height)
This is javascript and should go on every page that contains the editor, like this:
a little annoying, but a temp fix none-the-less
Re: Chrome loading problem (wrong height)
My findings however indicate this is not just the height=100% on the iframe, but also the height of the table holding the EditingArea specified in fckeditor.html.
To get this issue resolved in all the three browsers I tested (IE6SP3, FF3.0.13 and Chrome 2.0.172, I had to make the following changes:
1. Set oFCKeditor->height = 500. This ensured the iframe height would be set to 500
2. Modify fckeditor.html, line 294 making <...style="height: 471px; table-layout: fixed"> from <...style="height: 100%; table-layout: fixed">
3. Modify fckeditor.html, line 313 making <td id="xEditingArea" valign="top" style="height: 471px"> from <td id="xEditingArea" valign="top" style="height: 100%">
I believe the difference of 29 pixels between the height I set and what I need to setup in 2 and 3 accounts for the height of the toolbar (set to basic).
Cheers to all.
JJO
Re: Chrome loading problem (wrong height)
I believe this problem had been fixed in 2.6.5
http://ckeditor.com/whatsnew
[#3053] Fixed problems with the height of the content area in Safari and Chrome.
Re: Chrome loading problem (wrong height)
Well not entirely.
Now the height is to long instead.
As you can see, the height is too much and the bottom scroll down button is not visible.
But, it's better than before
[EDIT: oops the image was too big]
Re: Chrome loading problem (wrong height)
Any ideas?
Re: Chrome loading problem (wrong height)
In fckeditor.html, I changed line 286 from this:
To this:
I don't know if this fix applies to CKEditor as well but hopefully this will help some of you. I don't know if this is the best way to fix this problem or if this is considered a hack, but at least for now, it solved the issue on our site.
Re: Chrome loading problem (wrong height)
Thanks. It does the trick for me as well.
It's not a hack since it's working .