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
Happening on my end too, and it doesn't seem isolated to Redactor fields. For example, the entry title <h1> (i.e. .screen-title) disappears when triggering the image preview from an asset field in an entry edit page, with no plugins installed (Craft 4.3.6.1).
What happened?
Description
Opening preview from an asset field (single-click) stripping all
<h1>
-tags on all Redactor fields.Steps to reproduce
<h1>
-tagExpected behavior
No content adjustments
Actual behavior
The
<h1>
tag gets removed from the Redactor-field when Preview Modal opensPossible source of bug / solution
In the
vendor/craftcms/cms/src/web/assets/cp/dist/cp.js
file I commented out this:The source file seems to be named
PreviewFileModal.js
Commenting those lines out got rid of the bug, but it's not really a bug fix.
Craft CMS version
4.3.5
PHP version
8.0.24
Operating system and version
Linux 5.10.104-linuxkit (ddev)
Database type and version
MySQL 10.4.26 (MariaDB)
Image driver and version
Imagick 3.6.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: