Closed Abdo-Shaibany closed 6 months ago
Same here. I've tried the Column and Action and don't do anything
Hey, is it possible that this plugin works only using Admin panel?
You're using Filament::registerRenderHook('scripts.end'
and we don't have it using the single package (I think) and it's not loading any js
Hey, is it possible that this plugin works only using Admin panel?
You're using
Filament::registerRenderHook('scripts.end'
and we don't have it using the single package (I think) and it's not loading any js
Yep, I've just added this into my component or blade and it works @AbdoShiabany
@push('js')
<script>
document.addEventListener('clipboard', function (e) {
window.navigator.clipboard.writeText(e.detail);
});
</script>
@endpush
I'm using the Admin panel, and it's not working for me.
Hey, is it possible that this plugin works only using Admin panel?
You're using
Filament::registerRenderHook('scripts.end'
and we don't have it using the single package (I think) and it's not loading any js
same here...
Sorry for the delay in reply, can you give me information about the browser, OS, and filament version?
I'm using chrome, macOS Monterey and the version of filament is 2.4.2. I think it's related with the absence of a SSL certificate, but I have to check: https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined/51823007#51823007
I'm using chrome, macOS Monterey and the version of filament is 2.4.2. I think it's related with the absence of a SSL certificate, but I have to check: https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined/51823007#51823007
Yea, clipboard api only works on localhost or https context. If you are running you project on local env using a custom domain (I think this is the case) you need to setup an ssl.
Describe the bug I install the plugin and It worked as expected from the UI, except that it didn't copy anything to Clipboard