aboutsummaryrefslogtreecommitdiff
path: root/pkg/context/context.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
committerUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
commitdfd494c113cfa2a25ee0c2f5a12c6403f24742a4 (patch)
treea1b7e8c997bf77790fd8402e19cc642530f360bf /pkg/context/context.go
parent57897cc8c2c90ab1566a65bcd1eabfd41a906070 (diff)
repo: minor improve for PR #5219 and support UTF-8 byte count
Diffstat (limited to 'pkg/context/context.go')
-rw-r--r--pkg/context/context.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/context/context.go b/pkg/context/context.go
index fdd02421..579d81d0 100644
--- a/pkg/context/context.go
+++ b/pkg/context/context.go
@@ -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 {