-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(DynamicEditField): conserve typical paste features when sani…
…tizing paste input We get the range that the user has selected (aka where the selection starts and ends, or, if there is no selection but just a caret, we get the location of the caret), after sanitizing the pasted text (striping all html and new lines), insert the pasted text over/into the selection. Afterwards, adjust the selection to now select the pasted text.
- Loading branch information
Showing
2 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters