You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by ChabbehAymen June 7, 2024 screen shot below shows the issue:
The text in the middle should appear like this if numbered (ordered type):
line one
line tow
line tree
OR like this if unordered (bullet type):
line one
line tow
line tree
This issue appears to be due to quill v2 no longer providing support for the list bullet or ordered types. I compared the packages/quill/formats/list.ts files from quill v1 with that of quill v2.
quill v1:
static formats(domNode) {
if (domNode.tagName === 'OL') return 'ordered';
if (domNode.tagName === 'UL') {
if (domNode.hasAttribute('data-checked')) {
return domNode.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked';
} else {
return 'bullet';
}
}
return undefined;
}
constructor(domNode) {
super(domNode);
const listEventHandler = (e) => {
if (e.target.parentNode !== domNode) return;
let format = this.statics.formats(domNode);
let blot = Parchment.find(e.target);
if (format === 'checked') {
blot.format('list', 'unchecked');
} else if(format === 'unchecked') {
blot.format('list', 'checked');
}
}
domNode.addEventListener('touchstart', listEventHandler);
domNode.addEventListener('mousedown', listEventHandler);
}
quill v2 appears to be missing the domNode.tagName checks to ensure that the list type is correctly defined, e.g. if (domNode.tagName === 'OL') return 'ordered';
The text was updated successfully, but these errors were encountered:
jelyware
changed the title
Quill editor lists (checked list, doted list and numbered list) do not render
Quill editor lists (checked list, bulleted list and ordered list) do not render
Aug 19, 2024
jelyware
changed the title
Quill editor lists (checked list, bulleted list and ordered list) do not render
Quill editor lists (bulleted list and ordered list) do not render
Aug 19, 2024
This issue is also related to #4103 which points to KillerCodeMonkey/ngx-quill#1888 and let the user know that [innerhtml] and quill view html is broken in quill v2
Discussed in #4245
Originally posted by ChabbehAymen June 7, 2024
screen shot below shows the issue:
The text in the middle should appear like this if numbered (ordered type):
OR like this if unordered (bullet type):
This issue appears to be due to quill v2 no longer providing support for the list bullet or ordered types. I compared the packages/quill/formats/list.ts files from quill v1 with that of quill v2.
quill v1:
quill v2:
quill v2 appears to be missing the domNode.tagName checks to ensure that the list type is correctly defined, e.g.
if (domNode.tagName === 'OL') return 'ordered';
The text was updated successfully, but these errors were encountered: