When a user adds or edits an image and adds or replaces alt text, the alt text does not get saved and always defaults to the original images alt text when it was first created.
If I change to a new text format that does not use the htmlpurifier, the images alt text works as I would expect.
Can you please advise if there is a missing configuration or something within the configuration that needs to be changed for it to work properly?
Using the htmlpurifier 4.12 with Drupal 9.5.11. We have a text format configured with the following:
Attr: AllowedClasses: null AllowedFrameTargets: "_blank, _self, _parent, _top" AllowedRel: { } AllowedRev: { } ClassUseCDATA: null DefaultImageAlt: null DefaultInvalidImage: '' DefaultInvalidImageAlt: 'Invalid image' DefaultTextDir: ltr EnableID: true ForbiddenClasses: { } ID.HTML5: true IDBlacklist: { } IDBlacklistRegexp: null IDPrefix: '' IDPrefixLocal: '' AutoFormat: AutoParagraph: false Custom: { } DisplayLinkURI: false Linkify: false PurifierLinkify.DocURL: '#%s' PurifierLinkify: false RemoveEmpty.Predicate: colgroup: { } th: { } td: { } iframe:
When a user adds or edits an image and adds or replaces alt text, the alt text does not get saved and always defaults to the original images alt text when it was first created.
If I change to a new text format that does not use the htmlpurifier, the images alt text works as I would expect.
Can you please advise if there is a missing configuration or something within the configuration that needs to be changed for it to work properly?