Skip to content

Commit

Permalink
Set Attr.EnableID => true in default HTML Purifier config
Browse files Browse the repository at this point in the history
resolves #82
  • Loading branch information
brandonkelly committed Oct 29, 2018
1 parent 29494ea commit 836b36d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ private function _getPurifierConfig(): array
// Default config
return [
'Attr.AllowedFrameTargets' => ['_blank'],
'Attr.EnableID' => true,
'HTML.AllowedComments' => ['pagebreak'],
];
}
Expand Down

0 comments on commit 836b36d

Please sign in to comment.