medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Clearing a field entirely

Open oarod opened this issue 7 years ago • 8 comments

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

oarod avatar Jul 19 '17 23:07 oarod

Coverage Status

Changes Unknown when pulling bed46057b5e0858df9085ae22bb1fa25c8c647f5 on oarod:master into ** on yabwe:master**.

coveralls avatar Jul 19 '17 23:07 coveralls

Coverage Status

Changes Unknown when pulling 92060b1503090b9d5f78b3c6a1896cc996d58326 on oarod:master into ** on yabwe:master**.

coveralls avatar Jul 20 '17 19:07 coveralls

You mean empty an empty field? :thinking:

j0k3r avatar Jul 28 '17 14:07 j0k3r

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.

oarod avatar Jul 28 '17 17:07 oarod

@j0k3r What blocks this PR?

Because of the current behavior, I need to write workarounds to check value of <textarea required> :/

zemlanin avatar Aug 28 '17 11:08 zemlanin

has this not been released yet?

clemsontiger avatar Jan 25 '18 16:01 clemsontiger

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

Hazantip avatar Mar 12 '18 12:03 Hazantip

News about merging this one? 🙏

blocknotes avatar Sep 03 '20 15:09 blocknotes