From 836b36d71cc05c2cfaaa862743dd13cb896e946a Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Mon, 29 Oct 2018 05:17:00 -0700 Subject: [PATCH] Set `Attr.EnableID => true` in default HTML Purifier config resolves #82 --- CHANGELOG.md | 1 + src/Field.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 304bf61..a94cadb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - Updated Redactor to 3.1.4 - Fullscreen plugin is now not available for use during Live Preview. ([#94](https://github.com/craftcms/redactor/issues/94)) +- Redactor fields’ default HTML Purifier config now allows `id` attributes. ([#82](https://github.com/craftcms/redactor/issues/82)) ### Fixed - Fixed a bug where image editor would be unavailable for inserted assets. ([#95](https://github.com/craftcms/redactor/issues/95)) diff --git a/src/Field.php b/src/Field.php index e9a3e94..116eedf 100644 --- a/src/Field.php +++ b/src/Field.php @@ -693,6 +693,7 @@ private function _getPurifierConfig(): array // Default config return [ 'Attr.AllowedFrameTargets' => ['_blank'], + 'Attr.EnableID' => true, 'HTML.AllowedComments' => ['pagebreak'], ]; }