我正在尝试将scroll event
设置为CKEditor。
我尝试下面的事情来完成这件事。
方法1:
var html = $(editor.editable().$);
$(html).on('scroll',function(){
console.log('Scroll');
});
方法2:
editor.on('scroll',function(){
console.log('Scroll');
});
但这两种方法都不能很好地运作。
任何建议。请帮助我。
最后,我找到了答案。
editor.document.on('scroll',function(){
console.log('scroll Works');
});