Aligning image does not add align attribute #4758
Unanswered
zsolt-domjan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a quill editor instance inside a vue component. It sort of worked fine, until it decided not to work anymore. I noticed the issue on a branch, where I made quite a few changes on the component, but I realised that even on master (in state prior to any of my changes) the issue exists. The problem I'm having is that after I add an image, I resize it, I align it to the center, all looks good in the editor, but when submitting, the content's json does not have a delta element with the align attribute.
This is how I configure that quill instance:
My understanding, that in order to Quill read the image's position correctly, it needs to be set at block level (and this is how it looked before the issue started to kick in), something like this:
But mine looks like this:
It inserts a new line, without the align attribute.
chatgpt suggested that the problem might be that the modules are not compatible with my quill version:
Which is a fair point, but it did work before, the dependency wasn't upgraded. The same setup was working yesterday, today it decided not to :) .
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions