Hacker News new | past | comments | ask | show | jobs | submit login

"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".



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.


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.


It does at the moment based on the manifest, but after exploring the source, it's clear that this can easily be changed.


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.


Which framework (or non) are you using, if not react? Just curious, or what would be a better (web related) base?


"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.


I agree, thanks for sharing notes.


Oh, thanks for pointing that out, I totally missed it. I use VueJS, so this would be a pass from me.


I think prosemirror is a good option here, it is framework agnostic solution from codemirror author (I did not use it personally yet).




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: