You were very close. You just had a single-quote swapped with a double-quote after the onmouseover.
<figure class="wp-block-image">
<img src="https://website.com/wp-content/uploads/2019/08/image1.png" onmouseover="this.src="https://website.com//wp-content/uploads/2019/08/image2.png";" onmouseout="this.src="https://website.com/wp-content/uploads/2019/08/image1.png";" alt="alttext" class="wp-image-1111"/>
</figure>
I usually place semi-colons after the single-quotes to make it easier to tell when your quotes are balanced, whether Javascript requires it, or not.
Related Posts:
- Gutenberg block HTML image rendering override
- How to extend the gallery block in Gutenberg?
- Set default image link target in Gutenberg image block
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- get_post_gallery with Gutenberg
- How to include externally hosted images into a gallery block
- Adding HTML within an image title attribute
- Apply image width to tag
- alt, title tags not showing
- How to link Gutenberg Gallery images To Media file automatically?
- How to Add extra option to Image Block Settings?
- @wordpress/create-block image url in css
- How do I remove generated HTML around images in posts?
- How to remove buttons from gutenberg toolbar
- Extend core block attributes in post content
- Why html tags are being appended to my pictures?
- Gutenberg editor get post featured image by id
- hardcrop images in gutenberg “latest posts” block
- How to resolve – IE 6 ignores img “width” properties
- Bulk edit Gutenberg single images to change from linking to media file to attachment page
- How can I insert an image map into a WordPress blog post?
- Images will not display, when I call them up with html in wordpress, just two blank small spaces [closed]
- Prevent Image Pasting in RichText Component
- How to fix “.webp” being auto-added to the end of image urls
- Multiple amp-image overlays. How to properly do this in wordpress?
- Update an image block style programatically
- Changing default img html markup but not in admin back-end?
- Add width & height attributes to Gutenberg’s image output?
- update_post_meta attachment_image_alt description for Gutenberg
- Modifying the HTML Output of Inserted Images
- Rewrite inline image markup
- How to get the Gallery form/section just like in Gutenberg block?
- Is there a wordpress filter to edit the markup of inline images?
- How to upload and style svg logo?
- Weird failing request
- How can I check if the first block is an image aligned left or right?
- Not seeing text alignment option in Image block
- Can’t add image to site via php
- What exactly is the description field when uploading an image?
- HTML Img with data:image src gets sanitized in admin?
- Place image caption outside of figure tag (Gutenburg Image Markup)
- Change Image Size option in the settings in bulk
- How to disable a WP Image Block to link to itself?
- get_post_gallery with Gutenberg
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- Using srcsets in a custom block
- Landing Page with HTML CSS JS and Images on wordpress
- Rebuilding core image block
- A query to substitute images paths in gutenberg (website migration)?
- Convert multiple image blocks to gallery block in Gutenberg?
- get_post_gallery with Gutenberg
- How to link to img src using HTML email template in WordPress
- Relative path not working at all in WAMP local environment
- Display ajax preloader for large images within posts
- Garbled HTML pulled for page description “caption id=attachment…”
- Imagem resolution responsive
- Forcing absolute src links in the RSS feed
- where is images/image.jpg?
- Custom filename when pasting an image from clipboard
- Issues with the excerpt (wordcount/HTML/images)
- Parallax image problem
- Hover images and Videos
- Multisite image URLs incorrect in editor
- Placing a background image with text over it
- How do I delete all generated images from my server except those currently used in posts
- Why would image paths in wordpress suddenly change?
- Show prev and next post links for parent post of current image in attachment page?
- How to check if user is uploading/setting an image as a featured image?
- Force minimum image size and aspect ratio when uploading images
- Change align classes for images
- Ho to add “Create Slider” option to default “Add Media” popup?
- Upload Image using wp_insert_attachment and file url don’t have file extension
- Custom header tiling?
- Display an icon with get_post_meta?
- Include WooCommerce 2’s prettyphoto scripts on all site pages
- Where do I locate theme image files
- Random background image showing on website per click/load
- How to stop WordPress from completely overriding my tags in my templates?
- Image text wrap not working properly on frontend
- Fancybox just loading small white square
- Link to full-size image for subscriber only
- Custom image size with srcset
- How to get title of images in post content
- Upload error on localhost (at minimum, not yet tested online)
- Looking for Image Slider that is based on default WP Media Library
- Use wget to find used images
- Server peek by Own-IP-Calls?
- Reduce Mobile Image upload size (wordpress)
- Surround uploaded image link with div
- Check if post has image
- How do I mitigate the forward slash problem for URLs of images after a WP migration?
- WordPress file browser
- how do i update version for super skeleton
- How to import external media items into wordpress media library (without using storage)
- I am having trouble displaying an image at the top of a widget area [closed]
- How to return responsive images from a sanitize_callback?
- How to disable Right Click on a image? [closed]
- Can’t upload svg files in WordPress
- Images uploaded in customized gallery do not link to media
- WordPress Site Broken and it gives Headers Already sent error