Pricing Blog

To reset styles when pasting text, what do you use for that?

  • uunicode-1429743160694935713

    unicodes

    25 days ago

    When you copy text from web pages, it usually includes the styles as well. For example, when you paste that text into Quill, it keeps the formatting.
    Have you ever run into this issue? How did you fix it?
    I’m thinking about creating a function to remove the tags, but I’m curious if anyone has found a good and simple solution for this.
  • lucasg-1429822316367581317

    Lucas G

    24 days ago

    Most browsers have an option to paste without styling
  • lucasg-1429822787228274729

    Lucas G

    24 days ago

    Quill might have an option to remove styling as well if you specifically need it for quill
  • uunicode-1429847476143259780

    unicodes

    24 days ago

    Do you know if this pasting without styling is something that could be trigged automatically on paste event? I just want to avoid replacing styling manually with empty spaces.