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?
- is_admin returning false in backend in server side rendered block
- 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
- Display only text to WordPress loop without loosing the text formatting
- 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
- 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?
- Simple Plugin with custom javascript wont work – no console error
- Hide wordpress field if data is empty in post!
- Latest post in a specific menu
- Cause of Blank Lines Being Added to WP FIles?
- How to save checkbox values for logged in users?
- How to programmatically add Gallery Block to Existing Post Content
- Gutenberg block – Save PHP function’s output as HTML?
- Generate YouTube image thumbnail in a Gutenberg block – ACF + Timber
- Add class to group inner container
- Log in / Log Out Custom Button
- PHP nested If statement syntax
- Adding a line of text to php code
- 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
- InnerBlocks with allowedBlocks not working with acf_register_block
- Fatal error: Uncaught Error: Call to undefined function get_header() [closed]
- 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
- PHP code snippet to remove microdata
- Want to unrestrict plugin block
- Additional file upload in Gutenberg page options/featured image
- 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
- 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
- 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
- how to run a php code in widget?
- Plugin PHP write permissions
- how to add number value in front for variable [closed]
- 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
- 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
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- Manipulating the allowed inner blocks of a core-gutenberg-block?
- Adding features to Gutenberg without theme.json
- Get column block count using PHP method render_block
- do_blocks not working with a custom block
- How to edit templates created in the block editor in code / template files not updating
- Programmatically convert single classic block to individual blocks via PHP
- Add custom data attribute to every core Gutenberg Blocks
- Embed dynamic media query in a Gutenberg block
- Get generated block styles programmatically
- When a foreach loop is used multiple times in blocks, is there a way to ensure a variable always has a unique value?
- How to get the post title inside a custom block in a loop? block.js
- How to display only the first 2 words of a post title
- How to get the content of a dynamic block in PHP
- Set custom post type to load custom block pattern by default