Skip to content

Commit

Permalink
added console.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
reithor committed Aug 19, 2024
1 parent ac13e75 commit 3591606
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ const VIEWPORT_TOP_OFFSET_DISTRACTION_FREE_MODE = 0;
try {
locale = new Intl.Locale(doc.querySelector('meta[name="LanguageCode"]').content);
} catch (e) {
console.warn(
`Unsupported LanguageCode '${doc.querySelector('meta[name="LanguageCode"]').content}' - using fallback 'eng-GB'.`,
);
locale = new Intl.Locale('eng-GB');
}
const blockCustomStyles = Object.entries(ibexa.richText.customStyles)
Expand Down

0 comments on commit 3591606

Please sign in to comment.