From c2f5edead6ec6669fb27fb851a27dc0bc77579e5 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 15 Feb 2022 12:33:50 -0700 Subject: [PATCH] editor loads content --- spike/review/reinvent/ezmded/ui/render.go | 23 ++++ .../ezmded/ui/templates/_editor.ctmpl | 100 +----------------- 2 files changed, 25 insertions(+), 98 deletions(-) diff --git a/spike/review/reinvent/ezmded/ui/render.go b/spike/review/reinvent/ezmded/ui/render.go index 1e40b4f..d04148a 100644 --- a/spike/review/reinvent/ezmded/ui/render.go +++ b/spike/review/reinvent/ezmded/ui/render.go @@ -41,6 +41,29 @@ func main() { "Title": "title id11", "PID": "id00", "PTitle": "title id00", + "Content": ` +# hello + +## world + +| this | is | my | table | +| ---- | ---| ---| ----- | +| hey | +| ya | hey | ya | + +* and + * a bulleted + * list + +> but here is a quote + +` + "```" + `go +// and some go code +func main() { + log.Println("hi") +} +` + "```" + ` + `, }, "Tree": `{ "Leaf": {"Title": ""}, diff --git a/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl b/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl index 269704d..12daf70 100644 --- a/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl +++ b/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl @@ -28,27 +28,6 @@ }
@@ -163,7 +66,7 @@ {{ .This.Title }} -
+
@@ -205,5 +108,6 @@ }, status: ["lines", "words", "cursor"], }) + easyMDE.value({{ .This.Content }}) {{ end }}