Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(richtext-lexical): restore selection (#10129)
Fix #9964 Now we make sure that the node for the previous selection exists before restoring it to avoid a runtime error. I also optimized the performance of a function in the client feature. In the future, we should centralize the insertion of all decorator blocks in one place. There are several things to improve. For example, currently an additional paragraph is inserted (in addition to the one for the selection we delete).
G
Germán Jabloñski committed
154ad9d13229f5fa2866762e5c35bbab60cf4956
Parent: ed0d339
Committed by GitHub <noreply@github.com>
on 12/22/2024, 3:18:23 PM