django-markdown-editor icon indicating copy to clipboard operation
django-markdown-editor copied to clipboard

Tailwinds Support

Open osean-man opened this issue 4 years ago • 1 comments

Is there support for Tailwind coming? If not, how can I disable the bootstrap imports? They are conflicting with my current css.

osean-man avatar Apr 12 '21 20:04 osean-man

If in /admin/ of django, you need to use your own themed "bootstrap" or "semantic ui" dependency replace the values with the file in your static files dir:

MARTOR_ALTERNATIVE_JS_FILE_THEME = "semantic-themed/semantic.min.js"   # default None
MARTOR_ALTERNATIVE_CSS_FILE_THEME = "semantic-themed/semantic.min.css" # default None
MARTOR_ALTERNATIVE_JQUERY_JS_FILE = "jquery/dist/jquery.min.js"        # default None

but, if you working on outside of it, you can directly change the base css of bootstrap, you can see this examples:

  • https://github.com/agusmakmun/django-markdown-editor/blob/master/martor_demo/app/templates/bootstrap/base.html#L5
  • https://github.com/agusmakmun/django-markdown-editor/tree/master/martor_demo/app/templates/bootstrap

agusmakmun avatar Apr 13 '21 23:04 agusmakmun