How do i implement a copy image to clipboard functionality in toddle?

  • carterux-1293565755056721920

    Seun Orofin

    5 months ago

    I am tyring to create a simple app that allows users to copy the image in the preview and paste it into their figma canvas..

    How can i achieve this?
    1293565755387940967-
  • lucasg-1293569558933667871

    Lucas G

    5 months ago

    Hmm the copy clipboard functionality only accepts text
  • So I assume you could take the image, encode it to base64 and use that in the copy to clipboard action
  • carterux-1294004533503987863

    Seun Orofin

    5 months ago

    How do i do this please?
  • lucasg-1294378279171788800

    Lucas G

    5 months ago

    You could probably use Blob instead actually. That would be a better approach
  • But either way, you'd have to use a custom action for it
  • Unless the copy to clipboard action allows you to input a blob from a variable 🤔
  • I might be overthinking it if you can jsut pass it directly in
  • andreasmoller-1294907116313776169

    Andreas Møller

    5 months ago

    The copy to clipboard action only works with images, but you can do it with a custom action
    ❤️1

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.