This guide requires the following:
-
Node.js and npm.
-
Basic knowledge of how to use Vite.
-
For self-hosted deployments: A valid license key starting with
T8LK:from your {accountpage} -
(Optional: For premium features) The latest premium .zip bundle of TinyMCE that includes premium plugins.
|
Important
|
When self-hosting TinyMCE 8:
|
-
Import the index.js file in the index.html page, such as:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vite App</title> </head> <body> <script type="module" src="/src/index.js"></script> </body> </html>
-
Run vite in dev mode to test the application
npx vite dev
-
If Vite
-
runs successfully, check that the editor loads in the application.
-
fails, review any errors and the configuration changes in this procedure; you may need to adjust for conflicts or other issues when bundling {productname} into an existing project.
-
-
Run vite in production mode to generate the bundle
npx vite build
-
If vite runs successfully, check that it generated by running:
npx vite preview