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.

Command icon 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

deepaverma created an issue. See original summary.

deepaverma’s picture

StatusFileSize
new554 bytes

Created patch by updating code to replace image with web derivative rather than appending.

joshua.boltz’s picture

Status: Active » Needs review
StatusFileSize
new1 KB
joshua.boltz’s picture

I'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

shalini_jha made their first commit to this issue’s fork.

akshay.singh’s picture

Version: 2.0.0-beta1 » 2.0.1
StatusFileSize
new1 KB

I have refactored patch#3 according to new release https://www.drupal.org/project/webp_extras/releases/2.0.1