facebook / facebook/lexical

Feature: Isolated decorator nodes.

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

Description

I moved from prosemirror and thought the concept of isolating nodes would be useful.

For example I have a video decorator node, and it would be nice this node won't be deleted by backspace. Because the video might be playing while I am editing.

Or is it possible we achieve this thru some plugins?

The original prosemirror isolating definition.
[isolating](https://prosemirror.net/docs/ref/#model.NodeSpec.isolating)⁠?: [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
When enabled (default is false), the sides of nodes of this type count as boundaries that regular editing operations, like backspacing or lifting, won't cross. An example of a node that should probably have this enabled is a table cell.

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.