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
- Convert formatted string to text
- How to format inline code blocks
- Add dollar sign to a number in filter?
- How to prettyprint a JSON file?
- Change date format in a Java string
- Expected RBRACE, but the bracket is there?
- How can I remove punctuation from input text in Java?
- std::string formatting like sprintf
- Convert java.util.Date to String
- How can I remove punctuation from input text in Java?
- How to print elements from array with javascript
- Format JavaScript date as yyyy-mm-dd
- How to format numbers as currency strings
- What does {0} mean when found in a string in C#?
- Double decimal formatting in Java
- How to print a number with commas as thousands separators in JavaScript
- Properly formatted multiplication table
- Easy pretty printing of floats?
- Convert a date format in PHP
- How to prettyprint a JSON file?
- VBA: Convert Text to Number
- How to format a string as a telephone number in C#
- (Excel) Conditional Formatting based on Adjacent Cell Value
- remove empty paragraphs from the_content?
- Keep HTML format when switching from Visual to HTML editor
- No filter of code on switch from html to visual editor, how?
- Why is wp_kses not keeping style attributes as expected?
- Nice way to print_r arrays
- remove tags from the_content
- Remove wpautop from shortcode content / remove whitespace in buffering
- New method to disable wpautop after WP 4.3?
- Stop editor from removing tags and replacing them with nbsp
- Completely strip any hidden formatting when pasting into TinyMCE
- How to automatically add paragraph tags in the Visual Editor
- Formatting Code Snippets on Free WordPress.com Account?
- disable WP automatically inserted line breaks after an image
- Remove wptexturize from a shortcode?
- Disable wpautop, keep line breaks
- How to enable wpautop for XMLRPC content
- Problem in wordpress with “-“
- Is there un-wp_autop function?
- Place page title in header?
- Automatically decrease font size for long words
- Issue with enabling formatting in excerpts in WordPress
- Create a formatted table-like menu
- Remove hidden formatting when user paste text from MS Word into TinyMCE
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- How to enable the tag in WordPress posts and pages
- Email sent from WordPress has HTML tags
- wp_editor not adding paragraphs despite wpautop being set to true
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- Add filter ‘wpautop’ to meta box textarea