From c9ae8f7d243cff942cb50fd3926944f4e0ae8606 Mon Sep 17 00:00:00 2001 From: Ben Tran Date: Fri, 31 Oct 2025 10:19:49 +1030 Subject: [PATCH] INT-3380: Fix licenseKey prop not defaulted to gpl --- CHANGELOG.md | 1 + .../src/main/ts/editor/editor.component.ts | 2 +- tinymce-angular-component/src/test/ts/alien/TestHooks.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bba0941..1b46c773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - `EventObj` interface not being importable. +- `licenseKey` was not defaulted to `gpl`. #INT-3380 ## 9.1.0 - 2025-07-31 diff --git a/tinymce-angular-component/src/main/ts/editor/editor.component.ts b/tinymce-angular-component/src/main/ts/editor/editor.component.ts index 5ddf6c3a..45df1f98 100644 --- a/tinymce-angular-component/src/main/ts/editor/editor.component.ts +++ b/tinymce-angular-component/src/main/ts/editor/editor.component.ts @@ -53,7 +53,7 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal @Input() public cloudChannel: Version = '8'; @Input() public apiKey = 'no-api-key'; - @Input() public licenseKey?: string; + @Input() public licenseKey = 'gpl'; @Input() public init?: EditorOptions; @Input() public id = ''; @Input() public initialValue?: string; diff --git a/tinymce-angular-component/src/test/ts/alien/TestHooks.ts b/tinymce-angular-component/src/test/ts/alien/TestHooks.ts index d04bab39..7c13c451 100644 --- a/tinymce-angular-component/src/test/ts/alien/TestHooks.ts +++ b/tinymce-angular-component/src/test/ts/alien/TestHooks.ts @@ -62,7 +62,7 @@ export const editorHook = (component: Type, moduleDef: TestModul .map((v): EditorComponent => v.componentInstance) .getOrDie('EditorComponent instance not found'); - for (const [ key, value ] of Object.entries({ ...props, licenseKey: 'gpl' })) { + for (const [ key, value ] of Object.entries({ ...props })) { (editorComponent as any)[key] = value; }