We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing text involves (maybe) deleting an expanded selection, inserting the text, and then updating the selection position.
Create a request that does all of these things.
Example of what is currently required to do this:
editor.execute([ if (!selection.isCollapsed) // DeleteContentRequest( documentRange: selection.normalize(widget.editor.context.document), ), InsertAttributedTextRequest( selection.base, text, ), ChangeSelectionRequest( DocumentSelection.collapsed( position: selection.base.copyWith( nodePosition: TextNodePosition(offset: (selection.base.nodePosition as TextNodePosition).offset + 1), ), ), SelectionChangeType.alteredContent, SelectionReason.userInteraction, ), ]); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Typing text involves (maybe) deleting an expanded selection, inserting the text, and then updating the selection position.
Create a request that does all of these things.
Example of what is currently required to do this:
The text was updated successfully, but these errors were encountered: