Title: copy/paste block only inserts code comment
Last modified: March 29, 2023

---

# copy/paste block only inserts code comment

 *  Resolved [mmtomm](https://wordpress.org/support/users/mmtomm/)
 * (@mmtomm)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/copy-paste-block-only-inserts-code-comment/)
 * Hi,
 * I’m using the woo storefront theme and while editing two pages, I want to copy
   i.e. a paragraph block from one page to another. I use the 3dots menu of the 
   block on one page to copy the block to the clipboard. On the other page I do 
   CTRL+V.
 * But instead of having a nice WYSIWYG experience my paste result is displaying
   the block’s underlying code instead, as I would use a preformated block:
 *     ```wp-block-code
       <!-- wp:paragraph {"backgroundColor":"pale-pink"} --><p class="has-pale-pink-background-color has-background"><strong>Happy Hour 4-7pm</strong></p><!-- /wp:paragraph -->
       ```
   
 * Expected result:
 * **Happy Hour 4-7pm** <<< on a pale pink background
 * So there isn’t a “paste block from clipboard” option in any menu or do I need
   a secret keyboard shortcut instead?
 * Thank you
   Tom

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/copy-paste-block-only-inserts-code-comment/#post-16607168)
    - I just tried to copy a paragraph block with colored background from a post
      to and paste onto a page and it worked as expected. I used twenty twenty three
      theme, WordPress version 6.1.1 and Chrome browser.
    - I just tried to copy a paragraph block with colored background from a post
      and paste onto a page and it worked as expected. I used twenty twenty one 
      theme, WordPress version 6.1.1 and Chrome browser.
 * try this: install health check plugin which can be used in troubleshooting mode
   to deactivate all plugins and theme might help narrow down the source of the 
   issue. plugin: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
 *  Thread Starter [mmtomm](https://wordpress.org/support/users/mmtomm/)
 * (@mmtomm)
 * [3 years ago](https://wordpress.org/support/topic/copy-paste-block-only-inserts-code-comment/#post-16706324)
 * Thank you and sorry for the late reply!
 * I tried the health check plugin in trouble shooting mode, resulting in the same
   behavor as explained. 🙁
 *  Thread Starter [mmtomm](https://wordpress.org/support/users/mmtomm/)
 * (@mmtomm)
 * [3 years ago](https://wordpress.org/support/topic/copy-paste-block-only-inserts-code-comment/#post-16706422)
 * Fortunately I could solve the problem and realized it is a firefox issue with
   the clipboard.
 * The solution was to type about:config into the browser bar (may accept a warning).
   In the ‘search preference name’ field paste this value:
 *     ```wp-block-code
       dom.event.clipboardevents.enabled
       ```
   
 * If this entry is in **bold** and has a value of ‘_false_‘ a double click on it
   will change it to true and non bold. Reload the page and the block get’s pasted
   as expected.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘copy/paste block only inserts code comment’ is closed to new replies.

## Tags

 * [copy-paste](https://wordpress.org/support/topic-tag/copy-paste/)
 * [Firefox](https://wordpress.org/support/topic-tag/firefox/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [mmtomm](https://wordpress.org/support/users/mmtomm/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/copy-paste-block-only-inserts-code-comment/#post-16706422)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
