Upgrading
Upgrading
menashe
Posts: 198Questions: 44Answers: 2
Good morning,
This si a rather basic question, but I realize that I really do not know th correct procedure.
I see that Editor 2.2.2 is now available.
After months/years of development, I have <script> entries for many different .js files--version numbers all over the place!
When I download the latest Editor, what exactly do I need to modify/update/remove?
Answers
Head to the Editor download page and download the package you need. On the client-side, you just need to replace the Editor JS files that you are currently using with the latest ones. For example, if you are using a
script
fordataTables.editor.min.js
, just update that file (the CSS should be updated as well).What script tags are you currently using?
Allan
Too many?
Not even slightly! Have a look at some WordPress sites with a theme and a few plug-ins. Now they have some serious
script
tag counts going on!You've got some duplication in you DataTables (and related) includes there. What I would suggest is that you replace the
DataTables.net
section with:That uses the DataTables CDN to get DataTables, DateTime, Buttons and Select, with Bootstrap 5 styling, all in a single request (note I've included the
link
for the styling for these as well). Since Editor isn't on the CDN, you then need to include that separately - which you've already got.The CDN option makes upgrades like this much easier.
Allan
Any update?
@JazlynKub - an update to what? My previous comment in this thread explains how to update the scripts for the original question.
Allan