Re:Slate JS – A customizable framework for building rich tex...
by ergo14 on Thursday November 15, 2018 @05:11AM
(#18458172)
"Built on top of react", sorry at least for now it is too big of a dependency for most projects that are not react based. IMO that disqualifies it from being "framework for building rich text editors".
[ Parent
| on HN ]
Re:Slate JS – A customizable framework for building rich tex...
by migueloller on Thursday November 15, 2018 @08:50AM
(#18459181)
The core actually doesn’t rely on React at all, allowing interop with any front-end framework, or even vanilla JS. The current plugins provided officially are React plugins, but other plugins can be built for Vue, Angular, etc.
Re:Slate JS – A customizable framework for building rich tex...
by ergo14 on Thursday November 15, 2018 @09:29AM
(#18459444)
I opened package.json I can see:
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-emotion": "^9.2.4",
"react-hot-loader": "^3.1.3",
"react-portal": "^4.1.5",
"react-router-dom": "^4.3.1",
"react-values": "^0.3.0",
Looks like it requires react+vdom to me to be functional,
Core has a peer dependency on react too.
Re:Slate JS – A customizable framework for building rich tex...
by migueloller on Thursday November 15, 2018 @10:19AM
(#18459877)
It does at the moment based on the manifest, but after exploring the source, it's clear that this can easily be changed.
Re:Slate JS – A customizable framework for building rich tex...
by wiktor_walc on Friday November 16, 2018 @01:29AM
(#18466906)
If you are looking for a completely framework-agnostic rich text editor, then check CKEditor 5 (https://ckeditor.com/ckeditor-5/). It comes with it's own UI library which you can swap freely with any other UI thanks a to highly decoupled architecture.
Re:Slate JS – A customizable framework for building rich tex...
by sbr464 on Thursday November 15, 2018 @05:17AM
(#18458190)
Which framework (or non) are you using, if not react? Just curious, or what would be a better (web related) base?
Re:Slate JS – A customizable framework for building rich tex...
by ergo14 on Thursday November 15, 2018 @05:55AM
(#18458344)
"Better" is a subjective thing. Currently I use lit-element base class for web components, but I plan to try stencil and vue to see how it feels like. At work we also use react for some projects.
Re:Slate JS – A customizable framework for building rich tex...
by sbr464 on Thursday November 15, 2018 @06:15AM
(#18458412)
I agree, thanks for sharing notes.