pylixm / django-mdeditor

Django-mdeditor is Markdown Editor plugin application for django base on Editor.md.
https://pypi.org/project/django-mdeditor/
GNU General Public License v3.0
481 stars 103 forks source link

What is the best way to override all the styles? #136

Closed osean-man closed 2 years ago

osean-man commented 3 years ago

I am trying to customize the styles and can't seem to figure out the best approach. Is there a way to allow for skinning the theme or is it just dark/light and that's it? If it is, where can I customize or override the dark theme styles?

qlzzriyue commented 3 years ago

You need to find the editormd.preview.css file, reference it in the needed pages, and then modify the style of this css file. If the front-end of the page wants to follow the django-mdeditor display, you only need to introduce this css file, other functions are driven by .js files (for example: editormd.js, prettify.min.js, etc.).

Note that your site's original css styles may conflict with the editor's css styles.

pylixm commented 2 years ago

There has been no feedback for a long time, and it can be reopened if necessary.