From dfd494c113cfa2a25ee0c2f5a12c6403f24742a4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 11 Jun 2018 21:06:24 +0800 Subject: repo: minor improve for PR #5219 and support UTF-8 byte count --- pkg/context/context.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/context/context.go') 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 { -- cgit v1.2.3