DEV Community

ALI NAGRA
ALI NAGRA

Posted on

Struggling with Custom Styles in Django_ckeditor_5: My Solution

I am a Django developer.

I have created a blog website and installed Django_ckeditor_5, but I am unable to add custom styles (style classes) in it. I used to do it easily in CKEditor 4, but I am unable to do the same in Django_ckeditor_5.
I searched online but couldn't find a proper solution, and even asked AI, but still couldn't find the solution.

"If anyone knows, please let me know in the comments"

So, what I did was, I created another stylesheet and applied styles over the HTML elements, and that helped fix my overall style.

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay