1

Consider a <div contenteditable="true"> with children elements. These children are not editable.

All kinds of edits work fine within this div, except when the entire text is deleted. At this point, the div loses it's edit-ability. Things work fine in the absence of children elements.

Here's the fiddle in action. Open on Chrome. Firefox works fine.

S B
  • 8,134
  • 10
  • 54
  • 108
  • https://stackoverflow.com/questions/17890568/contenteditable-div-backspace-and-deleting-text-node-problems/18069930#18069930 – Sunil Hari Dec 12 '17 at 08:47
  • I've demonstrated alternative methods worth exploring here: https://jsfiddle.net/zkh5ohh5/5/ (Consider *nesting* the `contenteditbale="true"` element *within a containing element* that will contain any other required sibling elements as well - **separate your concerns**) – UncaughtTypeError Dec 12 '17 at 09:09

0 Answers0