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;
$('#mozilla-format-heading').parentNode.remove();
$('#sections').appendChild(tHTML(`
<div class="single-editor">
<textarea></textarea>
</div>
`));
$('#sections').appendChild(
$element({className: 'single-editor', appendChild: [
$element({tag: 'textarea'})
]})
);
// draw CodeMirror
$('#sections textarea').value = style.source;