PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:42 PM

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

  • /attachments/1293565755056721920/1293565755387940967/image.png

    Seun Orofin

    2 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?
  • Lucas G

    2 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
  • Seun Orofin

    2 months ago

    How do i do this please?
  • Lucas G

    2 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
  • Andreas Møller

    1 month 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.