After the video tag is added to the contenteditable, it is not editable.

the element with contenteditable= "true" becomes uneditable after adding a video tag. Why?

<div contenteditable="true" style="width:300px;height:400px;">
  <video src="xxx"></video>
</div>

then div becomes uneditable

Aug.21,2021

have you solved the same question?

problem solution has been found : add it before and after the video tag


this mainly focuses on whether the text of the element is editable, that is, there should be a text node within the element, which of course cannot be operated without the text node.

Menu