try { stringWidth("x"); } catch (e) { if (e.message.match(/runtime/i) || e.message.match(/runtime/i) ) e = new Error("A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)"); throw e; }
Throw the textarea outside Change the p of the layer to div and it will work fine:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn