medium-editor
medium-editor copied to clipboard
Clearing a field entirely
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
New tests added? | not needed |
Fixed tickets | #1350 |
License | MIT |
Description
Pressing backspace/delete once more on an already empty field clears it entirely
Changes Unknown when pulling bed46057b5e0858df9085ae22bb1fa25c8c647f5 on oarod:master into ** on yabwe:master**.
Changes Unknown when pulling 92060b1503090b9d5f78b3c6a1896cc996d58326 on oarod:master into ** on yabwe:master**.
You mean empty an empty field? :thinking:
I may have done a poor job of explaining this in the ticket. An "empty" field is currently <p><br></p>
, but I need it to be entirely empty.
@j0k3r What blocks this PR?
Because of the current behavior, I need to write workarounds to check value of <textarea required>
:/
has this not been released yet?
Tag of the contenteditable element required to be an any html block except 'div'. In other case medium-editor automatically wraps content with a <p><br></p>
if there is no content, or with <p></p>
if there is a content in line
News about merging this one? 🙏