Closed rmehta closed 5 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 ;-)
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!
+1
I have tried implementing both Trumbowyg and CkEditor, here's a list of pros and cons. Both lack features we want. Additions welcome.
Pros:
Cons:
contenteditable
like any other WYSIWYG editor out there, even summernote which is the source of all problems.Pros:
contenteditable
, hence it will render content the same on every browser.Cons:
I think we should also have a markdown edit mode like GitHub.
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.
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.
@pratu16x7 @netchampfaris do we have both implemented?
@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.
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.
Finally it was Quill 👍
https://alex-d.github.io/Trumbowyg/