#28182·directus

Tiptap WYSIWYG editor choking on whitespaces or other harmless chars

Author: UP-MDKCreated Sep 2, 2026Updated Sep 16, 2026
LabelsBugStudioCRUD

Describe the Bug

Image

The error message in the screenshot is appearing after every copy + paste from Figma and when manually entering double whitespace. The other problem is, that said error is not appearing on save. It is just silently accepting the content and then showing the broken state aferwards, for recovery. All of these harmless characters are not caught during validation, which is ok, if they were recognized as allowed, but when they are not, it is just stacking one bug over another...

The current workaround is to "select all + cut + paste". That is somehow triggering a different cleanup, than what is triggered when copying from Figma, which i fail to understand why that would ever be the case.

Anyway, our editors are regularily reporting this issue and we're currently considering downgrading.

We just upgraded from v12.2.0 and i was hoping to catch a fix for that, but apperently it's still in there and i am not sure, if it is just for us, or for everyone.

To Reproduce

  • Copy text from Figma
  • Paste it into any WYSIWYG field
  • Save
  • Reopen the previously saved item

Directus Version

v12.3.1

Hosting Strategy

Self-Hosted (Docker Image)

Database

Postgres 17