Giter VIP home page Giter VIP logo

Comments (2)

michelson avatar michelson commented on May 28, 2024 6

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.

imerkle avatar imerkle commented on May 28, 2024 1

I think Dante2 is much better

from dante2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.