U4-10115 - Unable to add class to img tag in rte

Created by Craig Stevens 05 Jul 2017, 13:54:17 Updated by Craig Stevens 05 Jul 2017, 13:54:17

Umb 7.5.11

What did you do? Created a style in the Settings section for the RTE. The class was img.image-left and then in the RTE selected the image and applied the Image Left format from the Format dropdown.

What did you expect to happen? Expected the img tag to have 'class="image-left"' added to it.

What actually happened? Nothing

If I create the class is just .image-left, then the img tag is surrounded by a span with 'class="image-left"' in it. I was expecting the same behaviour as exhibited with 'p' and 'h' whereby if you define your class as p.something you get class="something" added to your 'p' if you apply the appropriate Format dropdown selection.

Comments

Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.5.11

Due in version:

Sprint:

Story Points:

Cycle: