In the 2.x we improved two things:
- the javascript: it now works everywhere.
- the UiElements: their definition has changed.
For the JavaScript you should have nothing to do, the bundle system will take care of it.
For the UiElements you will need to do some changes:
-
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.