Skip to content

Commit 4ff4229

Browse files
committed
[With or With IDs][Review] fixed test for WYSIWYG editable
1 parent 267f49d commit 4ff4229

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ All import commands follow a similar structure and support the following common
7575
- `--input` or `-i`: Path to the input YAML file (required for import commands).
7676
- `--dry-run`: Perform the operation without persisting data (only available for import commands).
7777

78+
### Notice: WYSIWYG - Editable
79+
80+
For using a correct exporting and importing of WYSIWYG editables in older Pimcore versions (e.g. using `symfony/framework < 6.2.2`) you probably need to configure your Symfony HTML sanitizer as documented here:
81+
https://docs.pimcore.com/platform/2024.4/Pimcore/Documents/Editables/WYSIWYG#extending-symfony-html-sanitizer-configuration
82+
83+
In our integration test we have used the following configuration:
84+
85+
```yaml
86+
tests/app/config/packages/pimcore.yaml
87+
```
88+
because of already known bugs with `<a>` - HTML tag.
89+
7890
## Concepts
7991

8092
### Page Export

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"phpstan/phpstan": "^1.10.60",
3535
"phpstan/phpstan-phpunit": "^1.3.16",
3636
"phpstan/phpstan-symfony": "^1.3.8",
37-
"phpunit/phpunit": "^9.5",
38-
"pimcore/admin-ui-classic-bundle": "^1.6",
37+
"phpunit/phpunit": "^9.6",
38+
"pimcore/admin-ui-classic-bundle": "^1.0",
3939
"spatie/phpunit-snapshot-assertions": "^4.2",
4040
"teamneusta/pimcore-testing-framework": "^0.12"
4141
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ framework:
66
allow_attributes:
77
pimcore_type: '*'
88
pimcore_id: '*'
9+
allowed_link_schemes: ['http', 'https', 'mailto'] # necessary for symfony/framework < 6.2.2 [https://github.com/symfony/symfony/issues/48556]
910
allow_relative_links: true
1011
allow_relative_medias: true
1112
allow_elements:

0 commit comments

Comments
 (0)