我有一个可满足的<p> tag <p id="maincontent" class="conted" spellcheck="false" contenteditable="true"></p> 我有一个在插入符号位置插入HTML的函数。然后我可以插入一个<br/> tag 但在Chromium浏览器中,<br/>标签不会在内容可编辑<e
我添加了一个按钮,使用stakoverflow上的这个函数将文本区域中的一些文本插入到可编辑的DIV中。function insertAtCursor(){
document.getElementById('myInstance1').focus() ; // DIV with cursor is').value ; // Textarea containing the text to add