Unplanned
Last Updated: 10 Oct 2024 14:37 by Roshni
Roshni
Created on: 10 Oct 2024 14:37
Category: Editor
Type: Bug Report
2
The Editor's HTML markup inline CSS styles do not support semicolons (";") within CSS property values

If the editor's HTML markup contains inline CSS styles, and a CSS attribute value includes a semicolon (;), it breaks the applied styles and throws an exception.

For example:

<p style= "" ....background-image: url('data:image/png;base64...;""</p>

The exception is:

 

Uncaught TypeError: Cannot read properties of undefined (reading 'trim')

 

=== ADMIN EDIT ===

The issue can also occur when there is an invalid inline style with two semicolons without a complete style-value pair in-between.

For example:

<p style=""color:red; b ;"">sdf</p>

0 comments