Skip to content

wrong care position at hr-tag(horizontal line)  #395

Open
@Blopditu

Description

@Blopditu

Adding a hr-tag sets the caret(cursor) position below the horizontal line. When you click below the horizontal line and start typing, the typed text is shown above the horizontal line. It seems like the caret position before the hr-tag and the caret position after hr-tag is on the same line. If you start typing immediately after clicking on the "add hr" button, the second text is below the horizontal line, but the caret positions is a little bit lower.
I wrote the steps to reproduce and added a gif.

Tested on: Chrome(91.0.4472.124) - Angular-Editor Demo Site

Steps to reproduce:

  1. Write a simple Text
  2. Add a horizontal line
  3. Click on new line below the horizontal line
  4. Type again a simple text

Expected
The second text is below the horizontal line

Actual
The second text is above the horizontal line

Current workaround
press "arrow-down"-key twice to get to the last caret position

angular-editor-hr-caret

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions