Skip to content

Commit

Permalink
Update Action Text's Trix dependency
Browse files Browse the repository at this point in the history
There is a new [Trix.js][] release, bumping the version from `1.3.1` to
`2.0.4`.

Applications that consume Action Text through the `@rails/actiontext`
npm package can manage their own Trix dependency version.

Similarly, Importmaps users can `pin "trix", to: "..."` to a CDN serving
`2.0.4`.

For the sake of applications that depend on Trix through the
`action_text` gem, this commit updates the pre-bundled JS and CSS code.

These changes were generated by executing the following:

```sh
cd actiontext
yarn build
cp ../node_modules/trix/dist/trix.css app/assets/stylesheets/trix.css
cp ../node_modules/trix/dist/trix.esm.js app/assets/javascripts/trix.js
```

[Trix.js]: https://trix-editor.org
[v2.0.4]: https://github.com/basecamp/trix/releases/tag/v2.0.4
  • Loading branch information
seanpdoyle committed Jan 23, 2023
1 parent 8d04163 commit fab1b52
Show file tree
Hide file tree
Showing 6 changed files with 18,683 additions and 9,743 deletions.
4 changes: 4 additions & 0 deletions actiontext/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* Update bundled Trix version from `1.3.1` to `2.0.4`.

*Sean Doyle*

* Apply `field_error_proc` to `rich_text_area` form fields.

*Kaíque Kandy Koga*
Expand Down
Loading

0 comments on commit fab1b52

Please sign in to comment.