I have a contentEditable div A, containing a non-editable div B, that contain editable divs C & D
<div class="a" contenteditable>
blablabla
<div class="b" contenteditable=false>
<div class="c" contenteditable>
</div>
<div class="d" contenteditable>
</div>
</div>
bleh
</div>
https://jsfiddle.net/Ladxbou1/1/
When my caret is next to my non-editable div B (with blue outline), I would like to be able to select or delete that block, pressing Delete or Backspace, but I can't.
I can delete or select my non-editable div only when it contains non editable divs inside : https://jsfiddle.net/Ladxbou1/4/ (but it isnt highlighted while selected so it looks weird.
Could there be a clean workaround or do I need to write clunky Javascript to make it work?