Skip to content
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

Enable to read/write from/to the clipboard #1358

Open
Sebastian-ubs opened this issue Nov 28, 2024 · 0 comments
Open

Enable to read/write from/to the clipboard #1358

Sebastian-ubs opened this issue Nov 28, 2024 · 0 comments
Labels
enhancement New feature or request ux UX design needed

Comments

@Sebastian-ubs
Copy link
Contributor

User Story
As a user I want to be able to copy text from all over Platform.

As an extension developer I want to be able to add menu actions that would copy certain text.

Description

  • Implement/enable CTRL+C, CTRL+X, CTRL+V all over the Platform.
  • Give extension developers access at least to writing to the clipboard (probably also reading from it)

Writing/reading from/to the clipboard should already be possible in the renderer process (frontend) - the editor does it. The electron main process (node js backend) however does not have access to the keyboard. Importing methods fails, because imports are restricted to papi.

import { clipboard } from 'electron'

Error: Requiring other than papi is not allowed in extensions! Rejected require('fs'). Try using papi.storage or bundling the module into your code with a build tool like webpack

import clipboard from 'clipboardy'

Error: Requiring other than papi is not allowed in extensions! Rejected require('node:process'). Try bundling the module into your code with a build tool like webpack

Implementation idea

Testing ideas

@Sebastian-ubs Sebastian-ubs added enhancement New feature or request ux UX design needed labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux UX design needed
Projects
Status: No status
Development

No branches or pull requests

1 participant