-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use quillclasses like ql-align-right instead of inline styles #43
Comments
The inline styles need to be registered to Quill, or else they are stripped. There maybe better ways to do it, but I resolved it like this: koan00@95ba869 |
any downside ? or is it ready to be mergred ? |
Well the downside would be if overwrites the default image implementation of quill. If something else also needs to override the default implementation, there would be a conflict. The solution was found here: #10 I believe the code itself does not even have to be part of the resize module, and could be implemented separately. I just integrated it for ease of use for my narrow usage scope. |
Confirmed that the solution @koan00 mentioned works. FYI, I was able to use this snippet right after my Quill import to get things working (included below from the commit referenced above). My recommendation would be to include this override code and provide a flag to disable it (and document that). This way we can get this working properly out of the box, but allow folks to disable it if needed (or the other way around).
|
@arimus Can you provide TS version, I am facing difficulty in |
I believe I was using 3.8.3 at the time. If you are stuck on a version without reduce, you could use a polyfill or work around with a filter and a manual dedupe loop. |
Hi,
when we set the alignment of an image inline styles get added.
There however are removed when you use them to initialize a quill:
slab/quill#2126
Any idea ?
The text was updated successfully, but these errors were encountered: