Commit 31f8c7f468 for handsontable.com

commit 31f8c7f46812e18375235569237f261112544888
Author: Artur Mędrygał <artur.medrygal@handsontable.com>
Date:   Tue Nov 24 09:24:15 2026 +0100

    DEV-4128: Fix license docs that lead readers into the 19.0 lock (#14425)

    * DEV-4128: Fix license docs that lead readers into the 19.0 lock

    * DEV-4128: Address review on license docs

    * DEV-4128: Cover trial keys and the Angular key placement in the license guide

    * DEV-4128: Align the perpetual license FAQ with the expiry day

    (cherry picked from commit 20b5da09f2a00b6efabed35e3b3b75eb3203b387)

diff --git a/docs/content/guides/getting-started/installation/installation.md b/docs/content/guides/getting-started/installation/installation.md
index 3de8dd133e..c6b4dbba0b 100644
--- a/docs/content/guides/getting-started/installation/installation.md
+++ b/docs/content/guides/getting-started/installation/installation.md
@@ -129,6 +129,12 @@ export const appConfig: ApplicationConfig = {
 };
 ```

+::: tip
+
+Handsontable needs a license key. The `license` line is commented out, and a grid without a valid key opens locked. Uncomment it and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).
+
+:::
+
 To reduce the size of your JavaScript bundle, [import only the modules that you need](@/guides/tools-and-building/modules/modules.md) instead of calling `registerAllModules()`.

 ## Use the `HotTable` component
@@ -320,6 +326,12 @@ const hot = new Handsontable(container, {
 });
 ```

+::: tip
+
+Handsontable needs a license key. The `licenseKey` line is commented out, and a grid without a valid key opens locked. Uncomment it and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).
+
+:::
+
 ### Preview the result

 ::: example #example1 --js 1 --ts 2
@@ -421,6 +433,12 @@ To set Handsontable's [configuration options](@/guides/configuration/configurati

 :::

+::: tip
+
+Handsontable needs a license key. The `licenseKey` prop is commented out, and a grid without a valid key opens locked. Uncomment it and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).
+
+:::
+
 ### Preview the result

 ::: example #example1 :react --js 1 --ts 2
@@ -509,6 +527,12 @@ To set Handsontable's [configuration options](@/guides/configuration/configurati
 />
 ```

+::: tip
+
+Handsontable needs a license key. The `license-key` attribute sits in a comment above the tag, and a grid without a valid key opens locked. Move the attribute into the `<HotTable>` tag and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).
+
+:::
+
 ### Preview the result

 ::: example #example1 :vue3
diff --git a/docs/content/guides/getting-started/introduction/introduction.md b/docs/content/guides/getting-started/introduction/introduction.md
index 6d18818381..e9df523717 100644
--- a/docs/content/guides/getting-started/introduction/introduction.md
+++ b/docs/content/guides/getting-started/introduction/introduction.md
@@ -37,6 +37,8 @@ Use Handsontable with plain JavaScript, TypeScript, or your favorite framework.

 ## Examples

+Each example has its license key line commented out, and a grid without a valid key opens locked. Uncomment the line and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).
+
 <div class="boxes-list gray">

 - [Angular](https://handsontable.com/codesandbox-vm?example-dir=angular&handsontable-version={{$currentVersion}})
diff --git a/docs/content/guides/getting-started/license-key/license-key.md b/docs/content/guides/getting-started/license-key/license-key.md
index 1eae03979e..56af104bc0 100644
--- a/docs/content/guides/getting-started/license-key/license-key.md
+++ b/docs/content/guides/getting-started/license-key/license-key.md
@@ -27,7 +27,7 @@ We require you to specify which terms apply to your usage, by passing a license

 ## Commercial license

-If you use the paid version of Handsontable, pass the string of numbers delivered to you after the purchase. Note that the license key is a string, so you need to wrap it in quotes `''`.
+If you use the paid version of Handsontable, pass the license key delivered to you after the purchase. The license key is a string, so wrap it in quotes `''`.

 ::: only-for javascript

@@ -44,21 +44,14 @@ To use it with a framework, pass the string to a [`licenseKey`](@/api/options.md
 <code-block title="React" active>

 ```jsx
-<HotTable settings={settings} licenseKey="00000-00000-00000-00000-00000" />
+<HotTable {...settings} licenseKey="00000-00000-00000-00000-00000" />
 ```

 </code-block>
 <code-block title="Angular">

 ```html
-<hot-table [settings]="settings" licenseKey="00000-00000-00000-00000-00000"></hot-table>
-```
-
-</code-block>
-<code-block title="Vue 2">
-
-```html
-<hot-table :settings="settings" licenseKey="00000-00000-00000-00000-00000" />
+<hot-table [settings]="{ licenseKey: '00000-00000-00000-00000-00000' }"></hot-table>
 ```

 </code-block>
@@ -466,7 +459,7 @@ prints one console warning that names what it skipped. An import also reports ea

 ## Result

-Your grid is now licensed. A valid commercial key removes the license notice from the grid header.
+Your grid is now licensed. A valid commercial key shows no license lock and no expiry notice.

 ## The validation process

@@ -494,7 +487,7 @@ A **missing or invalid key** blocks the grid. Handsontable covers it with a moda

 The modal covers only the grid. The rest of your page keeps working. The modal does not appear on this site, so this page shows it as an image.

-An **expired key** does not block anything. Its message appears below the table and in the console, and every feature keeps working.
+An **expired key** does not block the grid, and every feature keeps working, with one exception: a trial key blocks the grid once its grace period passes. See [Trial keys](#trial-keys). A perpetual key and a key in the 25-character format show a message below the table and in the console. A lapsed subscription shows its message in the console only.

 A **key that does not include a feature** your grid uses blocks nothing either. The feature stays off, and its message appears below the table and in the console. See [Keys that name a tier](#keys-that-name-a-tier).

@@ -518,9 +511,19 @@ Since Handsontable 19.0, the `non-commercial-and-evaluation` key, and its second

 ### Expired license key

-Shown below the table and in the console:
+For a perpetual key and a key in the 25-character format, the message is shown below the table and in the console. The console prints an error for a perpetual key and a warning for a 25-character key. The wording differs slightly by key type. A 25-character key says:

-_The license key for Handsontable expired on `[expiration_date]`, and is not valid for the installed version `[handsontable_version]`.  Renew your license key or downgrade to a version released prior to `[expiration_dates]`. If you need any help, contact us at `[email]`._
+_The license key for Handsontable expired on `[expiration_date]`, and is not valid for the installed version `[handsontable_version]`.  Renew your license key or downgrade to a version released prior to `[expiration_date]`. If you need any help, contact us at `[email]`._
+
+A perpetual key says:
+
+_The license key for Handsontable expired on `[expiration_date]`, and is not valid for the installed version `[handsontable_version]`. Renew your license key or downgrade to a version released on or before `[expiration_date]`. If you need any help, contact us at `[email]`._
+
+A trial key shows its own message next to the badge and below the grid, and the console prints an error. When the grace period stored in the key also passes, a blocking screen replaces the grid. See [Trial keys](#trial-keys).
+
+A lapsed subscription prints this error in the console only:
+
+_Your Handsontable subscription license expired on `[expiration_date]` (UTC). To continue using the software, contact sales@handsontable.com to purchase a valid license key._

 ### Feature not included in the license key

@@ -541,15 +544,71 @@ In the console, `[features]` lists each missing feature as its name and token, f

 ### How do I update the license key in many tables at once?

-There's no built-in method to update all existing instances automatically. You have two options:
+There's no built-in method to update all existing instances automatically. You have two options.
+
+**Before creating any instances:** keep the key in one place, so every new instance picks it up. A grid created without a key shows the license lock.
+
+::: only-for javascript
+
+Handsontable has no global default for `licenseKey`. Store the key in a constant and pass it to every grid:
+
+```js
+const LICENSE_KEY = 'your-new-key';
+
+let hot1 = new Handsontable(container1, { ...settings1, licenseKey: LICENSE_KEY });
+let hot2 = new Handsontable(container2, { ...settings2, licenseKey: LICENSE_KEY });
+```
+
+:::
+
+::: only-for react
+
+Handsontable has no global default for `licenseKey`. Store the key in a constant and pass it to every `HotTable`:
+
+```jsx
+const LICENSE_KEY = 'your-new-key';
+
+<>
+  <HotTable {...settings1} licenseKey={LICENSE_KEY} />
+  <HotTable {...settings2} licenseKey={LICENSE_KEY} />
+</>
+```
+
+:::
+
+::: only-for angular
+
+Pass the key as `license` in the `HOT_GLOBAL_CONFIG` provider. Every `hot-table` in the application picks it up, except a table that sets its own `licenseKey` in its `settings`:

-- **Before creating any instances:** set the key globally so every new instance picks it up.
+```ts
+import { ApplicationConfig } from '@angular/core';
+import { HOT_GLOBAL_CONFIG } from '@handsontable/angular-wrapper';

-  ```js
-  Handsontable.defaults.licenseKey = 'your-new-key';
-  ```
+export const appConfig: ApplicationConfig = {
+  providers: [{ provide: HOT_GLOBAL_CONFIG, useValue: { license: 'your-new-key' } }],
+};
+```

-- **For instances that already exist:** Handsontable checks the license key once, when it creates an instance, so [`updateSettings()`](@/api/core.md#updatesettings) does not change the license status, the notices, or the console messages of a running grid. The tiers a key names are the exception: they are read from the current key, so a key passed through `updateSettings()` turns on the features of its tiers and applies to the next XLSX import or export. To apply the whole key, destroy each instance and create it again with the new key, looping through them manually. Re-creating an instance resets its UI state, such as sorting, filters, selection, and undo history.
+:::
+
+::: only-for vue
+
+Handsontable has no global default for `licenseKey`. Store the key in a constant and pass it to every `HotTable`:
+
+```html
+<script setup>
+const LICENSE_KEY = 'your-new-key';
+</script>
+
+<template>
+  <hot-table :settings="settings1" :license-key="LICENSE_KEY" />
+  <hot-table :settings="settings2" :license-key="LICENSE_KEY" />
+</template>
+```
+
+:::
+
+**For instances that already exist:** Handsontable checks the license key once, when it creates an instance, so [`updateSettings()`](@/api/core.md#updatesettings) does not change the license status, the notices, or the console messages of a running grid. The tiers a key names are the exception: they are read from the current key, so a key passed through `updateSettings()` turns on the features of its tiers and applies to the next XLSX import or export. To apply the whole key, destroy each instance and create it again with the new key, looping through them manually. Re-creating an instance resets its UI state, such as sorting, filters, selection, and undo history.

 ::: only-for javascript

@@ -576,18 +635,20 @@ The wrapper component creates its instance once, when it mounts. A later change
 What you can do depends on your license type:

 - **Subscription license:** once your subscription expires, you can no longer use Handsontable. Renew your subscription to keep using the grid.
-- **Perpetual license:** you can keep using any version of Handsontable that was released _before_ your license expired. You won't be able to upgrade to versions released after that date.
+- **Perpetual license:** you can keep using any version of Handsontable that was released on or before the day your license expired. You won't be able to upgrade to versions released after that date.

-If you load a version that your license doesn't cover, you'll see a [console warning](#expired-license-key) and a watermark on the grid. To keep support and access to updates, keep your license up to date.
+If you load a version that your license doesn't cover, what you see depends on your license type. A perpetual license shows a console error and a [notice bar](#expired-license-key) below the grid. A key in the 25-character format shows a console warning and the same notice bar. A lapsed subscription shows a console error only. To keep support and access to updates, keep your license up to date.

 ### What will I see if I update to a newer version with a stale key?

-If your license key is expired and you update to a version of Handsontable released after it expired, you'll see:
+If your perpetual license key, or your key in the 25-character format, is expired and you update to a version of Handsontable released after it expired, you'll see:
+
+- A message in the browser console (see [Expired license key](#expired-license-key)): an error for a perpetual key, a warning for a 25-character key.
+- A notice bar below the table saying the license key expired.

-- A watermark below the table saying the license is invalid.
-- A warning in the browser console (see [Expired license key](#expired-license-key)).
+A lapsed subscription works differently: see the previous question.

-All features still work, but you're not entitled to use that version under an expired license. To remove the warning and watermark, either downgrade to the last version released while your license was still active, or renew the license.
+All features still work, but you're not entitled to use that version under an expired license. To remove the message and the notice bar, either downgrade to the last version released while your license was still active, or renew the license.

 ## Related articles

diff --git a/docs/content/guides/getting-started/server-side-data/server-side-data-fetching.md b/docs/content/guides/getting-started/server-side-data/server-side-data-fetching.md
index 1efeac0896..d185788710 100644
--- a/docs/content/guides/getting-started/server-side-data/server-side-data-fetching.md
+++ b/docs/content/guides/getting-started/server-side-data/server-side-data-fetching.md
@@ -67,7 +67,7 @@ When you enable [`filters`](@/api/options.md#filters), add the parameters your b

 ## CodeSandbox examples

-Runnable projects under the Handsontable examples monorepo (Devbox):
+Runnable projects under the Handsontable examples monorepo (Devbox). Each project has its license key line commented out, and a grid without a valid key opens locked. Uncomment the line and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).

 **End-to-end backends (Node servers + UI)**

diff --git a/docs/content/guides/getting-started/server-side-data/server-side-data.md b/docs/content/guides/getting-started/server-side-data/server-side-data.md
index 604bd48a06..50e517ff8b 100644
--- a/docs/content/guides/getting-started/server-side-data/server-side-data.md
+++ b/docs/content/guides/getting-started/server-side-data/server-side-data.md
@@ -236,7 +236,7 @@ When you enable [`filters`](@/api/options.md#filters), add the parameters your b

 ## CodeSandbox examples

-Runnable projects under the Handsontable examples monorepo (Devbox):
+Runnable projects under the Handsontable examples monorepo (Devbox). Each project has its license key line commented out, and a grid without a valid key opens locked. Uncomment the line and add your key. To get a trial key, see [License key](@/guides/getting-started/license-key/license-key.md#get-a-license-key).

 **End-to-end backends (Node servers + UI)**

diff --git a/docs/content/guides/upgrade-and-migration/migrating-from-18.0-to-18.1/migrating-from-18.0-to-18.1.md b/docs/content/guides/upgrade-and-migration/migrating-from-18.0-to-18.1/migrating-from-18.0-to-18.1.md
index 2a88d2b9dc..5f7c4bd2e3 100644
--- a/docs/content/guides/upgrade-and-migration/migrating-from-18.0-to-18.1/migrating-from-18.0-to-18.1.md
+++ b/docs/content/guides/upgrade-and-migration/migrating-from-18.0-to-18.1/migrating-from-18.0-to-18.1.md
@@ -96,8 +96,8 @@ const hot = new Handsontable(container, {

 :::

-For non-commercial or evaluation use, pass the non-commercial key. It is a valid key, so it does not
-block the grid:
+For non-commercial or evaluation use, pass the non-commercial key. In 18.1, it is a valid key, so it
+does not block the grid:

 ::: only-for javascript

@@ -133,6 +133,15 @@ const hot = new Handsontable(container, {

 :::

+::: warning
+
+Handsontable 19.0 removes this key and its second form, `'ht68e-1f2b7-47158-70b05-0842f'`. Both read as invalid, and a lock screen covers the grid. If you
+plan to upgrade to 19.0, get a trial key or a sponsored license instead. See
+[The `non-commercial-and-evaluation` license key no longer works](@/guides/upgrade-and-migration/migrating-from-18.1-to-19.0/migrating-from-18.1-to-19.0.md#the-non-commercial-and-evaluation-license-key-no-longer-works)
+in the 18.1 to 19.0 migration guide.
+
+:::
+
 ::: tip

 Handsontable reads the license key once, when the instance initializes. Passing a new
@@ -464,7 +473,7 @@ sanitizer sees every clipboard payload, which matters if it does more than filte

 | Change | Who is affected | Action required |
 | --- | --- | --- |
-| A missing or invalid license key blocks the grid with a modal that cannot be closed | Any instance running without a valid key, including local, CI, test, and demo environments | Pass a valid [`licenseKey`](@/api/options.md#licensekey), or `'non-commercial-and-evaluation'` for non-commercial use |
+| A missing or invalid license key blocks the grid with a modal that cannot be closed | Any instance running without a valid key, including local, CI, test, and demo environments | Pass a valid [`licenseKey`](@/api/options.md#licensekey), or `'non-commercial-and-evaluation'` for non-commercial use. Handsontable 19.0 removes that key: see [the 18.1 to 19.0 migration guide](@/guides/upgrade-and-migration/migrating-from-18.1-to-19.0/migrating-from-18.1-to-19.0.md#the-non-commercial-and-evaluation-license-key-no-longer-works) |
 | Column sorting runs on mouse up, and only the header label and its sort indicator sort on click | Tests or scripts that dispatch `mousedown` on a header cell to sort | Dispatch `mousedown` and `mouseup` on the `.colHeader.sortAction` label, without moving the pointer |
 | `beforeColumnMove` and `afterColumnMove` no longer fire on a plain header click | Code using either hook to detect a header click | Use [`afterColumnSort`](@/api/hooks.md#aftercolumnsort) or [`afterOnCellMouseUp`](@/api/hooks.md#afteroncellmouseup) instead |
 | Expired license keys are detected again | Instances running a key past its date | Nothing in code. Renew the license to remove the notice |
diff --git a/docs/content/guides/upgrade-and-migration/migrating-from-18.1-to-19.0/migrating-from-18.1-to-19.0.md b/docs/content/guides/upgrade-and-migration/migrating-from-18.1-to-19.0/migrating-from-18.1-to-19.0.md
index 5da2a26bcd..975d648953 100644
--- a/docs/content/guides/upgrade-and-migration/migrating-from-18.1-to-19.0/migrating-from-18.1-to-19.0.md
+++ b/docs/content/guides/upgrade-and-migration/migrating-from-18.1-to-19.0/migrating-from-18.1-to-19.0.md
@@ -1610,7 +1610,7 @@ Keys in the 25-character format are not affected, except `'ht68e-1f2b7-47158-70b

 ### How to migrate

-Before you upgrade, check the [`licenseKey`](@/api/options.md#licensekey) value you pass. Pass the whole key, exactly as you received it - the text and the bracketed block, with nothing after the block. Spaces and line breaks in the key are ignored, so a key that an email client wrapped across lines keeps working. For where to keep the key, see [License key](@/guides/getting-started/license-key/license-key.md#entitlement-license-keys).
+Before you upgrade, check the [`licenseKey`](@/api/options.md#licensekey) value you pass. Pass the whole key, exactly as you received it - the text and the bracketed block, with nothing after the block. Spaces and line breaks in an entitlement key are ignored, so a key that an email client wrapped across lines keeps working. A key in the 25-character format is not read that way: only spaces and line breaks around the whole key are trimmed, and a space between its groups makes it invalid. For where to keep the key, see [License key](@/guides/getting-started/license-key/license-key.md#entitlement-license-keys).

 ## 30. <kbd>**Cmd**</kbd>/<kbd>**Ctrl**</kbd> + arrow keys on a row header expand and collapse row groups