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
Editor component could have public functions like:
// like HTMLTextareaElement
selectionStart: number
selectionEnd: number
setSelectionRange(start, end)
setValue(text) // raw text; should apply highlighting, preserve selection and amend history
API to selection could be needed to enable button behaviour depending on where the selection is (e. g. to implement "comment out" button if there's no comment on current line).
API to modify value can be useful for example, to implement "comment out" button mentioned above.