Help forum

Quill Editor ignore bullet points.

  • unicodes

    1 year ago

    I'm using quill editor and is very nice, but it ignore bullet points on loading data from database. I tried to add data in "Content" attribute and it continue to ignore bullet points. Is there someone that can help me figure out why is not considering bullet points?

    I'm talking about the Quill Package.

    Thank you!
  • Lucas G

    1 year ago

    🥰1
  • Lucas G

    1 year ago

    I'll see if we can change the set content action to convert the tags 🤔
  • unicodes

    1 year ago

    Wow, this meaning that the issue isn't in the package but with quill itself.
  • unicodes

    1 year ago

    Lucas, what editor do you use?
  • Lucas G

    1 year ago

    Yeah it wouldn’t be the package. The package just loads the editor for you and exposes one of its functions to set content
  • Lucas G

    1 year ago

    I use my own version of Quill right now, I made it around the time the package came out but didn’t bother switching
  • Since I have my own toolbar, etc
  • unicodes

    1 year ago

    Your version of Quill has this issue?
  • Lucas G

    1 year ago

    Probably since it’s an issue with Quill itself
  • But I haven’t gotten complains about it
  • I’ll have to look into it
  • I’ve also been thinking of migrating to Tiptap editor
  • If I do I may make a package for it
  • unicodes

    1 year ago

    But TipTap is limited 😦
  • Lucas G

    1 year ago

    How so
  • unicodes

    1 year ago

    It is not clear if you can use the opensource as much as you want, or you have those limitations https://tiptap.dev/pricing
  • Lucas G

    1 year ago

    The base is open source
  • Stuff like collaboration and AI are paid
  • unicodes

    1 year ago

    I try to figure out maybe is something set up wrong. How can the devs not figuring out that when loading quill bullets content are missing. 😅
  • Lucas G

    1 year ago

    Yeah it’s a weird bug. It says it’s due to them changing how they handle lists but I don’t know why they would do that
  • Basically saying they don’t support <ul> which is kinda wild
  • unicodes

    1 year ago

    Exactly!
  • unicodes

    1 year ago

    Found the solution!
  • unicodes

    1 year ago

    You have to load the text using their API not innerHTML.
  • unicodes

    1 year ago

    the loadQuill action should be if (args.html) {
    editor.quill.clipboard.dangerouslyPasteHTML(args.html);
    }
  • and set quill content function setQuillContent(args, ctx) {
    const quill = document.getElementById(args.elementId)?.quill;
    if (quill) {
    console.log(quill.getContents());
    quill.clipboard.dangerouslyPasteHTML(args.html);
    }
    }
  • Lucas G

    1 year ago

    The solution is in the github issue tracker
  • dangerouslyPasteHTML wouldn't convert it
  • At least, it doesn't sound like it would lol
  • unicodes

    1 year ago

    😂
  • unicodes

    1 year ago

    Do you mean there is a better solution than using their method dangerouslyPasteHTML? Wich name is very weird.
  • unicodes

    1 year ago

    Found out on stackoverflow that would be better saving content as delta format instead html. Do you recommend delta format?
  • Lucas G

    1 year ago

    I've pushed an update to the package, please check it and see if everything is good now
  • unicodes

    1 year ago

    the package uploded by Andreas?
  • Lucas G

    1 year ago

    Yes
  • unicodes

    1 year ago

    May I ask what the changes are, please? I didn’t install the package, I copied and pasted it (months ago). I don’t want to risk replacing all the settings by installing the package. From what I see, loadQuill and setQuillContent look the same as what I'm using right now.
  • Lucas G

    1 year ago

    They were updated from root.innerHTML to quill.setContent
  • And using the clipboard convert to convert things to quill's thing
  • Lucas G

    1 year ago

    quill.setContents(quill.clipboard.convert({
    html: args.html
    }), 'silent')
  • Lucas G

    1 year ago

    The line quill.root.innerHTML = args.html is updated to that