blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

Copying is not working from Affine

Open YourDaniel opened this issue 1 year ago • 4 comments

What happened?

I can't copy any text from Affine blocks, cmd + c is not working. In the buffer is always something that was copied before outside of Affine. Popup icon "Copy" when selecting text also doesn't work. However, copying any text not from Affine blocks, e.g. title of the page is copying normally. Only from text blocks inside notes.

Sometimes copying is working but I couldn't replicate what causes is to work or not to work. I could reproduce it in both Chrome and Safari.

Distribution version

macOS x64 (Intel)

What browsers are you seeing the problem on if you're using web version?

Chrome, Safari

Are you self-hosting?

  • [X] Yes

Relevant log output

No response

Anything else?

No response

YourDaniel avatar Jun 14 '24 00:06 YourDaniel

Issue Status: 🆕 *Untriaged

*🆕 Untriaged

The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

affine-issue-bot[bot] avatar Jun 14 '24 00:06 affine-issue-bot[bot]

Recent install, had same issue. Seemed to be fixed once I login using HTTPS.

oiqm4T avatar Jun 19 '24 20:06 oiqm4T

+1

SAnBlog avatar Jul 04 '24 11:07 SAnBlog

if you may provide a detailed issue reproduce video in https://try-blocksuite.vercel.app/starter?init, that would be appreciated

forehalo avatar Aug 09 '24 07:08 forehalo

Dup of https://github.com/toeverything/AFFiNE/issues/5610

Unfortunately, due to the restriction of browsers, many features like Clipboard only work under Secure Contexts (i.e. HTTPS or localhost). I would recommend you either setup your own CA, or proxy the server to the localhost. You can set the flag in Chrome to disable the Secure Contexts in the trusted sources. Input the chrome://flags/#unsafely-treat-insecure-origin-as-secure in URL to set.

fourdim avatar Oct 09 '24 04:10 fourdim