Recently developed a new feature, encountered a lot of problems, and so have time will be summarized in turn, one of the problems is that the HTML element of the Contenteditable=false in IE (edge), will occasionally or can be edited situation, check a lot of information to understand, the original in IE, Additional processing must be done:
If there is such a code:
<div contenteditable=true class= "Somedivstyle" >
<span contenteditable=false class= "SomeSpanStyle" > Aa</span>
</div>
In Chrome, there is no problem, the outside is an editable Div, which contains a not editable span elements, but in IE, this writing will be problematic, we have to rewrite it as follows:
<div contenteditable=true class= "Somedivstyle" >
<span contenteditable=true class= "SomeSpanStyle" > Aa</span>
</div>
The key is to set the internal element's Contenteditable property to true to ensure that the elements inside are not editable; this is a huge hole ...