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
- Expected RBRACE, but the bracket is there?
- std::string formatting like sprintf
- Convert java.util.Date to String
- How to format numbers as currency strings
- Properly formatted multiplication table
- How to format a string as a telephone number in C#
- remove empty paragraphs from the_content?
- No filter of code on switch from html to visual editor, how?
- New method to disable wpautop after WP 4.3?
- Stop editor from removing tags and replacing them with nbsp
- How to automatically add paragraph tags in the Visual Editor
- Formatting Code Snippets on Free WordPress.com Account?
- Remove hidden formatting when user paste text from MS Word into TinyMCE
- How to enable the tag in WordPress posts and pages
- wp_editor not adding paragraphs despite wpautop being set to true
- Add filter ‘wpautop’ to meta box textarea
- Preserve white-space in Page
- Formatting post content to exclude gallery
- Lost formatting after saving
- Keep pasted pre formatted code as it is -with tabs- in visual editor
- Is there a way to disable formatting shortcuts in 4.3?
- Get last seen date/time in wordpress get_comments() [closed]
- WordPress editor strips out anchor tags when they appear on their own line
- $content = $post->post_content; with formating
- How to center oEmbedded content
- What are the “U” and “G” time formats?
- Unwanted line break before
- Extra paragraph tags in an enclosing shortcode
- tag breaks shortcode output (other solutions don’t work)
- Modify Gallery Output to render differently on a PAGE and a POST
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- get wpautop to not wrap tags but only text
- edit formatting.php in a theme so it wont get overwritten
- How do you edit the html of teaser excerpts
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- WordPress remove filter wpautop not working
- remove and then add wpautop
- Removing Line Break Tags from a Page
- Graphics and Formatting Not Loading in WordPress on IIS
- Formatting a date/time returned from a custom $wpdb query
- Problem with -> in pre tags
- How to do store, retrieve and write attributes in the registerFormatType method in Guttenberg?
- Problems with cart and pages on _s theme
- Page takes on two different formats
- What’s the best way to trim content from WYSIWYG editor?
- What could interfere with changing iframe contents with href?
- How do I format my custom html so wpautop won’t try to reformat it?
- Remove some tags from shortcodes output? Trying to fix autop
- Add HTML to Page Content
- Adding to he format dropdown menu tinyMCE in WordPress
- Removing Author name
- Stripping wp_link_pages?