From 51a8c8b4253a72fe7848d4bd71d51a3c13958410 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Wed, 16 Feb 2022 15:13:49 -0700 Subject: [PATCH] editor loads content as initial --- ui/templates/_editor.ctmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/templates/_editor.ctmpl b/ui/templates/_editor.ctmpl index e4cac06..e8e33a3 100644 --- a/ui/templates/_editor.ctmpl +++ b/ui/templates/_editor.ctmpl @@ -113,7 +113,7 @@ element: document.getElementById('my-text-area'), forceSync: true, indentWithTabs: false, - initialValue: "loading...", + initialValue: "{{ .This.Content }}", showIcons: ["code", "table"], spellChecker: false, sideBySideFullscreen: false, @@ -133,6 +133,5 @@ }, status: ["lines", "words", "cursor"], }) - easyMDE.value({{ .This.Content }}) {{ end }}