3 ms·
While I agree we (as in the internet at large) haven't solved the text editor problem, by saying "web components have failed" you're concluding in bad faith. I
by zemptime 7y ago
While I agree we (as in the internet at large) haven't solved the text editor problem, by saying "web components have failed" you're concluding in bad faith.
If such a "universal rich text edit" web component comes out, have web components then succeeded? Then failure isn't such a permanent state as your comment implies, rather an indication of work yet to be done.
Unless you'd like to clarify more, your comment seems to me like you're flinging mud without being able to back it up. What's the reason for that?
Of note, Trix has been using the `customElements` standard since forever: https://github.com/basecamp/trix/ https://github.com/basecamp/trix/
There's also slate, the (old!) tinymce, umm... I know I've at least experimented with a good couple more I can't recall.
And, on the topic of components I wish existed (anywhere - react, vue, angular, etc - anything), I've been searching for a good rich multiselect for a long time! If you know of any please let me know :)
- deergomoo 7y ago> And, on the topic of components I wish existed (anywhere - react, vue, angular, etc - anything), I've been searching for a good rich multiselect for a long time! If you know of any please let me know :) Select2 [1] has been around forever but it's always worked out pretty nicely for me. It's a jQuery plugin, so it's somewhat out of vogue these days, but it's trivially easy to wrap it in a component to make it play nicely with Vue (in fact, the Vue documentation uses it as the example for writing wrapper components [2]). I imagine something similar can be done with React, Angular, etc., though I'm not too familiar with the process there. [1] https://select2.org https://select2.org [2] https://vuejs.org/v2/examples/select2.html https://vuejs.org/v2/examples/select2.html
- dpau 7y agonot that there's anything wrong with jquery or select2, both of which i used heavily in the past, but if you're working in vue it's a very nice feeling to just completely drop the jquery dependency. ive been using https://github.com/shentao/vue-multiselect https://github.com/shentao/vue-multiselect for over a year now in production and despite its quirks i'd recommend it.
- zemptime 7y agoooooh nice. I didn't know this was a thing. Yeah, the jquery bundle size really isn't justified for a single thing (rich multiselect). I recently ported `selectr` for use in an app at work, but I'd love to replace it as there's some wonkiness
- Vinnl 7y ago> If such a "universal rich text edit" web component comes out, have web components then succeeded? I think (but this is my interpretation) that GP meant to assert by saying "Web Components failed" that no such component will ever come out, because Web Components cannot properly solve that use case. I haven't delved into it deeply, but my intuition is that, indeed, quite a lot of ceremony would be needed to integrate such a component into a larger web app, regardless of whether you use a framework or which one.
- h1d 7y agobootstrap-select? https://developer.snapappointments.com/bootstrap-select/examples/ https://developer.snapappointments.com/bootstrap-select/exam...