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

Customization problem: override the default widget’s template #210

Open
Howardhuang98 opened this issue Oct 21, 2021 · 3 comments
Open

Comments

@Howardhuang98
Copy link

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.

@gamboz
Copy link

gamboz commented May 26, 2022

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

@ppvan
Copy link

ppvan commented Apr 28, 2023

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

@sbuersch
Copy link

sbuersch commented Apr 3, 2024

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

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

No branches or pull requests

4 participants