I have a function that I call on the onclick event of a button.
function ScrollToEditor() {
$('html, body').animate({
scrollTop: $("#ckeditor_editor").offset().top
}, 1000);
}
<button id="btnScrollToBottom" class="button right" onclick="ScrollToEditor();" type="button">Scroll</button>
This works in Chrome, Firefox and IE11. However, it does nothing in Edge. There are no console errors and the I have made sure that the function is definitely being called.
Any help here would be appreciated.