html editor not fully there!

Re: html editor not fully there!

by Donal McMullan -
Number of replies: 0
Hey guys - we had a similar problem on a client site - I pulled the patch we used to deal with it and it looks like it makes a single change to the file:

lib/editor/htmlarea/htmlarea.php

The line:
width = parseInt(width);
was changed to:
width = Math.max(parseInt(width), 588);

I think this happened only in IE, and it seemed like IE was sometimes measuring the width of an element before it had actually been drawn on the page, and of course that width was effectively zero.

Anyway - not sure of the details. If this change isn't effective, you could try setting the height of the textarea to a hard-coded value, and see if that makes a difference for you, i.e. find/change:
height = parseInt(height);
to
height = 100;
...or something like that.

You can review the patch in Catalyst's Git repo.

Sorry I didn't see this issue earlier - I hope this works for someone.