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

Froala editor doesn't shows bulletpoints #46

Closed
mikolajkosmal opened this issue Dec 14, 2017 · 4 comments
Closed

Froala editor doesn't shows bulletpoints #46

mikolajkosmal opened this issue Dec 14, 2017 · 4 comments

Comments

@mikolajkosmal
Copy link

No description provided.

@mikolajkosmal mikolajkosmal changed the title Froala editor Froala editor doesn't shows bulletpoints Dec 14, 2017
@stefanneculai
Copy link
Contributor

@mikolajkosmal most likely you have some other CSS on the page which conflicts with the editor.

@thegumbyman
Copy link

I found this too, when using the widget in an admin form.

The built-in django admin css is resetting list style, see:
https://github.com/django/django/blob/2.0.5/django/contrib/admin/static/admin/css/forms.css#L148

@affan10
Copy link

affan10 commented Nov 25, 2021

So what was the fix for this, if anyone got to do it?

@affan10
Copy link

affan10 commented Nov 29, 2021

Anyone who comes here looking for a fix:

  1. Create change_form.html inside your_project_name > templates > admin directory.
  2. Paste the following and all should work as expected:
{% extends "admin/change_form.html" %}
{% load i18n static %}

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />
    <style>
        form .aligned ul li {
            list-style: inherit;
        }
    </style>
{% endblock %}

This can also help: #73

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