-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Copy and Export a Post #4284
Comments
I like this as an idea. I can imagine this could be good for things like sharing blocks too. |
@jasmussen and I also discussed making cmd+a work to select all content. If a block is selected without any input fields, it would select all content as it does now. If the focus is inside an input field, it would first select all content in that field, and a second time would select all blocks. |
This is still a good shortcut in addition of course. |
Technically, how would the copying itself happen? Per the latest Clipboard API and events W3C draft, a pure Web-events-based operation isn't expected in the future:
Out in the wild, buttons that need to be clicked in order to copy data (e.g. copying a repository's URL from its GitHub page) are a common sight. Historically, these would require hacks, one way or another: a common solution was to use Flash. 🙈 Enter Are there other methods we should be thinking of for this? |
The textarea is already at hand for the "text" mode of the editor. (See also https://github.com/WordPress/gutenberg/tree/master/components/clipboard-button ) |
TIL. I’m constantly surprised by this codebase. |
YES! I was thinking about this, and was sure we'd discussed this. But I can't find a ticket. I've also been thinking that it might be cool to have different behavior for multiple consecutive ⌘A's. Like ⌘A inside a paragraph selects all text in that paragraph, ⌘A again selects this paragraph at the block level, ⌘A again selects all blocks. |
→ Copying aspect implemented in #4323 |
Closing as done. I'll open one for "Export...". |
One drawback of composing all content via blocks is that the ability of copying and moving a full post can become a bit harder. We support Cmd+A and Cmd+C if you are not focused on a block. I think we can, in addition, offer some clear tools for this in the ellipsis menu while at the same time exposing keyboard shortcuts for quick copy-all.
Furthermore, we could consider having a "Export as..." menu there for quickly generating a plain text file, or an HTML doc for the post, etc.
The text was updated successfully, but these errors were encountered: