-
Notifications
You must be signed in to change notification settings - Fork 16
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
Rich text copy not working for Google Docs #10
Comments
I've tried this with the latest development build but couldn't reproduce it. Could you try it via about:debugging?: Steps I did:
On both steps 7 and 9 I successfully got inserted links. If you still fail, I think it may be a problem of Firefox or the platform itself... |
Retried on Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0. Neither the nightly, nor the released version of the extension are copying the I stepped through the copy process in the debugger, and the richText HTML string looks correct to me. The execution hits the browser.tabs.executeScript(permittedTabs[0].id path, and tries to inject the event based copy code into the gdocs page, but the clipboard is not updated. |
OK I got it why the difference between my result and your result happens. On my case I select multiple tabs including both Google Docs and other services, and the first tab of them is not Google Docs. On the other hand your case looks to have Google Docs as the first tab. Due to some technical reasons, this addon executes There is only one workaround: enabling the native clipboard write API of Firefox itself. Go to |
I've released the version 1.3.0 with the fix. |
Confirmed that rich text copying is now working for gdocs tabs as well with the preference set. Thank you! One small nit: When the preference is missing, I am getting the HTML string in the clipboard (with <a> tags), rather than the plain text format. Might be nicer to fall back to the user configured plain text format instead. |
Short description
Copying the rich text linked title does not work for fully loaded Google Docs tabs, but does work for unloaded ones, and other websites. Other formats (such as separate title & link) work as well.
Steps to reproduce
Expected result
Tab title is copied as linked, rich text.
Actual result
Clipboard was not updated, previous clipboard content is inserted.
Environment
The text was updated successfully, but these errors were encountered: