top | item 31023084

(no title)

shubham_sinha | 3 years ago

How hard it’ll be to build a notion like UX using lexical ? Have been using editorjs for same

discuss

order

porker|3 years ago

I'd like to hear anyone else's experience of building a Notion like editor (or any other block based/full page editor)

Something guides never cover and I am stuck on is how to let users drop "widgets" into these RTEs. Think photos and galleries, where what is displayed in the editor is not what is present in the output (the real output could be 1+ React tags with attributes set) ; tables where the edit view is a spreadsheet & so on.

When I try to build these I get stuck between the representation in the RTE, the final output, and the "edit mode" in the RTE which may be in its own window.

zurfyx|3 years ago

Running your own editor with built-in plugins does not take more than a few lines of code - see the playground code https://github.com/facebook/lexical/blob/main/packages/lexic...

We already provide most common plugins out of the box (inc. lists and tables) but if you're planning to build a feature rich interface with many custom plugins it may take somewhat longer.