Gutenberg Blocks offer the function to copy and paste styles between blocks. We extended some of the core blocks and added custom attributes.

Can the copy paste functionality be extended, so that theses attributes are also included when copy-paste is used?

  • this shouldn't be necessary and work automatically, do you have more information about this? Richtext formats don't need special steps to allow copy pasting, however if you have not used core richtext components and implemented your own system you would need to share what you've done for the question to be answerable. Likewise block attributes are not styles, so if you're referring to options in a sidebar then that heavily implies you've implemented something in a non-standard way. Please edit the question to include concrete examples and code
    – Tom J Nowell
    May 26 at 10:15
  • It for sure can, but this is not an easy task, since this involves tweaking default functioning of block editor, requiring advanced knowledge of block editor ecosystem and React. Alternatively, you can suggest that as an improvement on Gutenberg's github page.
    – Lovor
    May 29 at 21:55


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.