Lexical Version: 0.27.2
Behavior changed between: 0.21.0 → 0.22.0
Suspected cause: #6894
Steps To Reproduce
- Open: StackBlitz
- Notice the code block initially lacks syntax highlighting
- Edit the code block; syntax highlighting appears
- In
Editor.js, move <CodeHighlightPlugin /> above SyncValuePlugin
- Observe that syntax highlighting now works from the start
The expected behavior
I expected plugin order not to matter. It's unclear whether there's a problem with my SyncValuePlugin implementation or if this is an unintended regression. The issue began in 0.22.0 and may affect other node transformations. Would appreciate clarification on whether this is expected behavior or a bug.
Update: It also depends on the React version. It works as expected with React 19 (example), but not with React 18.2 (original report).
Lexical Version: 0.27.2
Behavior changed between: 0.21.0 → 0.22.0
Suspected cause: #6894
Steps To Reproduce
Editor.js, move<CodeHighlightPlugin />aboveSyncValuePluginThe expected behavior
I expected plugin order not to matter. It's unclear whether there's a problem with my
SyncValuePluginimplementation or if this is an unintended regression. The issue began in 0.22.0 and may affect other node transformations. Would appreciate clarification on whether this is expected behavior or a bug.Update: It also depends on the React version. It works as expected with React 19 (example), but not with React 18.2 (original report).