summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-02 23:14:31 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-02 23:14:31 -0700
commit2d33ab3dd1f72b5b737e8af3a2c001ecbca6b14b (patch)
tree72cfbf4943f24d28d3f504cf60790cd569b1c225 /content
parent37d3f13e071cfdb5e063c67dec604c10dbc6ddde (diff)
adding more UI, rich text editor, implentation and example in post.go, as well as db insert/update and retrieval. NOTE: rich text editor content is stored as html escaped entity in DB.
Diffstat (limited to 'content')
-rw-r--r--content/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/post.go b/content/post.go
index 14f3330..efa83e8 100644
--- a/content/post.go
+++ b/content/post.go
@@ -48,7 +48,7 @@ func (p *Post) MarshalEditor() ([]byte, error) {
}),
},
editor.Field{
- View: editor.Textarea("Content", p, map[string]string{
+ View: editor.Richtext("Content", p, map[string]string{
"label": "Content",
"placeholder": "Add the content of your post here",
}),