function insertHtml(range, val) { var doc = range.doc, frag = doc.createDocumentFragment(); K(‘@‘ + val, doc).each(function() { frag.appendChild(this); }); range.deleteContents(); range.insertNode(frag); range.collapse(false); self.select(false); }
时间: 2024-10-12 10:34:20