Переглянути джерело

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


Завантаження…
Відмінити
Зберегти