Licensed version
Once Editor has been purchased, to update from the trial to licensed version you simply need to replace the Editor trial Javascript with that which is included in the licensed download. None of your external code which you have used during the trial needs to be modified, the licensed file is a simple drop in replacement for the core Editor Javascript.
The exact method for how to install the licensed version will depend on how you installed Editor:
- NPM Package manager
- Direct inclusion
- Download builder / Generator
NPM package manager
The Editor trial packages we make available through npm have a date embedded into the name to reflect when the trial expires - e.g.:
npm install @datatables.net/editor-2023-05-01
To upgrade to the licensed version, you must replace this trial package with the licensed one:
npm install @datatables.net/editor
You will also need to update any references you have in your code - for example:
import Editor from '@datatables.net/editor-2023-05-01';
Should be updated with:
import Editor from '@datatables.net/editor';
Direct inclusion
If you have been referencing the dataTables.editor.js
/ dataTables.editor.min.js
file on your page or in your build environment, simply replace the file with the one with the same name from the licensed download. You may also need to clear your browser's cache to ensure that the latest file is loaded.
Downloader / Generator
If you used the DataTables downloader to build a single concatenated file with Editor included (datatables.js
/ datatables.min.js
) you will need to generate a new build that includes the licensed file. This can be done by navigating to the DataTables downloader and building a new package. When logged in with an account that has an Editor license assigned to it, the download builder will automatically include the licensed software.
To easily select exactly the same software as your previously built package used, open the datatables.js
/ datatables.min.js
from the previous build and at the top it will show a URL that can be copied and pasted into your browser - for example:
* To rebuild or modify this file with the latest versions of the included
* software please visit:
* https://datatables.net/download/#dt/dt-1.10.11,b-1.1.2,e-1.5.5,se-1.1.2
Once the new package has been built, simply replace the datatables.js
/ datatables.min.js
file with that from the new package.
Troubleshooting
Once the above steps have been followed, if you are still receiving a "Trial expired" or "Trial expiring" message in your browser's console:
- Clear your browser's cache in case the trial version was cached
- Check that the new file with the licensed version was correctly deployed to the server.
- Ensure that Editor is not being loaded multiple times (a trial version and the licensed version for example).
If you are still having problems, get in touch and provide details of the problem, ideally with the link to the page in question so it can be debugged.