Skip to content

Commit

Permalink
Improve log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Jan 7, 2025
1 parent 4ac2432 commit dbc74cb
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/ckeditor5-core/src/editor/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,17 +534,11 @@ export default abstract class Editor extends /* #__PURE__ */ ObservableMixin() {
'color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;'
);

if ( licenseKey === 'trial' ) {
console.warn(
`⚠️ You are using a ${ licenseType } license of CKEditor 5 which is for evaluation purposes only. ` +
'For production usage, please obtain a production license at https://portal.ckeditor.com/.'
);
} else {
console.warn(
`⚠️ You are using a ${ licenseType } license of CKEditor 5. ` +
'For production usage, please obtain a production license at https://portal.ckeditor.com/.'
);
}
console.warn(
`⚠️ You are using a ${ licenseType } license of CKEditor 5` +
`${ licenseKey === 'trial' ? ' which is for evaluation purposes only' : '' }. ` +
'For production usage, please obtain a production license at https://portal.ckeditor.com/.'
);
}

if ( [ 'evaluation', 'trial' ].includes( licensePayload.licenseType ) ) {
Expand Down

0 comments on commit dbc74cb

Please sign in to comment.