diff --git a/src/trix/controllers/level_2_input_controller.js b/src/trix/controllers/level_2_input_controller.js index db10fb381..cb1215549 100644 --- a/src/trix/controllers/level_2_input_controller.js +++ b/src/trix/controllers/level_2_input_controller.js @@ -524,8 +524,10 @@ export default class Level2InputController extends InputController { this.delegate?.inputControllerWillPerformTyping() } const perform = () => this.responder?.deleteInDirection(direction) - const domRange = this.getTargetDOMRange({ minLength: 2 }) + const domRange = this.getTargetDOMRange({ minLength: this.composing ? 1 : 2 }) if (domRange) { + const domRange = this.getTargetDOMRange({ minLength: this.composing ? 1 : 2 }) + console.debug("DOM RANGE=", domRange.toString(), domRange); return this.withTargetDOMRange(domRange, perform) } else { return perform()