Skip to content

React UI Edit Link should move cursor after link creation #128

Closed

Description

@jbalsas

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.

Activity

  1. jbalsas commented on Dec 12, 2015

    @jbalsas
    ContributorAuthor

    Hey @ipeychev,

    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.

    What do you think?

  2. ipeychev commented on Dec 13, 2015

    @ipeychev
    Member

    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,

  3. jbalsas commented on Dec 13, 2015

    @jbalsas
    ContributorAuthor

    Hey Iliyan,

    Makes sense, it's also aligned with what was being asked in #387.

    Will work on that direction then 😊

  4. added 3 commits that reference this issue on Dec 19, 2015
    f2f3dc2
    daaccad
    160dc57
  5. added this to the 0.7.1 milestone on Dec 19, 2015
  6. added 2 commits that reference this issue on Jan 2, 2016
    67fd37a
    2f38953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions