diff --git a/composer.json b/composer.json index c1aa6f3..fe17ee7 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "php": "~7.4|~8.0", "sylius/sylius": ">=1.8 <1.13", "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", - "monsieurbiz/sylius-rich-editor-plugin": "^2.0" + "monsieurbiz/sylius-rich-editor-plugin": "^2.2" }, "require-dev": { "behat/behat": "^3.6.1", diff --git a/src/Form/Type/PageTranslationType.php b/src/Form/Type/PageTranslationType.php index b1d2222..a02a5b1 100644 --- a/src/Form/Type/PageTranslationType.php +++ b/src/Form/Type/PageTranslationType.php @@ -34,6 +34,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void ]) ->add('content', RichEditorType::class, [ 'label' => 'monsieurbiz_cms_page.ui.form.content', + 'locale' => $builder->getName(), ]) ->add('metaTitle', TextType::class, [ 'required' => false,