Explorar el Código

Fix <script> breaking editor

pull/3/head
Christian Genco hace 7 años
committed by GitHub
padre
commit
8a2cdbd722
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      templates/editor.html

+ 5
- 1
templates/editor.html Ver fichero

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


Cargando…
Cancelar
Guardar