frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
19.98k stars 7.02k forks source link

Summernote sucks, replace with Trumbowyg #13361

Closed rmehta closed 5 years ago

rmehta commented 6 years ago

https://alex-d.github.io/Trumbowyg/

joolsr commented 6 years ago

What's wrong with Summernote out of interest? Just interested in what you consider its faults are. Also it wasn't so long back that Summernote replaced the previous editor .. But good to see improvements continuing ;-)

dottenbr commented 6 years ago

Summernote creates extremely messy HTML which is made worse by some specific code in Frappe which replaces <p> with <div>. I played around with Trumbowyg and it seems to create pretty clean code so yea, all for it!

giuseppelamatrice commented 6 years ago

+1

netchampfaris commented 6 years ago

https://github.com/frappe/frappe/pull/5562

netchampfaris commented 6 years ago

I have tried implementing both Trumbowyg and CkEditor, here's a list of pros and cons. Both lack features we want. Additions welcome.

Trumbowyg:

Pros:

Cons:


CkEditor:

Pros:

Cons:

netchampfaris commented 6 years ago

I think we should also have a markdown edit mode like GitHub.

pratu16x7 commented 6 years ago

I have tried the Trumbowyg replacement, it's working is similar to Summernote being built upon contentEditable as @netchampfaris pointed out.

The fact that it certainly is less painful can be attributed to its simplicity, but that is accounted for by its lack of features (beware, nearly every level 2 feature, even fonts, tables, and emoji) that will all need plugins.

2018-05-17 13 36 04

Haven't tried CKEditor, but based on the pros and cons listed, although it isn't an improvement on the above, it is a winner in being browser agnostic.

rmehta commented 6 years ago

@pratu16x7 @netchampfaris do we have both implemented?

netchampfaris commented 6 years ago

@rmehta Yes, but not merged yet. Also, I have closed my PR for now because webforms still treat the TextEditor separately, so I think we should wait for the new Webforms to get merged before implementing any of the two editors.

rmehta commented 6 years ago

The reason we need more communication 😉

Sent from phone

On 17-May-2018, at 6:44 PM, Faris Ansari notifications@github.com wrote:

@rmehta Yes, but not merged yet. Also, I have closed my PR for now because webforms still treat the TextEditor separately, so I think we should wait for the new Webforms to get merged before implementing any of the two editors.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

rmehta commented 5 years ago

Finally it was Quill 👍