agusmakmun / agusmakmun/django-markdown-editor

MARTOR_ENABLE_ADMIN_CSS not disabling bootstrap styling

Open
#259 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
901
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

### Discussed in https://github.com/agusmakmun/django-markdown-editor/discussions/258

Originally posted by **JElgar** August 19, 2024
Hey! I'm trying to find a markdown editor to use in the django admin. This one looks awesome and exactly what I need. The one small thing I'm struggling with is integrating it with [unfold](https://github.com/unfoldadmin/django-unfold).

If I disable unfold and use the vanilla django admin everything works great but if I open an admin form with any martor field with unfold then all the css goes a bit wild.

image

I saw in your README you have
```
# Disable admin style when using custom admin interface e.g django-grappelli (default is True)
MARTOR_ENABLE_ADMIN_CSS = True
```

which seems to allude to you supporting this kind of use case but I tried setting it to False but I got the same issue.

I have noticed that folks are having issues with unfold and other markdown editors (e.g. https://github.com/unfoldadmin/django-unfold/issues/497) so potentially not something can be solved here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.