Comments (2)
Hi @dsslimshaddy. Well, you will have to do your own math here to make a decision. I think medium-editor is a very complete solution. but has nothing that dante2 already does, maybe it has more configurable options 🗡️
some strong points on medium-editor:
- It has no dependences, so is a light library
- Clean and well documented
- Has been adopted by many people, so you have community plugins
some cons on medium-editor:
- It's not really a medium editor it just differs a lot of what medium editor is
- The base library has not all the features of medium so you will have to use community plugins to get close to what medium really does (that's why i've decided to build dante1)
- It has a poor history handler
- It handles DOM instead of data
I think that the fact Medium-editor handles DOM instead of an abstraction of it's data is the most important factor to make a decision, because at least how the editor looks and behaves are fixable things, but here is the thing:
If your editor handles DOM, and all you ingest in your database is DOM you will get into trouble very soon. If you want to update the structural HTML of your users posts you will have to parse->modify->save
each article in your database. If you got hundreds or thousands articles in your database this will be a pain in the ass.
This is a problem I've faced with Dante-1 and is a no-go for me, that's why I've chosen Draft-js to build Dante-2.
With Draft-js you save data, no html elements, so you could update how the article looks without touching/parsing/saving the database. You only adjust the components that will display the content and voilá.
Draft-js provides a EditorState
structure which is a representation model of your content , instead of handle DOM. So at a text selection/range you operate from DraftJs API, not DOM. Also this EditorState
provides a transparent history, so undo/redo and multiple versions just works, for free.
An last but no least, when you build a plugin on Dante-2 you work with React-Js which is awesome.
the ball is in your court now, do you shopping and tell us what you think.
happy '17
from dante2.
I think Dante2 is much better
from dante2.
Related Issues (20)
- How to upload images HOT 1
- Images not displayed HOT 12
- Dante Editor not rendering content HOT 3
- onChange not being triggered HOT 1
- title placeholder does not show in editor
- How to add another side button without forking the library ? HOT 3
- issues with save_handler and immutability when trying to update entries HOT 4
- onChange not work! HOT 2
- Tooltip link option doesn't show text HOT 1
- Tooltip link assumes base URL HOT 1
- Medium (+) tooltip on mobile left property not set correctly.
- Can't run app locally. npm start unexpected error HOT 1
- Delete at mobile browser
- use Focus at Dante
- Error: Element ref was specified as a string (image_popover) but no owner was set. HOT 10
- how to limit content ?
- DanteInlineTooltipConfig path is missing HOT 1
- Element ref was specified as a string (editor) but no owner was set. HOT 1
- How to use convertFromHTML
- new Dante version, repo changed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dante2.