Skip to content

[5.x]: zero width non-joiner stripped out rich text fields causing unwanted ligatures #537

@low

Description

@low

What happened?

Description

It seems rich text fields like CKEditor strip out some invisible but necessary characters in some languages like Persian/Farsi.

Steps to reproduce

  1. In a rich text field, paste this text: می‌شویم
  2. Hit save. Now the text shows as میشویم

Expected behavior

I would expect the text to remain as می‌شویم

Actual behavior

The zero with non-joiner in the middle of those characters is stripped out, causing unwanted ligatures.

Craft CMS version

5 and 4

PHP version

8.1+

Operating system and version

No response

Database type and version

MySQL 8.1

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions