facebook / facebook/lexical

Feature: Prevent a node from being exported to JSON

Open
#4,273 3 comments 3 reactions 0 assignees View on GitHub
enhancement serialization
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

I'd like to be able to prevent a custom node from being exported to JSON, similar to how a custom node can be prevented from exporting to HTML ([by setting element to null](https://lexical.dev/docs/concepts/serialization#lexical---html))

I've tried implementing my own custom serializer, but this doesn't feel good and will likely break as lexical continues to be developed.

Let me know if I am misunderstanding a better way to do this, thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.