-
Now that the implementation of #7289 is closer, I wanted to open a final discussion of using Trix or not. Trix is great as it provides a good editor out of the box, abstracts content handling, attachments, etc... but it comes with some limitations - I want us all to reflect on if these limitations are important for Decidim or not. I have been receiving, or suffering :D, the feedback from a client who needs some basic editing with a Trix and he is very frustrated, and I can see why. I'm afraid that using Trix will impose some limitations for admins (for users in the public spaces, I feel it won't be a problem). To sum up: Limitations(some things may be achieved with custom development, I'm talking about defaults)
Also, I have informally talked with a couple of Decidim admins about Trix and after a quick test they think it's not a substantial improvement over what we already have. I acknowledge that having the perfect editor is not possible. But maybe it makes sense to define the requirements we'd like? Requirements(@decidim/product feel free to edit this list - this is intended only as a starting point)
Nice to haves
Posible alternatives
Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 15 replies
-
As mentioned in #7289 (comment), uploading from the local machine to Decidim by drag&drop has been solved for Quill in an external module: https://github.com/Platoniq/decidim-module-decidim_awesome/ I opened a issue some months ago to migrate to Trix to be able to use the drag&drop feature and upload attachments, but a lot has rained since and I was not aware of the possibility to have the feature using Quill. So maybe there's no real need to move away from Quill? |
Beta Was this translation helpful? Give feedback.
-
I'd add as important :
Less important :
Thanks for opening up the debate :) |
Beta Was this translation helpful? Give feedback.
-
An easy way to add images in a rich text editor is a must for any system that handles content. This has been a constant issue. Looking at all the issues brought up regarding Trix, I am starting to switch my opinion whether it would be a good choice. What I would see important from technical perspective:
+ Everything @virgile-dev has pointed out above, it's a good list of the recurring problems with Quill.js (by the way, bullets indentation is possible with Quill but not in an accessible and standards compliant way). |
Beta Was this translation helpful? Give feedback.
-
I've collected some info for easier comparison from the discussion so far. Feel free to incorporate in the beginning of this discussion.
✔️ = Available |
Beta Was this translation helpful? Give feedback.
-
Hi, maybe it's too early to say it, but based on this thread we should start thinking about a replacement for Quill. 😟 |
Beta Was this translation helpful? Give feedback.
-
As an update also to this thread, after all we decided to go with TipTap (see #10082). TipTap seemed to be the most flexible option we have right now. It is a "headless" editor which means it only controls the editable area (based on ProseMirror) and provides us nice a programming API to work with the editable area. Using this API, we've implemented our own user interface which integrates nicely with Decidim. TipTap doesn't seem to have any limitations in regards of what we can do with the editor. It provides most of what we need already as official extensions and the rest we could implement through our own extensions. The integration was much more work than integrating a simple drop-in editor, such as Quill, CKEditor, TinyMCE, etc. But this approach gives us almost unlimited possibilities to extend and customize the editor just as we wish for the context where we use it. The only "odd" thing that we found out during the implementation was that TipTap adds extra paragraphs to list elements, i.e. Also to note for the future that we are aware that TipTap is relatively new and right now the v2 we are using is still in beta. The same might happen to it as happened to Quill but we should be fine living with it at least for the foreseeable future, i.e. at least as long as we lived with Quill. The implementation is ready for testing (see #10082 and #10196). |
Beta Was this translation helpful? Give feedback.
As an update also to this thread, after all we decided to go with TipTap (see #10082).
TipTap seemed to be the most flexible option we have right now. It is a "headless" editor which means it only controls the editable area (based on ProseMirror) and provides us nice a programming API to work with the editable area. Using this API, we've implemented our own user interface which integrates nicely with Decidim.
TipTap doesn't seem to have any limitations in regards of what we can do with the editor. It provides most of what we need already as official extensions and the rest we could implement through our own extensions. The integration was much more work than integrating a simple drop-in e…