I feel the next MODX major release should not be dependent on one "manager" and the
API should not be dependent on any libraries such as ExtJS. Personally, I don't agree that Extra developers should be told what front end libraries to use and not use. That's not creative freedom.
Quote from: BobRay at Jul 15, 2015, 03:17 PMOpenGeek, btw, thinks that no MODX extra should be dependent on jQuery or any other library.
I'm all for VanillaJS but are we not considering ExtJS a library or is that the one exception? Redactor.js is dependent on jQuery so Redactor for MODX is too. There's absolutely no way around that. Jan's Markdown Editor rightfully uses Ace. ContentBlocks uses some stuff. Lots of Extras use libraries and with good reason.
VanillaJS would help solve so many problems and help put creative freedom into the manager itself. Within the manager(s) use whatever libraries you want. AngularJS, React, VanillaJS, whatever. This would allow MODX to take the clean "VanillaJS" stance without limiting or defining what Extra developers have in their toolkit. With the API traced back to VanillaJS, Extras should be compatible within any manager theme whereas currently many are dependent on MODXExt. The next API could suggest or offer some sort of way to prevent libraries loading more than once along with VanillaJS code samples of how to communicate with the REST API. These code samples, being standard, could of course be translate to any other library.
Quote from: Jako at Jul 16, 2015, 06:46 AMA manager extra (i.e.CMPs and custom TVs) should use jQuery noConflict inside to bypass any jQuery version issues. Frontend extras should have a setting to disable register jQuery and other package library files.
Agreed. Unfortunately it hasn't been as easy as it sounds to implement. For example, with Redactor we use jQuery.noConflict() to free up the $ for other libraries. Problem I'm running into is if jQuery was already loaded by another plugin, but that plugin uses noConflict also. In these cases we are having to load jQuery again just before we use it. In other words, I haven't even been able to get the ugly regClientHTMLBlock trick I suggested to work correctly yet
[ed. note: dinocorn last edited this post 11 years, 3 months ago.]