From 7c1b140de9d4a5288ee3e91e91e08625cddced6f Mon Sep 17 00:00:00 2001 From: eight Date: Tue, 12 Sep 2017 20:06:00 +0800 Subject: [PATCH] Fix: drop tHTML --- edit/source-editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edit/source-editor.js b/edit/source-editor.js index 9e41d2f8..74915ef7 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -10,11 +10,11 @@ function createSourceEditor(style) { $('#name').disabled = true; $('#mozilla-format-heading').parentNode.remove(); - $('#sections').appendChild(tHTML(` -
- -
- `)); + $('#sections').appendChild( + $element({className: 'single-editor', appendChild: [ + $element({tag: 'textarea'}) + ]}) + ); // draw CodeMirror $('#sections textarea').value = style.source;