froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
735 stars 202 forks source link

When is the froala editor fully loaded #500

Open KFreiburghaus opened 2 years ago

KFreiburghaus commented 2 years ago

I need an event that tells me when exactly the froala-editor is loaded completely. I need this event for scrolling on a page, with multiple froala-editor. If I start the scrolling before the froala-editor is fully loaded, the desired scrolling points aren't selected correctly, because the froala-editor has not yet reached the predefined height of 405 (located via the developer tools). The variable clientHeight has after the event initialized the value of 0 and thus messes up the scrolling, because in the end it still has the height of 405. So this event is already useless. How can I achieve that the scrolling also works with froala-editors?