ContentEditable Div Error just in Opera
I got a problem with a contenteditable div in Opera. I can edit the div when it contains content, but I can't do anything when the div is empty?
<div contenteditable=true></div>
Any workarounds or libr开发者_如何学Cary for this problem?
Just fix your markup, <div/>
is not correct enclosing tag.
<div contenteditable=true></div>
It looks like Opera doesn't allow you to edit content of elements that were not properly enclosed.
you need to create a text node inside with length > 0 to write its not just in opera
精彩评论