repo: minor improve for PR #5219 and support UTF-8 byte count

This commit is contained in:
Unknwon
2018-06-11 21:06:24 +08:00
parent 57897cc8c2
commit dfd494c113
12 changed files with 44 additions and 33 deletions

View File

@@ -68,6 +68,10 @@ func (c *Context) RequireSimpleMDE() {
c.Require("SimpleMDE")
}
func (c *Context) RequireAutosize() {
c.Require("Autosize")
}
// FormErr sets "Err_xxx" field in template data.
func (c *Context) FormErr(names ...string) {
for i := range names {