Editor half way through

This commit is contained in:
Senad Uka
2023-08-28 13:42:58 +02:00
parent 5c229d5e42
commit a3187bdcc1
10 changed files with 1272 additions and 122 deletions

16
cethttp/editor.go Normal file
View File

@@ -0,0 +1,16 @@
package cethttp
const editorPage = `
<form action="/save" method="POST">
<input type="text" name="title" placeholder="Naslov" />
<input type="hidden" value="{{.PostID}}" />
<div id="editor"></div>
<script>
const editor = new Editor({
el: document.querySelector('#editor'),
height: '500px',
initialEditType: 'wysiwyg',
previewStyle: 'tab'
});
</script>
`