-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jQuery dependency? #391
Comments
If I remove jQuery (and it should be possible in v3) I will rewrite the plugin and do not base Trumbowyg on buggy I know that is not possible/hard yet to remove the dependency on jQuery :/ |
There is no AJAX support, so it's hard yep :/ |
You're right... Although there is a pull request on the repository that we could try to give a little shove... I may be bias, but I love this WYSIWYG editor and I would love it even more if I didn't have to require jquery due to its size... Let me know of you need any help, I wouldn't mind contributing. |
@SmoshySmosh 👍 |
I know. I'm not fan of jQuery anymore. But if the ajax support could be supported by cash it could be cool. Upload plugin use it too. |
@Alex-D sorry what I meant, was not to switch from one library to another, I would recommend to use Vanilla JS or better say pure JS. Without any use of extra library. I think this should also work?! 😏 |
I know what Vanilla JS is. But XHR Requests are not so easy to support on each browsers, especially IE/Edge :( |
I believe we have a few options for XHR, remember the goal is to keep the final size down. https://github.com/pyrsmk/qwest - 2.2kb Thoughts? |
@Alex-D 👍 |
I recommend Axios as an option for XHR requests. It's the standard library AJAX requests for Vue, which I also use. (Trumbowyg is one of the few non-Vue components I still use, and the only one that depends on JQuery.) |
@Alex-D if you need any help with anything let me know |
Axios and axios.all() is nice, but I like the minimal size of fetchival. cash is also a nice small jQuery replacement. |
I plan to remove jQuery dependency in version 3. See #875 for more details. |
Just wondering, in the light of this post, how difficult it would be to remove the dependency on jQuery.
The text was updated successfully, but these errors were encountered: