Commit 1ef43eb
authored
feat(richtext-lexical): add view override system for custom node rendering (#14244)
Adds support for custom view maps that allow users to override how
Lexical nodes are rendered in the editor. This enables full control over
node presentation without modifying the underlying data structure or
node class.
1 parent 04163ea commit 1ef43eb
69 files changed
Lines changed: 4638 additions & 351 deletions
File tree
- .github/workflows
- docs/rich-text
- packages
- richtext-lexical
- src
- exports
- client
- react
- features
- blocks/client
- componentInline
- component
- nodes
- converters/lexicalToJSX
- Component
- converter
- debug/jsxConverter/client/plugin
- field
- lexical
- config
- client
- nodes
- plugins
- NodeViewOverridePlugin
- SlashMenu
- utilities
- validate
- ui/src/elements/withMergedProps
- test/lexical
- collections
- LexicalViewsFrontend
- LexicalViewsNested
- LexicalViewsProviderDefault
- LexicalViewsProviderFallback
- LexicalViewsProvider
- LexicalViews
- viewsJSXConverter
- client
- plugin
- server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
312 | 336 | | |
313 | 337 | | |
314 | 338 | | |
| |||
0 commit comments