Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.24 KB

UPGRADE-2.0.md

File metadata and controls

29 lines (20 loc) · 1.24 KB

Upgrade from v1.X.X to 2.X.X

Plugin Improvements

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 old type as an alias 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.

Removed Product and Taxon elements

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.