Kaynağa Gözat

Fix <script> breaking editor

pull/3/head
Christian Genco 7 yıl önce
committed by GitHub
ebeveyn
işleme
8a2cdbd722
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      templates/editor.html

+ 5
- 1
templates/editor.html Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet