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
Right now insertBlock inserts based on the current selection. But if the selection is unset because there are no nodes in the document, it will fail.
What's the expected behavior?
Instead, I think it should default to inserting at the end of the document in this case, and focusing the editor. This way you don't have to always make this distinction yourself and branch in your own code, since it's a common use case.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Improvement.
What's the current behavior?
Right now
insertBlock
inserts based on the current selection. But if the selection is unset because there are no nodes in the document, it will fail.What's the expected behavior?
Instead, I think it should default to inserting at the end of the document in this case, and focusing the editor. This way you don't have to always make this distinction yourself and branch in your own code, since it's a common use case.
The text was updated successfully, but these errors were encountered: