From f492a670c007f3c71ec42ac9549fcc67e952c0f1 Mon Sep 17 00:00:00 2001 From: Nigel Fletton Date: Mon, 18 Jul 2016 10:38:53 -0600 Subject: [PATCH] Fix how TinyMCE configuration options are rendered in JavaScript --- wagtailtinymce/rich_text.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wagtailtinymce/rich_text.py b/wagtailtinymce/rich_text.py index c61003c8..25253628 100644 --- a/wagtailtinymce/rich_text.py +++ b/wagtailtinymce/rich_text.py @@ -78,9 +78,7 @@ def render(self, name, value, attrs=None): return super(TinyMCERichTextArea, self).render(name, translated_value, attrs) def render_js_init(self, id_, name, value): - kwargs = { - 'options': self.kwargs.get('options', {}), - } + kwargs = self.kwargs.get('options', {}) if 'buttons' in self.kwargs: if self.kwargs['buttons'] is False: