I think that clipboard.js is your best bet to what you’re looking for.
Install that script, then just change your img to
<img src="https://wordpress.stackexchange.com/questions/328613/..." data-clipboard-text="https://wordpress.stackexchange.com/questions/328613/...">
And you should be good to go.
Related Posts:
- How to auto-format code in Eclipse?
- Adding spaces in multiple lines simultaneously – in Pycharm
- Switch between Visual and HTML tab freely
- can I add a custom format to the format option in the text panel?
- Change CSS/formatting on specific page, but not pages in general?
- How to change text size of Gutenberg editor
- Content over 10,000 characters won’t display with the_content()
- How to prevent automatic conversion of dashes to –
- Shortcode from a widget is wrapped in unwanted element
- Add dollar sign and commas to a number?
- Why does WP not like my container?
- Line breaks not showing up properly
- Use a language specific thousand separator
- Comment formatting with comment_content
- Formating the display of a post’s date, outside the Loop
- Formatting with
- Selectively remove empty line after line change
- How to define a custom font family for a wordpress blog that will not affect the entire site
- Keep formatting for tables copied from MS Word?
- Page formatting lost when I attempt a revision
- How to properly format if statement with html and php
- How can I prevent WordPress to wrap into a paragragraph
- Linebreaks behaving oddly inside blockquotes
- post_class() breaks out of formatting. . . extra markup also generated
- How to Prevent WordPress from Automatically Applying Inline Styles to Post Images?
- How do I format the date in Event Organizer?
- TinyMCE – no auto formatting using the_editor()?
- Formatting poetry in wordpress
- Trim content without stripping formatting
- Changing the code format for wordpress
- How to remove filter apostrophe and single quotation
- Display KML (or other “raw data” file) nicely in WP?
- why doesnt my formatting work in my wisiwig editor?
- Formatting issues within Divi theme
- Preparing Hardcopy and Online Page
- Understanding automatic text formatting in the WordPress editor
- how to display the web content which contain html code prolerly?
- Remove all paragraph tags
- How to prevent wordpress from autoformatting my posts once and for all?
- How do I display page content next to a contact form, rather than under it?
- Multiple item layout with one query
- Fix issue with displaced braces( )
- Formatting text in posts
- Is there a way to reorder a collection of posts to read from top (oldest) to bottom (newest)?
- How to add a spoiler without using shortcode-based plugins [closed]
- Can’t get blog entry to format properly using wp-load
- Paste Function Broken
- Moving formatted data in Salesforce rich text field into WordPress
- Change date format in a Java string
- How can I remove punctuation from input text in Java?
- Format JavaScript date as yyyy-mm-dd
- Easy pretty printing of floats?
- Keep HTML format when switching from Visual to HTML editor
- remove tags from the_content
- disable WP automatically inserted line breaks after an image
- Disable wpautop, keep line breaks
- Create a formatted table-like menu
- Updating to Version 4.5 bumped my “main sidebar” widget out of place
- WordPress adding tags into plugin content
- Automatically added brs and paragraphs?
- WooCommerce Description and Short Description tags removal
- PHP library that can merge stylesheet with inline style [closed]
- WordPress | Convert #038; to &
- Raw output (preventing wpautop)
- How do I disable wpautop for a specific block?
- How to Include HTML in Excerpts?
- Disable formatting on textarea
- Crafting WP_Query array, sort by date
- Format the Layout of Images In The Edit Post Textarea?
- Force Balance Tags not working
- Remove add to cart icon/view product button woocommerce
- wpautop is not working when displaying content saved using wp_editor in a custom meta box
- Need to add trailing slash to all internal links relative and absolute
- Disable TinyMCE Table formatting width/height
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- Make WP not format code, not insert line breaks in between tags
- How can I remove line breaks from manually formatted HTML?
- return unformatted content in encosing shortcode
- Space Not Being Generated in HTML Output?
- How to amend time format of comments, using child-theme?
- Multiple Rows in a using wp_query
- HTML tables in content areas
- Function sanitize_title() does not appear to be working
- Calling PHP Titles inside Javascript Markup
- Is it a good practice to disable wpautop for premium themes?
- WP Editor: Keep Bold, Underline, etc. but ignore color
- If is_single in functions.php
- Cannot stop wpautop from messing up my plug-in output
- Style wordpress image captions in RSS
- CSS appears to not work on any WordPress theme
- get_the_term_list( get_the_ID() label formatting?
- Changing Date Format on Custom Meta Data w/shortcode call
- Object of class WP_Error could not be converted to string in /formatting.php
- Let custom text widget use the same font as the theme
- Theme does not respect spaces between paragraphs in pages
- ACF Shortcode bringing in my shortcode is adding unnecessary line breaks
- Add Default WordPress Formatting To Data From External SQL Tables?
- How to display html code normally?
- How to show only text from post in WordPress
- Adding padding above menu