Editor to gemtext half way

This commit is contained in:
Senad Uka
2023-09-16 16:59:16 +02:00
parent 1765a150bb
commit 201579ad87
6 changed files with 53 additions and 14 deletions

View File

@@ -57,9 +57,6 @@ const editorTemplate = `
background-color: #ffffff;
}
</style>
<link rel="stylesheet" href="/static/pen.css" />
<script src="/static/markdown.js"></script>
<script src="/static/pen.js"></script>
</head>
<body>
@@ -74,16 +71,15 @@ const editorTemplate = `
<input type="text" name="title" placeholder="Naslov" value="{{.Title}}" />
<input name="ID" type="hidden" value="{{.ID}}" />
<div id="editorcontainer">
<div id="editor">{{.MarkdownContent}}</div>
<textarea id="editor">{{.GemtextContent}}</textarea>
</div>
<input type="submit" value="Sačuvaj" />
</form>
</div>
</content>
<footer>
&nbsp;
</footer>
<script>
const editor = new Pen('#editor');
</script>
</body>
</html>
`