Browse Source

Fix <script> breaking editor

pull/3/head
Christian Genco 7 years ago
committed by GitHub
parent
commit
8a2cdbd722
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      templates/editor.html

+ 5
- 1
templates/editor.html View File

@@ -62,7 +62,11 @@
var hasBuilt = houses.length > 0;
function updatePreview() {
var val = editor.getSession().getValue();
$view.contents().find('body').html(val);
try {
$view.contents().find("body").html(val);
} catch (err) {
console.error(err);
}
{{if .ID}}{{else}}if (val != orig) {
publishing = false;
$publishBtn.removeClass("no");


Loading…
Cancel
Save