actiontext 7.0.8.7 → 7.1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -113
- data/MIT-LICENSE +1 -1
- data/README.md +2 -2
- data/app/assets/javascripts/actiontext.esm.js +889 -0
- data/app/assets/javascripts/actiontext.js +55 -73
- data/app/assets/javascripts/trix.js +13718 -25
- data/app/assets/stylesheets/trix.css +67 -30
- data/app/helpers/action_text/content_helper.rb +26 -4
- data/app/helpers/action_text/tag_helper.rb +11 -7
- data/app/models/action_text/encrypted_rich_text.rb +2 -0
- data/app/models/action_text/rich_text.rb +29 -1
- data/app/views/action_text/attachables/_content_attachment.html.erb +3 -0
- data/lib/action_text/attachable.rb +69 -5
- data/lib/action_text/attachables/content_attachment.rb +20 -18
- data/lib/action_text/attachables/missing_attachable.rb +17 -3
- data/lib/action_text/attachment.rb +43 -2
- data/lib/action_text/attribute.rb +10 -5
- data/lib/action_text/content.rb +48 -3
- data/lib/action_text/deprecator.rb +7 -0
- data/lib/action_text/engine.rb +15 -9
- data/lib/action_text/fixture_set.rb +2 -0
- data/lib/action_text/fragment.rb +4 -3
- data/lib/action_text/gem_version.rb +4 -4
- data/lib/action_text/html_conversion.rb +1 -1
- data/lib/action_text/rendering.rb +5 -2
- data/lib/action_text/trix_attachment.rb +2 -2
- data/lib/action_text/version.rb +1 -1
- data/lib/action_text.rb +19 -0
- data/lib/generators/action_text/install/install_generator.rb +21 -4
- data/lib/generators/action_text/install/templates/actiontext.css +0 -4
- data/package.json +7 -7
- metadata +15 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb74f8a7619b8294b0f780f649611245104b6024e96887adad4ccdafb54076db
|
4
|
+
data.tar.gz: 97c1d24e0a68191e7909bdbb7bd4f63a61086c73a4d4f8c64921fe0150c04c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ba1c7ad2177a86adc5d155070860fd09f5c4fe2485912dad6419aa748e0d6843cf874bc69361cee342096b86ac7cfc30038727473e5f09434457b328b48f53d
|
7
|
+
data.tar.gz: d1ee2ce1e3f1c4d2c0063251d2257aefa03b3fd7db4eeca59143f033ecb0da68c2c787e02bba421ac3b11d944acebc51b4bce3a01cd83b7ef38cc0213543cff5
|
data/CHANGELOG.md
CHANGED
@@ -1,203 +1,162 @@
|
|
1
|
-
## Rails 7.
|
1
|
+
## Rails 7.1.5.1 (December 10, 2024) ##
|
2
2
|
|
3
|
-
* Update vendored trix version to 1.
|
3
|
+
* Update vendored trix version to 2.1.10
|
4
4
|
|
5
5
|
*John Hawthorn*
|
6
6
|
|
7
7
|
|
8
|
-
## Rails 7.
|
8
|
+
## Rails 7.1.5 (October 30, 2024) ##
|
9
9
|
|
10
10
|
* No changes.
|
11
11
|
|
12
12
|
|
13
|
-
## Rails 7.
|
14
|
-
|
15
|
-
* Avoid backtracing in plain_text_for_blockquote_node
|
16
|
-
|
17
|
-
[CVE-2024-47888]
|
18
|
-
|
19
|
-
|
20
|
-
## Rails 7.0.8.4 (June 04, 2024) ##
|
21
|
-
|
22
|
-
* No changes.
|
23
|
-
|
24
|
-
|
25
|
-
## Rails 7.0.8.3 (May 17, 2024) ##
|
26
|
-
|
27
|
-
* Fix vendored trix.css to be correct file.
|
28
|
-
|
29
|
-
*Hartley McGuire*
|
30
|
-
|
31
|
-
## Rails 7.0.8.2 (May 16, 2024) ##
|
32
|
-
|
33
|
-
* Upgrade Trix to 1.3.2 to fix [CVE-2024-34341](https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99).
|
34
|
-
|
35
|
-
*Rafael Mendonça França*
|
36
|
-
|
37
|
-
|
38
|
-
## Rails 7.0.8.1 (February 21, 2024) ##
|
39
|
-
|
40
|
-
* No changes.
|
41
|
-
|
42
|
-
|
43
|
-
## Rails 7.0.8 (September 09, 2023) ##
|
44
|
-
|
45
|
-
* No changes.
|
46
|
-
|
47
|
-
|
48
|
-
## Rails 7.0.7.2 (August 22, 2023) ##
|
49
|
-
|
50
|
-
* No changes.
|
51
|
-
|
52
|
-
|
53
|
-
## Rails 7.0.7.1 (August 22, 2023) ##
|
13
|
+
## Rails 7.1.4.2 (October 23, 2024) ##
|
54
14
|
|
55
15
|
* No changes.
|
56
16
|
|
57
17
|
|
58
|
-
## Rails 7.
|
18
|
+
## Rails 7.1.4.1 (October 15, 2024) ##
|
59
19
|
|
60
|
-
*
|
61
|
-
|
62
|
-
|
63
|
-
## Rails 7.0.6 (June 29, 2023) ##
|
64
|
-
|
65
|
-
* No changes.
|
66
|
-
|
67
|
-
|
68
|
-
## Rails 7.0.5.1 (June 26, 2023) ##
|
20
|
+
* Avoid backtracing in plain_text_for_blockquote_node
|
69
21
|
|
70
|
-
|
22
|
+
[CVE-2024-47888]
|
71
23
|
|
24
|
+
*John Hawthorn*
|
72
25
|
|
73
|
-
## Rails 7.
|
26
|
+
## Rails 7.1.4 (August 22, 2024) ##
|
74
27
|
|
75
|
-
*
|
28
|
+
* Strip `content` attribute if the key is present but the value is empty
|
76
29
|
|
77
|
-
*
|
30
|
+
*Jeremy Green*
|
78
31
|
|
32
|
+
* Only sanitize `content` attribute when present in attachments.
|
79
33
|
|
80
|
-
|
34
|
+
*Petrik de Heus*
|
81
35
|
|
82
|
-
* No changes.
|
83
36
|
|
37
|
+
## Rails 7.1.3.4 (June 04, 2024) ##
|
84
38
|
|
85
|
-
|
39
|
+
* Sanitize ActionText HTML ContentAttachment in Trix edit view
|
40
|
+
[CVE-2024-32464]
|
86
41
|
|
87
|
-
*
|
42
|
+
*Aaron Patterson*
|
88
43
|
|
44
|
+
## Rails 7.1.3.3 (May 16, 2024) ##
|
89
45
|
|
90
|
-
|
46
|
+
* Upgrade Trix to 2.1.1 to fix [CVE-2024-34341](https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99).
|
91
47
|
|
92
|
-
*
|
48
|
+
*Rafael Mendonça França*
|
93
49
|
|
94
50
|
|
95
|
-
## Rails 7.
|
51
|
+
## Rails 7.1.3.2 (February 21, 2024) ##
|
96
52
|
|
97
53
|
* No changes.
|
98
54
|
|
99
55
|
|
100
|
-
## Rails 7.
|
56
|
+
## Rails 7.1.3.1 (February 21, 2024) ##
|
101
57
|
|
102
58
|
* No changes.
|
103
59
|
|
104
60
|
|
105
|
-
## Rails 7.
|
61
|
+
## Rails 7.1.3 (January 16, 2024) ##
|
106
62
|
|
107
63
|
* No changes.
|
108
64
|
|
109
65
|
|
110
|
-
## Rails 7.
|
111
|
-
|
112
|
-
* No changes.
|
66
|
+
## Rails 7.1.2 (November 10, 2023) ##
|
113
67
|
|
68
|
+
* Compile ESM package that can be used directly in the browser as `actiontext.esm.js`.
|
114
69
|
|
115
|
-
|
116
|
-
|
117
|
-
* No changes.
|
70
|
+
*Matias Grunberg*
|
118
71
|
|
72
|
+
* Fix using actiontext.js with Sprockets.
|
119
73
|
|
120
|
-
|
74
|
+
*Matias Grunberg*
|
121
75
|
|
122
|
-
*
|
76
|
+
* Upgrade Trix to 2.0.7.
|
123
77
|
|
78
|
+
*Hartley McGuire*
|
124
79
|
|
125
|
-
|
80
|
+
* Fix using Trix with Sprockets.
|
126
81
|
|
127
|
-
*
|
82
|
+
*Hartley McGuire*
|
128
83
|
|
129
84
|
|
130
|
-
## Rails 7.
|
85
|
+
## Rails 7.1.1 (October 11, 2023) ##
|
131
86
|
|
132
87
|
* No changes.
|
133
88
|
|
134
89
|
|
135
|
-
## Rails 7.0
|
90
|
+
## Rails 7.1.0 (October 05, 2023) ##
|
136
91
|
|
137
92
|
* No changes.
|
138
93
|
|
139
94
|
|
140
|
-
## Rails 7.0.
|
95
|
+
## Rails 7.1.0.rc2 (October 01, 2023) ##
|
141
96
|
|
142
97
|
* No changes.
|
143
98
|
|
144
99
|
|
145
|
-
## Rails 7.
|
100
|
+
## Rails 7.1.0.rc1 (September 27, 2023) ##
|
146
101
|
|
147
102
|
* No changes.
|
148
103
|
|
149
104
|
|
150
|
-
## Rails 7.
|
105
|
+
## Rails 7.1.0.beta1 (September 13, 2023) ##
|
151
106
|
|
152
|
-
*
|
153
|
-
|
154
|
-
## Rails 7.0.0.rc1 (December 06, 2021) ##
|
107
|
+
* Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
|
108
|
+
supported.
|
155
109
|
|
156
|
-
|
110
|
+
Action Text's sanitizer can be configured by setting
|
111
|
+
`config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
|
112
|
+
`Rails::HTML5::Sanitizer`.
|
157
113
|
|
158
|
-
|
114
|
+
The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
|
115
|
+
fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
|
116
|
+
`Rails::HTML4::Sanitizer`.
|
159
117
|
|
160
|
-
|
118
|
+
As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
|
119
|
+
`.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
|
120
|
+
unless set by the application. You may call `sanitizer_allowed_tags` or
|
121
|
+
`sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
|
122
|
+
sanitizer.
|
161
123
|
|
162
|
-
*
|
124
|
+
*Mike Dalessio*
|
163
125
|
|
126
|
+
* Attachables now can override default attachment missing template.
|
164
127
|
|
165
|
-
|
128
|
+
When rendering Action Text attachments where the underlying attachable model has
|
129
|
+
been removed, a fallback template is used. You now can override this template on
|
130
|
+
a per-model basis. For example, you could render a placeholder image for a file
|
131
|
+
attachment or the text "Deleted User" for a User attachment.
|
166
132
|
|
167
|
-
*
|
133
|
+
*Matt Swanson*, *Joel Drapper*
|
168
134
|
|
135
|
+
* Update bundled Trix version from `1.3.1` to `2.0.4`.
|
169
136
|
|
170
|
-
|
137
|
+
*Sarah Ridge*, *Sean Doyle*
|
171
138
|
|
172
|
-
*
|
139
|
+
* Apply `field_error_proc` to `rich_text_area` form fields.
|
173
140
|
|
174
|
-
*
|
141
|
+
*Kaíque Kandy Koga*
|
175
142
|
|
176
|
-
*
|
143
|
+
* Action Text attachment URLs rendered in a background job (a la Turbo
|
144
|
+
Streams) now use `Rails.application.default_url_options` and
|
145
|
+
`Rails.application.config.force_ssl` instead of `http://example.org`.
|
177
146
|
|
178
|
-
*
|
147
|
+
*Jonathan Hefner*
|
179
148
|
|
180
|
-
*
|
181
|
-
`rich_text_area` helpers to specify the `<input type="hidden" form="...">`
|
182
|
-
value.
|
149
|
+
* Support `strict_loading:` option for `has_rich_text` declaration
|
183
150
|
|
184
151
|
*Sean Doyle*
|
185
152
|
|
186
|
-
*
|
187
|
-
|
188
|
-
*Mark VanLandingham*
|
189
|
-
|
190
|
-
* Expose how we render the HTML _surrounding_ rich text content as an
|
191
|
-
extensible `layouts/action_view/contents/_content.html.erb` template to
|
192
|
-
encourage user-land customizations, while retaining private API control over how
|
193
|
-
the rich text itself is rendered by `action_text/contents/_content.html.erb`
|
194
|
-
partial.
|
195
|
-
|
196
|
-
*Sean Doyle*
|
153
|
+
* Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
|
197
154
|
|
198
|
-
*
|
155
|
+
*Jamis Buck*
|
199
156
|
|
200
|
-
|
157
|
+
* Fix an issue that caused the content layout to render multiple times when a
|
158
|
+
rich_text field was updated.
|
201
159
|
|
160
|
+
*Jacob Herrington*
|
202
161
|
|
203
|
-
Please check [
|
162
|
+
Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/actiontext/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Action Text
|
2
2
|
|
3
|
-
Action Text brings rich text content and editing to Rails. It includes the [Trix editor](https://trix-editor.org) that handles everything from formatting to links to quotes to lists to embedded images and galleries. The rich text content generated by the Trix editor is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded images (or other attachments) are automatically stored using Active Storage and associated with the included RichText model.
|
3
|
+
Action Text brings rich text content and editing to \Rails. It includes the [Trix editor](https://trix-editor.org) that handles everything from formatting to links to quotes to lists to embedded images and galleries. The rich text content generated by the Trix editor is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded images (or other attachments) are automatically stored using Active Storage and associated with the included RichText model.
|
4
4
|
|
5
|
-
You can read more about Action Text in the [Action Text Overview](https://
|
5
|
+
You can read more about Action Text in the [Action Text Overview](https://guides.rubyonrails.org/action_text_overview.html) guide.
|
6
6
|
|
7
7
|
## Development
|
8
8
|
|