You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
5
+
Therefore, the configuration has been split and the `fos_ck_editor` configuration is required to be added with this update.
6
+
7
+
Import required CKeditor config in your `config/packages/_sylius.yaml` file:
Copy file name to clipboardExpand all lines: doc/installation.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
## Installation
2
2
3
3
4
-
1.*We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.*
4
+
##### 1. *We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.*
5
5
6
6
```bash
7
7
$ composer require bitbag/cms-plugin --no-scripts
8
8
```
9
9
10
-
2. Add plugin dependencies to your `config/bundles.php` file:
10
+
##### 2. Add plugin dependencies to your `config/bundles.php` file:
11
11
12
12
```php
13
13
return [
@@ -16,7 +16,7 @@ return [
16
16
];
17
17
```
18
18
19
-
3. Configure a WYSIWYG editor.
19
+
##### 3. Configure a WYSIWYG editor.
20
20
21
21
The plugin supports two WYSIWYG editors: [FOS CKEditor](https://symfony.com/doc/master/bundles/FOSCKEditorBundle/usage/ckeditor.html) by default and [Trix](https://trix-editor.org/) as an alternative.
22
22
@@ -25,7 +25,7 @@ You can choose which one you want to use by following one of the guides below:
25
25
-[Trix WYSIWYG config](./trix-config.md)*
26
26
-[CKeditor WYSIWYG config](./ckeditor-config.md)*
27
27
28
-
4. Import required config in your `config/packages/_sylius.yaml` file:
28
+
##### 4. Import required config in your `config/packages/_sylius.yaml` file:
**Note.** In some cases, the `--symlink` option [may throw some errors](https://github.com/Sylius/SyliusThemeBundle/issues/91). If you consider running the commands without the `--symlink` option, please keep in mind to run them on every potential plugin update.
91
91
92
-
7. Add plugin assets to your project
92
+
##### 7. Add plugin assets to your project
93
93
94
94
We recommend you to use Webpack (Encore), for which we have prepared four different instructions on how to add this plugin's assets to your project:
95
95
@@ -105,7 +105,7 @@ However, if you are not using Webpack, here are instructions on how to add optim
105
105
106
106
- [Non webpack solution](./01.5-non-webpack.md)
107
107
108
-
8. Passing required "backend" values to "frontend"
108
+
##### 8. Passing required "backend" values to "frontend"
109
109
110
110
In order to make plugin finally work you need to declare "route", in admin _scripts.html.twig you can pass:
0 commit comments