Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Editor's HTML markup inline CSS styles do not support semicolons (";") within CSS property values #4439

Open
yanmariomenev opened this issue Oct 18, 2024 · 0 comments

Comments

@yanmariomenev
Copy link
Contributor

yanmariomenev commented Oct 18, 2024

Related to private issue

Description

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...;""

Currently, semicolons are only accepted as separators between CSS style attributes, and they are not supported within the value of a CSS property.

The bug is in the common package that we inherit from the kendo-editor-common repo.

Steps To Reproduce

https://stackblitz.com/edit/angular-i2nq1a?file=src%2Fapp%2Fapp.component.ts

Actual Behavior

When inline CSS contains a semicolon (;) within a value (e.g.,

), the Kendo Editor fails to parse it correctly, breaking styles and throwing an exception.

Expected Behavior

The editor should consider semicolons in CSS values as part of the value instead of as separators. It should apply the styles correctly and handle any invalid CSS smoothly by giving a clear error message while keeping the content intact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant