Reputation: 209
It's probably a realy simple question for someone allready familliar with ace, but after i move the editor to a new line by using
editor.gotoLine(row, col);
How could i animate the cursor(make it blink like when you manually select a new line) ?
Upvotes: 2
Views: 471
Reputation: 24159
In Ace cursor blinks only if editor is focused. If you want to force blinking on blurred editor, you can use private renderer.$cursorLayer object by calling
editor.renderer.$cursorLayer.isVisible=true;
editor.renderer.$cursorLayer.restartTimer();
or
editor.renderer.$cursorLayer.showCursor()
Upvotes: 2