Преглед на файлове

Fix <script> breaking editor

pull/3/head
Christian Genco преди 7 години
committed by GitHub
родител
ревизия
8a2cdbd722
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. +5
    -1
      templates/editor.html

+ 5
- 1
templates/editor.html Целия файл

@@ -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");


Зареждане…
Отказ
Запис