We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ba4fff commit bed4605Copy full SHA for bed4605
1 file changed
src/js/core.js
@@ -178,6 +178,12 @@
178
// Firefox thrown an error when calling `formatBlock` on an empty editable blockContainer that's not a <div>
179
if (MediumEditor.util.isMediumEditorElement(node) && node.children.length === 0 && !MediumEditor.util.isBlockContainer(node)) {
180
this.options.ownerDocument.execCommand('formatBlock', false, 'p');
181
+
182
+ // https://github.com/yabwe/medium-editor/issues/1350
183
+ // Pressing backspace/delete once more on an already empty field will clear it entirely
184
+ if (MediumEditor.util.isKey(event, [MediumEditor.util.keyCode.DELETE, MediumEditor.util.keyCode.BACKSPACE])) {
185
+ this.setContent(null);
186
+ }
187
}
188
189
// https://github.com/yabwe/medium-editor/issues/834
0 commit comments