aboutsummaryrefslogtreecommitdiff
path: root/pkg/context/context.go
diff options
context:
space:
mode:
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 {