Fix: drop tHTML

This commit is contained in:
eight 2017-09-12 20:06:00 +08:00
parent 431dbdc81c
commit 7c1b140de9

View File

@ -10,11 +10,11 @@ function createSourceEditor(style) {
$('#name').disabled = true; $('#name').disabled = true;
$('#mozilla-format-heading').parentNode.remove(); $('#mozilla-format-heading').parentNode.remove();
$('#sections').appendChild(tHTML(` $('#sections').appendChild(
<div class="single-editor"> $element({className: 'single-editor', appendChild: [
<textarea></textarea> $element({tag: 'textarea'})
</div> ]})
`)); );
// draw CodeMirror // draw CodeMirror
$('#sections textarea').value = style.source; $('#sections textarea').value = style.source;