The file config/routes/monsieurbiz_sylius_rich_editor.yaml
was renamed to config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml
. The content changed as well:
@@ -1,2 +1,3 @@
-monsieur_biz_rich_editor_plugin:
- resource: "@MonsieurBizSyliusRichEditorPlugin/Resources/config/routing.yaml"
+monsieurbiz_richeditor_admin:
+ resource: "@MonsieurBizSyliusRichEditorPlugin/Resources/config/routing/admin.yaml"
+ prefix: /%sylius_admin.path_name%
The file config/packages/monsieurbiz_sylius_rich_editor.yaml
was renamed to config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml
.
The name of the Twig function changed from mbiz_rich_editor_render
to monsieurbiz_richeditor_render_field
,
so make sure to update your templates.
The JavaScript was refactored, now it works everywhere. You shouldn't have to change anything, the bundle system will take care of it.
But if you made some changes to the previous JS, you'll have to apply them on the new JS. It is a complete rewrite.
The definition of UI elements has changed, you'll have to change some things:
-
Removing the old UIElements objects extending
\MonsieurBiz\SyliusRichEditorPlugin\UiElement\AbstractUiElement
or implementing\MonsieurBiz\SyliusRichEditorPlugin\UiElement\UiElementInterface
).
You should keep the Form only. -
Adding a new configuration with your elements:
See the definition by using./bin/console config:dump-reference monsieurbiz_sylius_richeditor
.
Use the old Form here, it should work! Use the oldtype
as analias
in the configuration to keep backward compatibility.
Use the old template as well for the frontend renderer. And write a new admin renderer the same way.
We removed Product and Taxon elements because we want to keep it simple for this plugin.
These elements will be provided later in another plugin, which will be dedicated to fancy Ui Elements.
Today you'll have to implement them manually on your project if you need them.