[英]CKEDITOR : Set scroll event to CKEditor Document
I'm trying to set scroll event
to CKEditor.我正在尝试将scroll event
设置为 CKEditor。
I try the below things to get this done.我尝试以下事情来完成这项工作。
Methode 1:方法一:
var html = $(editor.editable().$);
$(html).on('scroll',function(){
console.log('Scroll');
});
Methode 2:方法二:
editor.on('scroll',function(){
console.log('Scroll');
});
But both the methods are not working very well.但是这两种方法都不是很好。
Any Suggestions.Please Help me.任何建议。请帮助我。
Finally, I found the Answer.终于,我找到了答案。
editor.document.on('scroll',function(){
console.log('scroll Works');
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.