is inserted into contenteditable html element if left empty

前端 未结 5 2058
梦如初夏
梦如初夏 2021-01-07 17:57

I have a

and when I enter some content into it, then delete these content, it seems like the b
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-07 18:40

    This issue happened to me when the callback of $(window).KeyUp event returned no value. Once applying "return true" in the registered callback the contenteditable div stopped applying unnecessary br tags.

提交回复
热议问题