is inserted into contenteditable html element if left empty
Use SPAN element as your contenteditable element instead of DIV element. Please read complete. Q. Why the idea works? A. Span is an inline element and Div is a block element. Block elements when empty, by default, will have zero dimensions(if no padding is applied to the block element). In contrast, empty inline elements tend … Read more