romanvm / django-tinymce4-lite

TinyMCE 4 editor widget for Django
MIT License
126 stars 47 forks source link

How to add custom classes to specific elements? #48

Closed sometimescool22 closed 5 years ago

sometimescool22 commented 5 years ago

Hey, say I want to add the class browser-default to all ul elements. How would I do that? I am just using content = HTMLField('Content') in my models.py.

romanvm commented 5 years ago

I'm afraid this question is outside the scope of this project and should be done with JavaScript in TinyMCE itself, probably via editor events. Please read TinyMCE 4 docs about that: https://www.tiny.cloud/docs-4x/advanced/events/

sometimescool22 commented 5 years ago

Ok, thanks.