mirror of
https://github.com/gogs/gogs.git
synced 2026-05-06 08:36:49 +02:00
repo: minor improve for PR #5219 and support UTF-8 byte count
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user