paste image - browser widget - suspend developer tools
Posted: Mon Nov 30, 2020 3:21 am
Hi everyone,
I am using the Livecode browser widget. My app (www.ob3.io) allows users to paste many types of content direct into browser including images. So for example if the user is working in OB3 (loaded within Livecode browser widget) they can paste an image on the clipboard INTO the browser widget and it will upload it to OB3. This is working.
I have two problems:
When in development mode pasting an image will upload it to the browser widget AND paste an image object in Livecode. I haven't had any luck in attempting to stop this behaviour so far.
on pasteKey -- replace returns with spaces before pasting
#paste
end pasteKey
I can use pasteKey to prevent pasting. For example if I made a empty stack and added this script to the card, then did suspend development tools, and attempted to paste card Livecode will NOT paste image. If enable "paste" it would enable pasting an image... so far so good, right?...
My problem is that when I suspend development tools Livecode won't allow me to paste into the browser widget at all. But it will let me use cmd + v to paste into the example stack (above)
I haven't added a menubar to my app yet, so perhaps it's just something as simple as adding an Edit menu?
Has anyone had any experience in this area?
I am using the Livecode browser widget. My app (www.ob3.io) allows users to paste many types of content direct into browser including images. So for example if the user is working in OB3 (loaded within Livecode browser widget) they can paste an image on the clipboard INTO the browser widget and it will upload it to OB3. This is working.
I have two problems:
When in development mode pasting an image will upload it to the browser widget AND paste an image object in Livecode. I haven't had any luck in attempting to stop this behaviour so far.
on pasteKey -- replace returns with spaces before pasting
#paste
end pasteKey
I can use pasteKey to prevent pasting. For example if I made a empty stack and added this script to the card, then did suspend development tools, and attempted to paste card Livecode will NOT paste image. If enable "paste" it would enable pasting an image... so far so good, right?...
My problem is that when I suspend development tools Livecode won't allow me to paste into the browser widget at all. But it will let me use cmd + v to paste into the example stack (above)
I haven't added a menubar to my app yet, so perhaps it's just something as simple as adding an Edit menu?
Has anyone had any experience in this area?