Thank you Harutyun for your response!
The custom div is actually a gutter on the right side of the Ace editor. Inside the gutter, there are divs that represent lines in the Ace editor. Therefore, each time the user press enter and adds a new line to the Ace editor, the gutter dynamically adds a div to match that new line.
Now, I want to have one scroll-bar both for the gutter and the Ace editor.
At this moment, I have the following code
<div id="gutter" onscroll="scrolled()" >
function scrolled(){
jsEditor.getSession().setScrollTop( someValue );
}
I have also attached pictures of how the current gutter and Ace editor look like. Please have a look at them.
I really appropriate your help! Thank you very much again