django-markdownx icon indicating copy to clipboard operation
django-markdownx copied to clipboard

Customization problem: override the default widget’s template

Open Howardhuang98 opened this issue 3 years ago • 3 comments

I override the default widget’s template by creating your own template and saving it under markdownx/widget.html, but the django still uses default widget. Finally, I added

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'

and added 'django.forms' in INSTALLED_APPS. Thus, my override widget works.

Howardhuang98 avatar Oct 21 '21 09:10 Howardhuang98

Same problem here (Django==4.0.4; django-markdownx==3.0.1). The proposed solution works for me.

gamboz avatar May 26 '22 11:05 gamboz

Same problem and the proposed solution with django-markdownx==4.0.2 Should be included in the docs

ppvan avatar Apr 28 '23 00:04 ppvan

If someone has the same problem: the "widget.html" must be in "templates/markdownx/" instead of just "markdownx/"

sbuersch avatar Apr 03 '24 09:04 sbuersch