editor loads content as initial
This commit is contained in:
@@ -113,7 +113,7 @@
|
|||||||
element: document.getElementById('my-text-area'),
|
element: document.getElementById('my-text-area'),
|
||||||
forceSync: true,
|
forceSync: true,
|
||||||
indentWithTabs: false,
|
indentWithTabs: false,
|
||||||
initialValue: "loading...",
|
initialValue: "{{ .This.Content }}",
|
||||||
showIcons: ["code", "table"],
|
showIcons: ["code", "table"],
|
||||||
spellChecker: false,
|
spellChecker: false,
|
||||||
sideBySideFullscreen: false,
|
sideBySideFullscreen: false,
|
||||||
@@ -133,6 +133,5 @@
|
|||||||
},
|
},
|
||||||
status: ["lines", "words", "cursor"],
|
status: ["lines", "words", "cursor"],
|
||||||
})
|
})
|
||||||
easyMDE.value({{ .This.Content }})
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user