Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for TINYMCE_PLUGINS #648

Merged
merged 2 commits into from Oct 16, 2016
Merged

Conversation

pigletto
Copy link

@pigletto pigletto commented Oct 9, 2016

TINYMCE_PLUGINS are added to the template context (askbot/context.py) so using {{ settings.TINYMCE_PLUGINS }} in rich_text.html template raised KeyError.

'plugins' key was duplicated in TINYMCE_DEFAULT_CONFIG

@evgenyfadeev evgenyfadeev merged commit 6b78ea4 into ASKBOT:master Oct 16, 2016
@@ -30,7 +30,7 @@
django.jQuery = $;
</script>
<script type="text/javascript">
askbot['settings']['tinyMCEPlugins'] = JSON.parse('{{ settings.TINYMCE_PLUGINS|as_json }}');
askbot['settings']['tinyMCEPlugins'] = JSON.parse('{{ TINYMCE_PLUGINS|as_json }}');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reproduced this issue. 'settings' is the context variable that is set by askbot/context.py. To solve the problem, I've passed it explicitly from upstream code using the rich_text.html template.

928f75d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants