Open ddurieux opened 2 years ago
@dcs-Easyware has code for use ckeditor instead quilljs
I took a look at the two main WYSIWYG text editors: TinyMCE and CKEditor.
TinyMCE | CKEditor | |
---|---|---|
Language | Typescript | Javascript |
Depencencies | no dependencies | lot of dependencies, but almost only to CKEditor packages |
Size (production) | 1,24 Mo Assets are built aside, so they can be cached easily |
1,10 Mo Assets are built in the main.js file, so we can't cache them |
Accessibility[^1][^2] | has a dedicated page | CKEditor 4 had a pretty complete page, but I couldn't find a similar page for CKEditor 5 :/ |
Premium features | ✔ It looks that more features must be paid than for CKEditor |
✔ |
Plugins | ✔ | ✔ |
Angular integration | ✔ | ✔ |
Documentation | ✔ | ✔ |
Additional comments | It looks (subjectively) better than CKEditor | The build system looks powerful but complex. The tables UX is pretty bad. It looks like the documentation of CKEditor 5 is less complete than the one of CKEditor 4. Also I couldn’t find an Add-ons list as for CKEditor 4. |
I also tried Trix which I wanted to use for a long time, but I think it lacks too many things (its main advantage is that it's very lightweight, 240 Ko).
Overall, I think TinyMCE is slightly better than CKEditor and I would go with it. The main issue of TinyMCE is that many features must be paid (see their list, only the core features are available in the open source version). In the mean time, we don't need a lot of features. The only features that we could miss is PowerPaste (Clean copy/paste functionality for Microsoft Word, Google Docs, Excel, and other popular tools) and maybe Real-time Collaboration (Let users collaboratively edit content in real-time)
[^1]: The shortcut to access the toolbar for both editors is alt+F10, but on Gnome this shortcut is already used to change the window size. [^2]: I had troubles with both editors with the screen reader Orca on Linux (e.g. the screen reader told me that the selection was deleted when toggling the bold status of the selection). I think it should work better with other screen readers though.
Quill is used to write html in user simple editor and display html text. There is a CVE on it, so for security, need to replace it before the release