-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
nested lists are not WYSIWYG #1314
Comments
Issues is not the place for philosophical debates of existentialism or purpose. Please include practical reasons, or indulge elsewhere. And remove the attitude or assumption that just because an implementation surprised you, it must be wrong or lazy. |
All good thank you. |
It seems that Quill works just fine, it gives you the right html and each list element posses its own class eg: ql-indent-4, or ql-indent-1 depending on the level of indentation. My issue was the following:
Also make sure that you wrap your custom component where you display the html markup with the "ql-editor" class. If you take a look at the stylesheets the indentation selectors are defined as |
Using css to indent conveys the nesting of the list item to people using eyes to read the content. Using css to indent does not convey the nesting of the list item to people using accessibility devices such as screen readers. Using css to indent does not convey the indenting of the list item when the HTML markup from the editor is taken out of the QuillJS CSS context (rendered elsewhere). |
|
I am running across exactly this issue |
I was about to say the same thing. I'm using quill as the editor in the CMS but now it seems I need to add the quill stylesheets to get the actual WYSIWYG content I added on the website that is fetching data from the CMS. Not to mention like you said it's not conveyable to screen readers. Is there a reason quill doesn't simply use HTML markup for nested lists? If there's a reason then it's alright I suppose, but I don't agree that it's not an issue. |
@jhchen I love Quill and am appreciative of the time and effort that must go into something like this, so take my comment with a grain of salt. Just wanted to +1 to @rbonomo 's comment about accessibility. Flat lists styled with a margin to make them appear nested work for sighted users. For non-sighted users, all of the semantics you're trying to impart by nesting list items disappears. So all other things being equal, seems like actually nesting the html elements would be the way to go. But that's probably a large change with a lot of work for a feature that many people may never use... so yeah. Grain of salt. |
We've just run into this issue when trying to use the rich text data in an email. Unfortunately while emails support nested lists just fine, they don't support the CSS counters Quill uses to control the numbering so with the Quill CSS added to the email all the numbers and bullets are lost. |
As a workaround, I disabled TAB within Quill so that nested lists are not possible to create within the editor. |
I use Quill to save some datas that I export in OpenXML using https://github.com/ffmad/HTMLtoOpenXML |
Also copy pasting from quill to anyother word processor / notes breaks the nested lists. |
6 years on and this is still an issue. This is not semantically correct usage of HTML, nor is it WYSIWYG. |
Any updates on this? Interested in this also. |
6.5 years... |
@jeygeethan I had to switch to TipTap. A LOT less pain. |
still waiting here... |
I've just replaced my google editor with Quill. It was looking great however I've just come across this issue in testing, unfortunately, not being able to have true nested lists is a deal breaker for me. Its back to google or find a better alternative. |
@milelo Can you give me a link to the google editor? I am looking for a quill replacement. TIA |
Its in the google closure library goog.editor. It still works fine but unfortunately its being phased out: Closure Library is in Maintenance Mode · Issue #1214 · google/closure-library (github.com) |
One of our clients just noticed this, because an email was sent with the wrong format. |
WYSIWYG stands for what you see is what you get.
When you create nested lists, instead of actually creating html nested lists, quill creates juts regular lists and adds a
ql-indent-*
class to the items.expected:
actual:
The text was updated successfully, but these errors were encountered: