lqez / django-summernote

Simply integrate Summernote editor with Django project.
MIT License
1.05k stars 226 forks source link

How to customize the iframe implementation? #500

Open chrisspen opened 9 months ago

chrisspen commented 9 months ago

Hi,

This project generally works well, bu I'd like to add some custom event handlers. However, the template used by the iframe SummernoteWidget class is hardcoded, and for some reason, if I subclass and duplicate the render method to just change the template, the entire thing breaks, and I can't trace down the problem.

Is there a recommended way to customize SummernoteWidget? Specifically to add new JS?