Live data from Hacker News

Slate – A completely customizable framework for building rich text editors

github.com

11–20 of 52 posts

Re: Slate – A completely customizable framework for building rich text editors

#11

Word of warning, their readme says 'Some of its APIs are not "finalized" and will have breaking changes over time as we discover better solutions.' I started using this library several years ago and have eventually had to rework it using prosemirror because I just couldn't keep up with the breaking changes. Both libraries work in very similar ways, with slate using React for its rendering layer. However Prosemirror h…

Same experience here. They changed APIs with no warning at version 0.46, breaking whatever spotty iOS/Android support they had. That’s not a knock against them: mobile contentEditable is terribly difficult to get right. But the surprise total deprecation of their stable branch was uncool to say the least, even if they did warn the software was beta. I heard Slate raised money to fix Android support, but whether or not that’s true, the whole thing was a really bad experience.

I also wholeheartedly recommend ProseMirror. It’s a bit complicated in some ways, but it works across platforms, is used in production widely at big companies despite sort of flying under the radar, and has been stable for years. If you’re looking for a fully baked React integration, TipTap[0] seems really nice, or if something minimalist then a plug for my own integration: use-prosemirror[1].

[0] https://www.tiptap.dev

[1] https://github.com/dminkovsky/use-prosemirror

Re: Slate – A completely customizable framework for building rich text editors

#12

Been looking for something like this but minus React for _ages_. I'd like our users to build their own RTE according to their needs, having a common data model on every one of them. Is there such a thing out there?

Have a look at ProseMirror, let us know if this seems like what you want! https://prosemirror.net/

Would second ProseMirror. It was powerful enough for me to build essentially a code editor: https://qworp.com/

Re: Slate – A completely customizable framework for building rich text editors

#13
post #4

No image support? It’s the main thing that’s a pain in the ass to support.

There are editors that handle images very well by default, like Quill or Trix. If you start diving deeper you’ll find out that image handling is just super complex and the behaviour is dependant on what you’re building. Then you’ll be happy to have full control about the behaviour with editors like Slate, ProseMirror or Tiptap.

Just wanted to note to those thinking of using it: beware of Quill. I used it for my project, but it was not made for saving and then displaying the rich text. At least for me, it was a hassle figuring out how to accomplish this.

Re: Slate – A completely customizable framework for building rich text editors

#14
post #4

No image support? It’s the main thing that’s a pain in the ass to support.

The basic package is bare though very much functional. The problem with whatabout's for such an editor is what do you put behind "image support"? Some would need uploads, others just links, then copy and pasting, alt, captions, styling, etc... Slate makes it easy to extend its core with custom blocks. Now, it's definitely some work but it's actually very intuitive to work with.

For those that want more on top of Slate, there's Plate (fka slate-plugins) which provides a lot of extras as a separate package.

https://plate.udecode.io/ https://github.com/udecode/slate-plugins

Similarly, there's slate-yjs for integration with yjs, and so forth.

Re: Slate – A completely customizable framework for building rich text editors

#15

Been looking for something like this but minus React for _ages_. I'd like our users to build their own RTE according to their needs, having a common data model on every one of them. Is there such a thing out there?

Quill is ok

Re: Slate – A completely customizable framework for building rich text editors

#18

Word of warning, their readme says 'Some of its APIs are not "finalized" and will have breaking changes over time as we discover better solutions.' I started using this library several years ago and have eventually had to rework it using prosemirror because I just couldn't keep up with the breaking changes. Both libraries work in very similar ways, with slate using React for its rendering layer. However Prosemirror h…

Same experience here. They changed APIs with no warning at version 0.46, breaking whatever spotty iOS/Android support they had. That’s not a knock against them: mobile contentEditable is terribly difficult to get right. But the surprise total deprecation of their stable branch was uncool to say the least, even if they did warn the software was beta. I heard Slate raised money to fix Android support, but whether or no…

Never seen tiptip before, looks pretty slick.

At work we need only the most basic customization (some inline spans for template vars) and we've cobbled together a Draft.JS implementation that's pretty buggy and has random runtime errors (unhandled nulls internal to the Draft.JS code).

Re: Slate – A completely customizable framework for building rich text editors

#19
The recent changes to the API in 0.50 look good. The number of iteration passes really shows. Out of the available open source editor frameworks, Slate is probably most similar to Notion’s internal editor system. If I had to rebuild on a framework tomorrow, it’d be Slate or ProseMirror. Still if I used Slate it would be with the expectation that I’d end up owning an aging fork of a forgotten version at some point.

Re: Slate – A completely customizable framework for building rich text editors

#20

Word of warning, their readme says 'Some of its APIs are not "finalized" and will have breaking changes over time as we discover better solutions.' I started using this library several years ago and have eventually had to rework it using prosemirror because I just couldn't keep up with the breaking changes. Both libraries work in very similar ways, with slate using React for its rendering layer. However Prosemirror h…

Same, I switched after a long stretch in 2020 where Slate bug fix PRs stagnated. I find the ProseMirror API less intuitive but overall it has fewer bugs and I have been able to customize it pretty heavily.
Post reply on HN