codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.77k stars 2.09k forks source link

Some great improvements #795

Open nitishk72 opened 5 years ago

nitishk72 commented 5 years ago

I love this editor a lot. I love it some much that I can't express. I try to understand this editor code and do some improvement. It was very much difficult for me to understand all these code. So, I'm opening this issue to give some suggestions based on my experience which will make this editor great.

Suggestion

This idea is inspired from Medium. They send number value instead of paragraph , list header etc. This will decrease data sharing between client and server. If we parse paragrah to paragraph tag or if we do this some arbitrary number, it's same.

If you will make this feature as an option then that will be also great. So, when we want data as text or number, we can decide and get that.

Example: we wrote an article we saved that, after sometime we again went to the article and we added one line to the end of the article then medium will only send one line of data with the line number. I am not saying you do exactly same but we can give both the data. Developer will decide which data they want to send.

If this feature will be in core of editor then it will be really great.

These are just suggestions, which can make it one of the greatest editor in the world. I'm also js developer I'm ready to work with all these features. I can't work alone because I don't know how this project work and I will need lots of time to understand the complete editor.

Thanks

neSpecc commented 5 years ago

Thanks, @nitishk72. Good ideas.

About №1 suggestion. What's purpose of using numbers instead of keys? Only saving a few bytes of data in external JSON? What if you change an order of plugins in your config, and numbers will lose the relevance.

We are really appreciate collaborations. You can join our Telegram chat for Editor.js Core contributors or Gitter channel to discuss a work.