Skip to content

Custom Editor Components - content inside is removed unexpectedly #591

@AntoineBx

Description

@AntoineBx

Hello kyoshino,

i recently tried to implement Custom Editor Components. I first had a hard time getting the exemple on the doc to work correctly. Turn out this, for exemple id="(:<id>.*?) is not valid because of the ":" . For a name capture group i think we need to use "?" instead so this id="(?<id>.*?) with this change the exemples worked.

Now i still have issues with saving the page return undefined when page in not closing automaticaly on saving.

Enregistrement.de.l.ecran.2026-01-06.124448.mp4

Second problem is weirder and less predictable : here is a video

Enregistrement.de.l.ecran.2026-01-06.124844.mp4

as you can see when you put the component in another line in the lexical, it sometimes remove all data inside. And i don't know why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions