I figured this out.
I’m using clipboard.js and found that making the data-clipboard-target a textarea, i.e. doing the copying from a text-only element, it had the same effect as pasting into a text editor.
Thanks!
Alex.
Related Posts:
- What is the meaning of %s, %1$s etc.? [closed]
- Include WP_Query in my own PHP file?
- How to serialize a Gutenberg block from block attributes in PHP?
- Removing Default Gutenberg Blocks, But Keeping Reusable Block Functionality?
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Has anyone tried putting PHP ActiveRecord on WordPress?
- add_meta_boxes action with refresh on save
- Copyright info change in Theme Child PHP
- Display only text to WordPress loop without loosing the text formatting
- Add footer.php to WordPress child theme
- I want to remove the links from the term list returned by get_the_term_list
- Can I run custom php on specific pages in wordpress?
- Successful or Error Message after running mysql code in functions.php
- Gutenberg custom block using only register_block_type() and HTML
- Include a Gutenberg Block in a PHP file
- Can I view my own wordpress php source code on my hosted web server?
- Create custom blocks for bootstrap
- How do i get (unique) page name?
- How to return output of the new wp gallery block for automatically Link images To Media file
- How to display posts of specific category using a custom Query in WordPress?
- How to display php source code inside a post using visual editor?
- The custom logo, site title, and description doesn’t appear at the same time
- stats_get_csv (WordPress Stats) to only display top posts (not pages)
- Register JS for block on frontend only
- Simple Plugin with custom javascript wont work – no console error
- Hide wordpress field if data is empty in post!
- How to get the POST TITLE using the POST ID?
- Latest post in a specific menu
- Cause of Blank Lines Being Added to WP FIles?
- How to save checkbox values for logged in users?
- Displaying admin notices inside the block editor from rest_after_insert_{$this->post_type} hook
- Best way to add more options to Gutenberg “More Rich” text controls drop down
- Fetch post block/field data as JSON with WordPress API
- Where to find documentation for CPT block template? (PHP)
- Generate YouTube image thumbnail in a Gutenberg block – ACF + Timber
- Insert custom PHP head above in WP pages
- Log in / Log Out Custom Button
- How to do a code in php and have text before it? [closed]
- PHP nested If statement syntax
- Display Data in Table from External Database in WP using Shortcodes
- How to Configure Events List in WordPress to Disappear Event Once Date is Past
- Multiple requests external data api dynamic block gutenberg
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Code snippet to show current php version inside “At a Glance” box in admin
- parsing nested blocks (in columns, etc) via PHP
- Passing the name of selected color from the custom component to `render_callback`
- InnerBlocks with allowedBlocks not working with acf_register_block
- Guttenburg and Classic Editor – How to use the custom guttenburg block in classic editor?
- How to render a block from php template
- Trying to display text in a block in a plugin page
- using wp enqueue style to create a CSS file specifically for a page template
- Accidentally deleted php code in WordPress website [closed]
- How to make blog post entries appear as input form instead of just text?
- random reason on refresh
- Insert PHP code in Text
- Want to unrestrict plugin block
- WordPress – Get Posts with Category data
- Add Block Before Entry Title Using PHP
- Counting number of posts in multiple (sub)categories using shortcode
- Need help for some PHP code
- How can I add diffrent editable text fields?
- How to populate a Gutenberg select field SelectControl with option value from PHP array
- Gutenberg Blocks and get_option() for styling
- How to extend SelectControl with data from my theme
- Woocommerce display orders with products from specific categories to specific admins
- Woocommerce template file outputting tags
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- Gutenberg block don’t save rich text content
- Trim Titles Only On Some Pages
- Is there a PHP function that will return the block ID generated by WordPress?
- register_block_type is not working properly
- How to put 2 php codes in functions.php without site crashing
- Categories does not show Block editor WordPress
- Block that renders html saved in a php file
- Show Gutenberg facebook embed with a custom theme
- Displaying SQL query result from user input via wpdb
- admin-ajax.php 400 bad request – whats wrong with my code?
- style.min.css code issue
- How to add text before posts
- Plugin PHP write permissions
- Blog only showing code
- Display pages from specific page template
- why is markup routinely placed in functions in wordpress?
- Themes with variable width or single columns? I want to display source code
- Open all external links in new window – need help with the code
- How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]
- Where to put include php file?
- Can you not edit the HTML and PHP of your WordPress without paying?
- Echo get_option displays as text
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- Dynamically added text at bottom of article – non searchable by PHP code
- Add default block css when the block has been added with php?
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- How to add different menu items on different menus?
- How to enable REST API on custom post type without Gutenberg?
- Replace block content with an array
- Include a static block inside of a dynamic block
- change div text and link for logged in users
- how to create twitter card without plugin in wordpress website?
- WordPress Block Editor Gutenberg running code inside ! is_admin()