Problem/Motivation

If a text format allows having <img> tags but only with specific attributes (like <img src width height alt>), Insert module throws a dialog saying The selected text format will not allow it to display images. The text format will need to be changed for this image to display properly when saved.

Proposed resolution

Remove the closing angle bracket in ImageInserter.js (ie. don't look for <img> but only <img).

Remaining tasks

Implement, patch, test, commit.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

Boobaa created an issue. See original summary.

  • Snater committed e57ae2f on 8.x-1.x
    Issue #2901910: Allow having <img attributes> in text formats
    

Snater credited Snater.

snater’s picture

Status: Active » Fixed

Fixed in dev release.

snater’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.