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 we let the DOM determine where the selection ends up, and when an insert_text command is executed we insert wherever the selection is. But because of #3148 this can vary across browsers which is not intuitive for people.
What's the expected behavior?
I think we should have Slate's core behaviors canonicalized, so that it will:
Always insert outside of an inline when it's at the edge.
Always inside before a mark when it's at the start.
Always inside inside a mark when it's at the end.
People can then choose to override these behaviors in their own plugins if they'd like to have "inline continuation", but at least in core it will be consistent.
The text was updated successfully, but these errors were encountered:
I know of #3148 — but would it be possible to give Slate's selection position be sticky and take precedence where possible, so that it's possible to use arrow keys to step through all the positions? I.e., end of inline, start of next node as two different positions we can both move the selection to, and we can insertText into? (Ah, I guess that might require something like #2973 since the editor isn't always available, and as per #3148 not all browsers support all required insertions positions so we couldn't have this granularity relying on the browser/DOM?)
Do you want to request a feature or report a bug?
Improvement.
What's the current behavior?
Right now we let the DOM determine where the selection ends up, and when an
insert_text
command is executed we insert wherever the selection is. But because of #3148 this can vary across browsers which is not intuitive for people.What's the expected behavior?
I think we should have Slate's core behaviors canonicalized, so that it will:
People can then choose to override these behaviors in their own plugins if they'd like to have "inline continuation", but at least in core it will be consistent.
The text was updated successfully, but these errors were encountered: