CKEDITOR:将滚动事件设置为CKEditor文档

问题描述 投票:2回答:1

我正在尝试将scroll event设置为CKEditor。

我尝试下面的事情来完成这件事。

方法1:

var html = $(editor.editable().$);
$(html).on('scroll',function(){
   console.log('Scroll');
});

方法2:

editor.on('scroll',function(){
    console.log('Scroll');
}); 

但这两种方法都不能很好地运作。

任何建议。请帮助我。

javascript jquery ckeditor
1个回答
1
投票

最后,我找到了答案。

editor.document.on('scroll',function(){
     console.log('scroll Works');
});
© www.soinside.com 2019 - 2024. All rights reserved.