Quill Editor ignore bullet points.

  • uunicode-1346863582754766948

    unicodes

    10 days 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!
  • lucasg-1346869330393956383

    Lucas G

    10 days ago

    ๐Ÿฅฐ1
  • lucasg-1346869770393489489

    Lucas G

    10 days ago

    I'll see if we can change the set content action to convert the tags ๐Ÿค”
  • uunicode-1346874354201526364

    unicodes

    10 days ago

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

    unicodes

    10 days ago

    Lucas, what editor do you use?
  • lucasg-1346876782925840566

    Lucas G

    10 days 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
  • lucasg-1346877001826570310

    Lucas G

    10 days 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
  • uunicode-1346877122978779167

    unicodes

    10 days ago

    Your version of Quill has this issue?
  • lucasg-1346877182840012830

    Lucas G

    10 days 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
  • uunicode-1346877428860981308

    unicodes

    10 days ago

    But TipTap is limited ๐Ÿ˜ฆ
  • lucasg-1346877482841669765

    Lucas G

    10 days ago

    How so
  • uunicode-1346877618645110805

    unicodes

    10 days 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
  • lucasg-1346877690426425395

    Lucas G

    10 days ago

    The base is open source
  • Stuff like collaboration and AI are paid
  • uunicode-1346883926802567271

    unicodes

    10 days 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. ๐Ÿ˜…
  • lucasg-1346884406932934807

    Lucas G

    10 days 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
  • uunicode-1346884802887815228

    unicodes

    10 days ago

    Exactly!
  • uunicode-1346893291743875195

    unicodes

    10 days ago

    Found the solution!
  • uunicode-1346893581159366657

    unicodes

    10 days ago

    You have to load the text using their API not innerHTML.
  • uunicode-1346893852610400418

    unicodes

    10 days 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);
    }
    }
  • lucasg-1346894607694299207

    Lucas G

    10 days ago

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

    unicodes

    10 days ago

    ๐Ÿ˜‚
  • uunicode-1346895605640986795

    unicodes

    10 days ago

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

    unicodes

    10 days ago

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

    Lucas G

    10 days ago

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

    unicodes

    10 days ago

    the package uploded by Andreas?
  • lucasg-1346900247573696585

    Lucas G

    10 days ago

    Yes
  • uunicode-1346904030852546673

    unicodes

    10 days 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.
  • lucasg-1346904252832022589

    Lucas G

    10 days ago

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

    Lucas G

    10 days ago

    quill.setContents(quill.clipboard.convert({
    html: args.html
    }), 'silent')
  • lucasg-1346905293916733491

    Lucas G

    10 days ago

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

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code โ€” but accessible to your entire team!

Try toddle โ€” it's free!

ยฉ Copyright 2024 toddle. All rights reserved.