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
If I check any item as "done" this information is not present in Delta JSON file...
Problem:
After saving, delta information about checked item is not present in Delta JSON
The list will be always unchecked after quill delta save and reload delta (forexample from db
The main state of Quill should be stored as delta and than generate html from that but it seems from code that this task-list "check" is based on html checks... and did not update delta after check event is fire...
Reason of problem: (this is not delta friendly solution)
class TaskListModule extends Module {
constructor(quill, options) {
super(quill, options);
this.quill.container.addEventListener('click', (e) => {
if (e.target.matches('ul.task-list > li')) {
e.target.classList.toggle('checked');
// dummy update so that quill detects a change
this.quill.updateContents(new Delta().retain(1));
}
});
}
}
Edited:
Seems like package is not maintained anymore...
Maybe not closed, but you can use checkbox list directly from quill now... documentation is missing for that... i found it on GitHub and i running that already in my code.. working well.. But i did not know that on time writing this issue..
If you use Delta as input
If I check any item as "done" this information is not present in Delta JSON file...
Problem:
The main state of Quill should be stored as delta and than generate html from that but it seems from code that this task-list "check" is based on html checks... and did not update delta after check event is fire...
Reason of problem: (this is not delta friendly solution)
Edited:
Seems like package is not maintained anymore...
There is also build-in quill checklist
The text was updated successfully, but these errors were encountered: