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
constinsert=(text: string,selection?: Ink.Editor.Selection)=>{// fetch current selection if no selection supplied// dispatch update with text to insert}
The text was updated successfully, but these errors were encountered:
Expose an API in Ink that inserts text at the supplied range or the current range if a range is not provided.
https://codemirror.net/6/docs/ref/#state.TransactionSpec
Example
The text was updated successfully, but these errors were encountered: