New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard Image Paste Issue with mac App #3342
Comments
Try both build options again, passing in |
mac`➜ myproject wails build -v 2 Build OptionsPlatform(s) | darwin/arm64 Building target: darwin/arm64• Generating bindings: INFO
Done. ♥ If Wails is useful to you or your company, please consider sponsoring the project: windows`➜ myproject wails build -platform=windows/amd64 -v 2 Build OptionsPlatform(s) | windows/amd64 Building target: windows/amd64• Generating bindings: INFO
Done. ♥ If Wails is useful to you or your company, please consider sponsoring the project: |
When I access http://localhost:34115/ on the web through the wails dev command, I can paste pictures directly, but when compiled into an app through wails build, I cannot paste pictures. The above operation values are for pictures, and text can be pasted normally. |
做一个选中div,然后用js点击复制就可以了,wails原生的不太了解 |
你说的方法可能可以解决,但我的问题不仅仅是粘贴图片这个问题,可能还有下载或是其他,我只是以粘贴图片为例子,我觉得Windows可以可能是因为嵌入了WebView2,而mac好像没有 |
Description
mac m2
The program I compiled through the command wails build -platform=windows/amd64 can directly copy the image with control+v.
However, programs compiled through wails build cannot directly paste images through control+v.
To Reproduce
create project command:wails init -n myproject -t vue
main.js
`
import {createApp} from 'vue'
import App from './App.vue'
import './style.css';
import naive from 'naive-ui'
const app = createApp(App)
app.use(naive)
app.mount('#app')
`
App.vue
`
<script setup> import {ref} from 'vue'; import {QuillEditor} from '@vueup/vue-quill'; import '@vueup/vue-quill/dist/vue-quill.snow.css'; import Delta from 'quill-delta'; const data = ["test"]; const content = ref(new Delta()); const convertArrayToDelta = (strArray) => { const delta = new Delta(); strArray.forEach((str) => { if (str.startsWith('data:image')) { delta.insert({image: str}); } else { delta.insert(str + '\n'); } }); return delta; }; content.value = convertArrayToDelta(data); </script>`
The program I compiled through the command wails build -platform=windows/amd64 can directly copy the image with control+v.
However, programs compiled through wails build cannot directly paste images through control+v.
How can I solve this problem?
Expected behaviour
I want Mac compiled programs to be able to paste pictures directly through control+v
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: