The json encoding should use django.core.serializers.json.DjangoJSONEncoder so lazy components from settings can properly be evaluated.
For example, I'm trying to set imageManagerLoadURL using reverse_lazy. However, the default encoding gives a traceback when it encounters the reverse_lazy. If it used DjangoJSONEncoder then it would work properly.
from django.core.serializers.json import DjangoJSONEncoder
json_options = json.dumps(options, cls=DjangoJSONEncoder)
https://github.com/froala/django-froala-editor/blob/e70b402beab6611ad4d5a4ed46cb6ead1c2eec3d/froala_editor/widgets.py#L56
The json encoding should use
django.core.serializers.json.DjangoJSONEncoder
solazy
components from settings can properly be evaluated.For example, I'm trying to set
imageManagerLoadURL
usingreverse_lazy
. However, the default encoding gives a traceback when it encounters thereverse_lazy
. If it usedDjangoJSONEncoder
then it would work properly.