From f0c348595a9260df422202147c6b602caaf24dee Mon Sep 17 00:00:00 2001 From: i-just Date: Wed, 6 May 2026 15:05:10 +0200 Subject: [PATCH] updates for v6 with adapter --- README.md | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38b02c54..31cfde46 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ You can then register custom CSS styles that should be applied within the editor CKEditor fields pass input through [HTML Purifier](http://htmlpurifier.org) to avoid saving malicious code to the database. This helps prevent XSS attacks and other vulnerabilities. -HTML Purifier is configured primarily via JSON files in your `config/htmlpurifier/` folder. New Craft projects (based on [`craftcms/craft`](https://github.com/craftcms/craft)) come with a single [`Default.json` config](https://github.com/craftcms/craft/blob/5.x/config/htmlpurifier/Default.json), which you can modify or supplement with your own configurations. Each CKEditor field with **Advanced** → **Purify HTML** enabled uses its selected HTML Purifier config. See the [HTML Purifier documentation](http://htmlpurifier.org/live/configdoc/plain.html) for a complete list of options! +HTML Purifier is configured primarily via JSON files in your `config/htmlpurifier/` folder (or `config/craft/htmlpurifier/` if you’re using Craft CMS v6). New Craft projects (based on [`craftcms/craft`](https://github.com/craftcms/craft)) come with a single [`Default.json` config](https://github.com/craftcms/craft/blob/5.x/config/htmlpurifier/Default.json), which you can modify or supplement with your own configurations. Each CKEditor field with **Advanced** → **Purify HTML** enabled uses its selected HTML Purifier config. See the [HTML Purifier documentation](http://htmlpurifier.org/live/configdoc/plain.html) for a complete list of options! This behavior is independent of CKEditor’s own HTML sanitization engine—the client-side editor automatically strips out any markup that isn’t supported by an enabled feature or plugin. If you [install additional plugins](#adding-ckeditor-plugins) or add [custom styles](#registering-custom-styles), you may need to relax associated HTML Purifier rules to ensure the markup is not removed by the server when saved. diff --git a/composer.json b/composer.json index ce4d61c1..ff4f515c 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ }, "require": { "php": "^8.2", - "craftcms/cms": "^5.9.0", + "craftcms/cms": "^5.9.0|^6.0.0-alpha.1", "craftcms/html-field": "^3.5.0", "embed/embed": "^4.4", "nystudio107/craft-code-editor": ">=1.0.8 <=1.0.13 || ^1.0.16"