File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414``` js
1515// webpack.config.js
16- const [ bitbagCmsShop , bitbagCmsAdmin ] = require (' ./vendor/bitbag/cms-plugin/webpack.config.js' )
16+ const createCmsConfigs = require (' ./vendor/bitbag/cms-plugin/webpack.config.js)
1717...
1818
19+ const [bitbagCmsShop, bitbagCmsAdmin] = createCmsConfigs({
20+ wysiwyg: ' ckeditor' // ' ckeditor' | ' trix'
21+ });
22+
1923module.exports = [..., bitbagCmsShop, bitbagCmsAdmin];
2024```
2125
Original file line number Diff line number Diff line change @@ -11,9 +11,15 @@ Main entry points:
1111``` js
1212// shop
1313.addEntry (' /vendor/bitbag/cms-plugin/src/Resources/assets/shop/entry.js' )
14+ ```
1415
16+ Choose one of the following entries (CKeditor or Trix):
17+ ``` js
1518// admin
19+ // Ckeditor
1620.addEntry (' /vendor/bitbag/cms-plugin/src/Resources/assets/admin/entry.js' )
21+ // Trix
22+ .addEntry (' /vendor/bitbag/cms-plugin/src/Resources/assets/admin/trix-entry.js' )
1723```
1824
1925Style entry points:
Original file line number Diff line number Diff line change @@ -17,11 +17,22 @@ $ bin/console assets:install
1717```
1818
19192 . Add twig inclusions in your templates:
20+
21+ (select one of the following options, depending on the editor you want to use: Trix or CKEditor)
2022``` twig
23+ {# CKeditor config #}
2124{# @SyliusAdminBundle/_scripts.html.twig #}
2225{% include '@SyliusUi/_javascripts.html.twig' with {
2326 'path': 'bundles/bitbagsyliuscmsplugin/build/bitbag-cms-admin.js'
2427} %}
28+ {# end - CKeditor config #}
29+
30+ {# Trix config #}
31+ {# @SyliusAdminBundle/_scripts.html.twig #}
32+ {% include '@SyliusUi/_javascripts.html.twig' with {
33+ 'path': 'vendor/bitbag/cms-plugin/src/Resources/assets/trix-entry.js'
34+ } %}
35+ {# end - Trix config #}
2536
2637{# @SyliusAdminBundle/_styles.html.twig #}
2738{% include '@SyliusUi/_stylesheets.html.twig' with {
You can’t perform that action at this time.
0 commit comments