Editor half way through
This commit is contained in:
16
cethttp/editor.go
Normal file
16
cethttp/editor.go
Normal 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>
|
||||
`
|
||||
Reference in New Issue
Block a user