Permalink
Browse files

Merge pull request #2 from evildmp/master

Make the plugin text_enabled for django CMS
  • Loading branch information...
2 parents 4adbe1f + aa9ed6a commit 6140a6e261167e16c78f18cd2c1470dc23bc466d @romlok committed Mar 18, 2013
@@ -16,7 +16,7 @@ class FormDesignerPlugin(CMSPluginBase):
module = _('Form Designer')
name = _('Form')
admin_preview = False
-
+ text_enabled=True
def render(self, context, instance, placeholder):
if instance.form_definition.form_template_name:
self.render_template = instance.form_definition.form_template_name
@@ -30,5 +30,7 @@ def render(self, context, instance, placeholder):
return response
+ def icon_src(self, instance):
+ return "/static/plugin_icons/form.png"
plugin_pool.register_plugin(FormDesignerPlugin)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6140a6e

Please sign in to comment.