LeeHanYeong / django-quill-editor

django-quill-editor makes Quill.js easy to use on Django Forms and admin sites
https://django-quill-editor.readthedocs.io
MIT License
202 stars 49 forks source link

Bug: changing image position is not saved #124

Open CheesyPhoenix opened 1 year ago

CheesyPhoenix commented 1 year ago

When changing the position of an image (left, right, center), the hidden input which holds the data for the field is not updated. This causes the position change not to be saved when submitting if it is the last thing that was changed. Changing anything else like the scale of the image, or anything to do with the text, fixes the issue and updates the image data properly.

Steps to reproduce:

  1. Open a form containing a django-quill-editor field in your browser of choice
  2. Insert any image
  3. Open inspect element and find the hidden input element which holds the field data. (helpful query selector: input[name=INSERT_FIELD_NAME])
    • Alternatively post the form and check the output
  4. Select the image and change the position using the floating left, right, center, revert buttons
  5. See that the value of the hidden input element doesn't change

django-quill-editor version: 0.1.40