the plugin can be embeded in text plugin

This commit is contained in:
Serghei Mihai 2014-01-27 16:08:51 +01:00
parent 6813853a27
commit db2fa93a5b
No known key found for this signature in database
GPG Key ID: 76D1C964BF2FA1AF
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from cms.plugin_pool import plugin_pool
class AjaxTextPlugin(TextPlugin):
name = _(u'Text (asynchronous loading)')
ajax_render_template = 'plugin/ajax_text.html'
text_enabled = True
def get_ajax_body(self, instance, context):
t = loader.get_template(self.ajax_render_template)