From f1b1ca4c09e0641cf32af34ee283aa774e98cdf1 Mon Sep 17 00:00:00 2001 From: Simo Heinonen Date: Tue, 4 Jul 2023 16:19:00 +0300 Subject: [PATCH] Allow javascript --- src/Field/CodeEditorField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Field/CodeEditorField.php b/src/Field/CodeEditorField.php index dcbe469d04..d9f5d9f266 100644 --- a/src/Field/CodeEditorField.php +++ b/src/Field/CodeEditorField.php @@ -20,7 +20,7 @@ final class CodeEditorField implements FieldInterface public const OPTION_TAB_SIZE = 'tabSize'; public const OPTION_SHOW_LINE_NUMBERS = 'showLineNumbers'; - private const ALLOWED_LANGUAGES = ['css', 'dockerfile', 'js', 'markdown', 'nginx', 'php', 'shell', 'sql', 'twig', 'xml', 'yaml-frontmatter', 'yaml']; + private const ALLOWED_LANGUAGES = ['css', 'dockerfile', 'js', 'javascript', 'markdown', 'nginx', 'php', 'shell', 'sql', 'twig', 'xml', 'yaml-frontmatter', 'yaml']; /** * @param TranslatableInterface|string|false|null $label