This update adds support for Trix (as an optional WYSIWYG editor). If you would like to replace CKeditor with Trix review the plugin installation steps.
The configuration has been split and the fos_ck_editor configuration is required to be added with this update.
- Import required CKeditor config in your
config/packages/_sylius.yamlfile:
# config/packages/_sylius.yaml
imports:
...
- { resource: "@BitBagSyliusCmsPlugin/Resources/config/fos_ck_editor/fos_ck_editor.yml" }Or copy contents of vendor/BitBag/cms-plugin/src/Resources/config/fos_ck_editor/fos_ck_editor.yml to config/packages/fos_ck_editor.yaml file.
- If project use a
./vendor/bitbag/cms-plugin/webpack.config.jsfile inwebpack.config.jsyou need change:
From:
// webpack.config.js
const [ bitbagCmsShop, bitbagCmsAdmin ] = require('./vendor/bitbag/cms-plugin/webpack.config.js')
...
module.exports = [..., bitbagCmsShop, bitbagCmsAdmin];To:
// webpack.config.js
const createCmsConfigs = require('./vendor/bitbag/cms-plugin/webpack.config.js');
...
const [bitbagCmsShop, bitbagCmsAdmin] = createCmsConfigs({
wysiwyg: 'ckeditor' // 'ckeditor' | 'trix'
});
module.exports = [..., bitbagCmsShop, bitbagCmsAdmin];