News for hackers. Stuff that matters.
Re:Slate – A completely customizable framework for building ... by hanspagel on Thursday July 29, 2021 @05:00PM (#28001446)
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.

Re:Slate – A completely customizable framework for building ... by motives on Thursday July 29, 2021 @05:06PM (#28001513)
The customisability is definitely a plus, you can make slate fit in perfectly with almost any UI. Whilst you don't get complex image handling by default, I think their image handling example [0] is a really nice minimal implementation which is quite intuitive.

[0] - https://www.slatejs.org/examples/images

Re:Slate – A completely customizable framework for building ... by TheRealNGenius on Thursday July 29, 2021 @06:20PM (#28002184)
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 ... by HatchedLake721 on Thursday July 29, 2021 @09:34PM (#28003511)
I’ve started using quill recently (for users to write, save and then display). I’m just rendering the saved structure and disable the editor parts for “display”. I’m happy with it
Re:Slate – A completely customizable framework for building ... by TheRealNGenius on Saturday July 31, 2021 @04:34PM (#28021334)
That is not how anyone would reasonably expect to be able to display rich text.