Skip to content

Releases: basecamp/trix

v2.1.16

30 Dec 20:26
5c8b688

Choose a tag to compare

Security

  • Attachment href attributes are now validated using DOMPurify.isValidAttribute() before rendering as anchor tags. @flavorjones

Added

  • New .editorElements and .editorElement properties have been added to <trix-toolbar> elements for accessing associated <trix-editor> elements. @seanpdoyle #1127
  • <trix-editor> elements can now function without an associated <input type="hidden"> element when using ElementInternals. This is configured by setting willCreateInput = false in the before-trix-initialize event and using the [name] attribute for form submissions. @seanpdoyle #1128
  • Alt text can now be set on attachment preview images via attachment.setAttributes({ alt: "..." }) in trix-attachment-add event handlers. @seanpdoyle #1198
  • Attachment preview URLs can be customized using the new setPreviewURL() and getPreviewURL() methods on ManagedAttachment, accessible from event handlers. @seanpdoyle #1210
  • A new trix-before-render event is dispatched before rendering, with a customizable render property for advanced use cases like morph-style rendering integration. @seanpdoyle #1252
  • When no associated <input> element is present, HTML content within <trix-editor> tags is now safely sanitized and loaded as the initial editor value. @seanpdoyle #1253

New Contributors

Full Changelog: v2.1.15...v2.1.16

v2.1.15

08 May 09:38

Choose a tag to compare

v2.1.14

29 Apr 10:50

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.13...v2.1.14

v2.1.13

10 Mar 10:39

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.12...v2.1.13

v2.1.12

03 Jan 08:56

Choose a tag to compare

What's Changed

  • Fix XSS via javascript: or data: url in a link by @intrip in 180c8d3

Full changelog: v2.1.11...v2.1.12

v2.1.11

18 Dec 09:55

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.10...v2.1.11

1.3.5

11 Dec 11:41

Choose a tag to compare

Trix 1.3.5

v2.1.10

10 Dec 12:25

Choose a tag to compare

What's Changed

Full Changelog: v2.1.9...v2.1.10

v2.1.9

10 Dec 12:25

Choose a tag to compare

What's Changed

Full Changelog: v2.1.8...v2.1.9

1.3.4

09 Dec 12:27

Choose a tag to compare

Trix 1.3.4