diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-02 23:14:31 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-02 23:14:31 -0700 |
commit | 2d33ab3dd1f72b5b737e8af3a2c001ecbca6b14b (patch) | |
tree | 72cfbf4943f24d28d3f504cf60790cd569b1c225 /content | |
parent | 37d3f13e071cfdb5e063c67dec604c10dbc6ddde (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.go | 2 |
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", }), |