Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292158

[drupalImage] Some Image attributes are lost in edge cases where image upcasts into inline image

$
0
0

Problem/Motivation

Inline images have a different set of allowed attributes compared to block images. It seems like there are some cases where an image could accidentally convert into an inline image on upcast, leading into attributes being removed.

Steps to reproduce

  1. Ensure that <div> is not allowed, but images are allowed, including captioning and aligning.
  2. Create following markup: <div><img data-caption data-align></div>
  3. This will be converted into <p><img data-caption data-align></p> (which consecutively converts to
    )
  4. Downcast the model again and see that data-caption and data-align disappear 💥

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 292158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>