-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 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
36b7b45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React-Quill uses
dangerouslyPasteHTML
to set the editor value from HTML. This change grabs focus when it isn't always needed. Isclipboard.convert
considered part of the the public API such that we can use it instead?See zenoamaro/react-quill#321
36b7b45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no plans to remove or change convert but it is not protected by semantic versioning. I will consider adding it to the official APIs after the dust settles in 2.0.
36b7b45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhchen you can add a parameter to decide whether or not to setSelection
36b7b45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also use dangerouslyPasteHTML, and just found out that it also sets the focus.
While I am sure there is a reason to set the selection, this is not documented.
Would you consider adding a parameter like @kingslay has suggested?