Account created on 16 April 2010, over 14 years ago
#

Recent comments

🇮🇹Italy puidu

Sorry, I re-attach as the previous one contains staff from tower.

🇮🇹Italy puidu

Patch at #101 works fine but only if the element is visible in the viewport, otherwise the calculated height is not correct.
It seems that the cause is that the clientHeight method applied to the 'p' html tag element created to calculate the height of the text area. If the textarea is not in the viewport, the calculated height for 'p' will be 0.
Pretty sure there is a much better solution (reason why I'm not posting a patch), but for now I solved replacing
var height = element.clientHeight
with
var height = element.clientHeight > 0 ? element.clientHeight : 16;
into core/modules/ckeditor5/js/ckeditor5.js

🇮🇹Italy puidu

Hi viren18febS,
that patch looks exactly as mine.
Anyway, that's working for me.
For sure I'm missing something, but I honestly don't understand the 1 fail indicated.

Production build 0.71.5 2024