Re:Slate – A completely customizable framework for building ...
by hartator on Thursday July 29, 2021 @04:56PM
(#28001393)
No image support? It’s the main thing that’s a pain in the ass to support.
[ Parent
| on HN ]
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.
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.
Re:Slate – A completely customizable framework for building ...
by topicseed on Thursday July 29, 2021 @05:34PM
(#28001777)
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.
Re:Slate – A completely customizable framework for building ...
by dylanks2 on Thursday July 29, 2021 @07:11PM
(#28002609)
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.