Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing a field entirely #1350

Open
oarod opened this issue Jul 19, 2017 · 0 comments
Open

Clearing a field entirely #1350

oarod opened this issue Jul 19, 2017 · 0 comments

Comments

@oarod
Copy link

oarod commented Jul 19, 2017

Description

Clearing a field entirely currently leaves us with a paragraph and line break. I need to be able to clear it entirely.

I am not sure if this is already possible somehow, but I haven't come across it.

I propose being able to clear the field entirely by pressing backspace/delete once more on an already empty field. This behavior could be by default or through an options flag.

Steps to reproduce

  1. Navigate to the demo page
  2. Select all of the text
  3. Press backspace/delete
  4. Inspect the editable field in DevTools and and note the <p><br></p>.

Link to an example: This is reproducible on the demo page

Versions

  • medium-editor: 5.23.0
  • browser: Chrome 59.0.3071.115
  • OS: macOS Sierra 10.12.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant