Skip to main content
Question

Why doesn't Figma use Lexical instead of draft-js for comments?

  • November 12, 2024
  • 1 reply
  • 29 views

zhe-he

I found that when adding comments in the canvas by looking at the DOM structure, the input box structure is the same as draft-js. However, draft-js has been archived and is no longer maintained for two years. Why not replace it? I’m curious if there is a reason?

1 reply

Mike_Taku
  • 25 replies
  • November 12, 2024

Even though Draft.js is no longer maintained, many teams still use it because switching editors can be complex and risky. Replacing Draft.js often means reworking code that’s deeply integrated, which may not seem worthwhile if the editor is still working well.

Draft.js also offers flexibility that some alternatives lack, making it challenging for projects with custom needs to find a good replacement. For those considering a switch, libraries like Slate and TipTap offer modern features and good support for rich text editing in React.

Thank You,
Mike Taku.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings