django-froala-editor icon indicating copy to clipboard operation
django-froala-editor copied to clipboard

add widget name to render

Open arturodelreal opened this issue 5 years ago • 1 comments

assign the new FroalaEditor to a constant in the javascript render.

arturodelreal avatar Aug 10 '20 20:08 arturodelreal

Can I suggest that this PR is changed so that the JS var is set by using the el_id and not a settings.py variable as if you have more than one instance on a page this will break as the code will try to define the constant multiple times. Though is it even needed as you can reload the instance by using let froala_editor_1 = FroalaEditor('#id_of_the_input_element');

StevenMapes avatar Sep 30 '21 08:09 StevenMapes