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
{{ message }}
Repository navigation
React UI Edit Link should move cursor after link creation #128
In the ReactUI, after creating a link, the selection is retained and the link button shows. It would be better if the selection was moved after the created/updated link so the user can keep writing.
Now that we've changed the link selection, it could make sense to rethink this. This is the current state:
After creating a new link, we change the selection to get all the element. This now causes the text selection buttons to show in the styles toolbar. (this looks good to me)
After updating an existing link, we keep the empty selection, so the edit link UI doesn't go away.
The way I see it, we could either select the link on update to match the create behaviour, or advance the cursor to the next position after the link as suggested in #387 on both cases to always dismiss the styles toolbar after a link has been edited.
I would expect the toolbar to disappear in both cases. After all, the primary operation - creation/editing the link has been completed. After creation, it is quite unusual to modify the style, so despite it is convenient that the toolbar stays there, I feel that most of the users won't touch it, so probably this will only force them to click one more time.
On editing, is the same logic. The goal - link editing has been completed, so I would expect the toolbar to disappear.
Activity
jbalsas commentedon Dec 12, 2015
Hey @ipeychev,
Now that we've changed the link selection, it could make sense to rethink this. This is the current state:
The way I see it, we could either select the link on update to match the create behaviour, or advance the cursor to the next position after the link as suggested in #387 on both cases to always dismiss the styles toolbar after a link has been edited.
What do you think?
ipeychev commentedon Dec 13, 2015
Hey Chema,
I would expect the toolbar to disappear in both cases. After all, the primary operation - creation/editing the link has been completed. After creation, it is quite unusual to modify the style, so despite it is convenient that the toolbar stays there, I feel that most of the users won't touch it, so probably this will only force them to click one more time.
On editing, is the same logic. The goal - link editing has been completed, so I would expect the toolbar to disappear.
Thanks,
jbalsas commentedon Dec 13, 2015
Hey Iliyan,
Makes sense, it's also aligned with what was being asked in #387.
Will work on that direction then 😊
Make the tests related to advancing cursor to pass on Firefox
Ignore the tests related to advancing cursor after link creation on IE
Add build files (auto-generated)
Reset f2f3dc2
Add build files (auto-generated)