[Django]-How to modify django-ckeditor inline styles?

0👍

With "stylesSet"

{
    "default": {
        "format_tags": "h1;h2;h3;h4;p",
        "toolbar": "Custom",
        "toolbar_Custom": [
            [
                "Format",
                "Styles",
                "RemoveFormat",
                "-",
                "Bold",
                "Italic",
                "Subscript",
                "Superscript",
                "-",
                "BulletedList",
                "NumberedList",
                "-",
                "Link",
                "Unlink",
                "Anchor",
            ],
        ],
        "stylesSet": [
            {"name": "Lead Text", "element": "p", "attributes": {"class": "lead"}},
            {
                "name": "Marker: Yellow",
                "element": "span",
                "styles": {"background-color": "Yellow"},
            },
        ],
    }
}

Leave a comment