Dateiverwaltung für die WebBox
ulrich
2017-03-06 ea1ae0d0da0d945518a99e7d6e96670e7e28fb45
web/ui/ui.js
@@ -129,7 +129,7 @@
    selector: "textarea.text-editor",
    statusbar: false,
    menubar: false,
    plugins: 'advlist charmap code image link lists media print preview save table textcolor',
    plugins: 'advlist charmap code image link lists media print preview save table textcolor importcss',
    toolbar: 'undo redo | styleselect | image | link unlink | bullist numlist | outdent indent | code',
    /*
    menu: {
@@ -139,6 +139,7 @@
    },
    */
    resize: 'both',
    importcss_append: true,
    width: "100%",
    height: '100%',
    document_base_url : base + "/",
@@ -742,6 +743,10 @@
/* ---- codemirror editor handling -------- */
function htmlDecode(value){
  return $('<div/>').html(value).text();
}
function fm_code_edit(content, m) {
  cm = CodeMirror.fromTextArea(document.getElementById("editspace"), {
    lineNumbers: true,
@@ -756,7 +761,7 @@
      }
    }
  });
  cm.setValue(content);
  cm.setValue(htmlDecode(content));
}