Skip to content

wysiwyg is destroying inline styles #5811

Closed
@krejcif

Description

@krejcif

Preconditions

  1. M2.1 CE & EE

Steps to reproduce

  1. Create CMS block or CMS page
  2. Disable Editor
  3. Insert content
<div style="background:url({{media url="whatever.jpg"}})">
&nbsp;
</div>
  1. Enable editor

Expected result

<div style="background: url('{{media url="whatever.jpg"}}');">&nbsp;</div>

Actual result

  1. <div style="background: url('{{media url=;">&nbsp;</div>
  2. It can destroy look of all page in some conditions

Note

If you use this HTML code in one row, it wont be damaged by editor validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions