Answer the question
In order to leave comments, you need to log in
How to determine when inline CKEDITOR is fully loaded?
There is a page with CKEDitor in inline mode, i.e. edited in view mode. So conceived, for convenient work with the knowledge base. Articles are loaded in ajax mode when navigating through the menu tree. There was a problem with determining the height of the article (for auto-scrolling, for example), because the size of the php page loaded by AJAX does not take into account the pictures loaded later. For example, when loading, the height of the article is 200px, and after loading all the pictures, it is already 2200px, respectively, scrolling only works at 200px.
$.ajax({...}).done(function(){
//обработки после загрузки статьи
$("html").scrollTop($("#content").outerHeight());
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question