Problem/Motivation
Images inserted into Editor via "Insert Image via URL" are misplaced during webp conversion filter
Steps to reproduce
- Enable Web extra filter in Rich text editor configuration
- Add Content having Rich text field like Article/Basic Page
- Enter content in the Editor field
- Then add an image using "Insert Image via URL" tool button
- Again add content in the editor after the image
- Visit the page and check the image is placed at the end of content rather than its position.
Proposed resolution
Create a patch to update code which will replace the Image with webp rather than appending.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | webp_image_replace-3457176-6.patch | 1 KB | akshay.singh |
| #3 | 3457176-webp-image-replace.patch | 1 KB | joshua.boltz |
| #2 | 3457176-1-webp-image-replace.patch | 554 bytes | deepaverma |
Issue fork webp_extras-3457176
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
deepaverma commentedCreated patch by updating code to replace image with web derivative rather than appending.
Comment #3
joshua.boltz commentedComment #4
joshua.boltz commentedI've attached a new patch that would not apply for me.
This patch applies when using the patch from https://www.drupal.org/project/webp_extras/issues/3476508
Comment #6
akshay.singh commentedI have refactored patch#3 according to new release https://www.drupal.org/project/webp_extras/releases/2.0.1