You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to change the default language for the tinyMCE editor. The language is set in the Django settings file and it's passed to the tinyMCE editor in the javascript file:
I'm unable to change the default language for the tinyMCE editor. The language is set in the Django settings file and it's passed to the tinyMCE editor in the javascript file:
https://github.com/isotoma/wagtailtinymce/blob/master/wagtailtinymce/static/wagtailtinymce/js/tinymce-editor.js#L64
but it's located in nested 'options' key instead of flat structure. I've managed to monkey-patch the code by adding to the:
https://github.com/isotoma/wagtailtinymce/blob/master/wagtailtinymce/rich_text.py#L84
following line:
kwargs.update({ 'language': kwargs['options'].get('language'), 'paste_as_text': True, })
The
paste_as_text
is used as extra parameter for the constructor as I didn't find any way to pass such value by hooks/settings.Here are the tineMCE docs about localization:
https://www.tinymce.com/docs/configure/localization/#language
The text was updated successfully, but these errors were encountered: