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)