How the cursor works in Ace

I am pretty intrigued by how Ace works .

I am curious how the cursor can move between each character in divs / spans either by clicking or by pressing the arrow keys.

I am also intrigued by how text highlighting works when you select it (kind of greyish to demo transformations )

Thank him if anyone can shed light on these questions.

Thanks in advance.

+5
source share
2 answers

Ace DOM API- . , , "" DIV SPAN. SPAN, (, ) - DIV ..

, . , , .

Ace, , getBoundingClientRect, . .

+13

, , style.left div 7px . 15px, , .

div ace_selection, .

chrome firefox, . , div div .

+5

All Articles