You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Could you clarify for me what methods are actually available to control the caret or cursor position?
For instance, I thought i could use medium.cursor.moveCursorToEnd() but that throws errors.
My personal needs are to be able to place the caret at the very beginning or at the very end of the editable zone, after an ajax update of the html content.
The text was updated successfully, but these errors were encountered:
For move cursor to end or beginning you can use this:
vareditor=newMedium({ ... });// move cursor to endeditor.cursor.moveCursorToEnd(editor.element.lastChild);// for move cursor to beginningeditor.cursor.caretToBeginning(editor.element.firstChild);
Hi!
Could you clarify for me what methods are actually available to control the caret or cursor position?
For instance, I thought i could use medium.cursor.moveCursorToEnd() but that throws errors.
My personal needs are to be able to place the caret at the very beginning or at the very end of the editable zone, after an ajax update of the html content.
The text was updated successfully, but these errors were encountered: