Skip to content

Releases: basecamp/trix

v2.1.19

Choose a tag to compare

@flavorjones flavorjones released this 09 May 16:51
23ab2f6

Dependencies


Full Changelog: v2.1.18...v2.1.19

v2.1.18

Choose a tag to compare

@flavorjones flavorjones released this 26 Mar 22:22
da88699

Security

  • Sanitize javascript: URI in JSON drag-drop deserialization by @flavorjones in #1293

Infrastructure/CI

Full Changelog: v2.1.17...v2.1.18

v2.1.17

Choose a tag to compare

@flavorjones flavorjones released this 11 Mar 18:19
2e46d51

Security

  • Address potential XSS vector via data-trix-serialized-attributes sanitizer bypass by @flavorjones in #1282

Bug fixes

  • Fix bullets merging with prior elements on Firefox when the first node is removed by @monorkin in #1280

Infrastructure/CI

Chores

New Contributors

Full Changelog: v2.1.16...v2.1.17

v2.1.16

Choose a tag to compare

@flavorjones flavorjones released this 30 Dec 20:26
5c8b688

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

Choose a tag to compare

@djmb djmb released this 08 May 09:38

v2.1.14

Choose a tag to compare

@flavorjones flavorjones released this 29 Apr 10:50

What's Changed

New Contributors

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

v2.1.13

Choose a tag to compare

@jorgemanrubia jorgemanrubia released this 10 Mar 10:39

What's Changed

New Contributors

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

v2.1.12

Choose a tag to compare

@intrip intrip released this 03 Jan 08:56

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

Choose a tag to compare

@djmb djmb released this 18 Dec 09:55

What's Changed

New Contributors

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

1.3.5

Choose a tag to compare

@djmb djmb released this 11 Dec 11:41
Trix 1.3.5