actiontext 7.0.8.4 → 7.1.3.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actiontext might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +56 -115
- 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 +12163 -19
- 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 +45 -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 +3 -3
- 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: d51a41ff03b550ac428a52ce89ee785539d2ac0b386c5597f4c06b763070d054
|
4
|
+
data.tar.gz: 85028cdc38e4448c321e17190924c602f7bd940588307ef42206c7e0842ba31a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 417dec3ad3e197b566e52b5b42356481d6a5f54e1a792b5f16c7eeaa45137b2a4bdeeb32e83fd890d884fc60864e7d6062ebe25115710a40de06df3c93812c95
|
7
|
+
data.tar.gz: ab1691bf97b79a8f2b644b6bf324c06fc663fd8ca2ba4641a906fcf7062a4c4acb4103b25b405561fc21e81198ce7b7541a9d02921d137ae14de6eb75d01b1c7
|
data/CHANGELOG.md
CHANGED
@@ -1,184 +1,125 @@
|
|
1
|
-
## Rails 7.
|
1
|
+
## Rails 7.1.3.4 (June 04, 2024) ##
|
2
2
|
|
3
|
-
*
|
4
|
-
|
5
|
-
|
6
|
-
## Rails 7.0.8.3 (May 17, 2024) ##
|
7
|
-
|
8
|
-
* Fix vendored trix.css to be correct file.
|
3
|
+
* Sanitize ActionText HTML ContentAttachment in Trix edit view
|
4
|
+
[CVE-2024-32464]
|
9
5
|
|
10
|
-
*Hartley McGuire*
|
11
6
|
|
12
|
-
## Rails 7.
|
7
|
+
## Rails 7.1.3.3 (May 16, 2024) ##
|
13
8
|
|
14
9
|
* Upgrade Trix to 1.3.2 to fix [CVE-2024-34341](https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99).
|
15
10
|
|
16
11
|
*Rafael Mendonça França*
|
17
12
|
|
18
13
|
|
19
|
-
## Rails 7.
|
20
|
-
|
21
|
-
* No changes.
|
22
|
-
|
23
|
-
|
24
|
-
## Rails 7.0.8 (September 09, 2023) ##
|
25
|
-
|
26
|
-
* No changes.
|
27
|
-
|
28
|
-
|
29
|
-
## Rails 7.0.7.2 (August 22, 2023) ##
|
30
|
-
|
31
|
-
* No changes.
|
32
|
-
|
33
|
-
|
34
|
-
## Rails 7.0.7.1 (August 22, 2023) ##
|
35
|
-
|
36
|
-
* No changes.
|
37
|
-
|
38
|
-
|
39
|
-
## Rails 7.0.7 (August 09, 2023) ##
|
40
|
-
|
41
|
-
* No changes.
|
42
|
-
|
43
|
-
|
44
|
-
## Rails 7.0.6 (June 29, 2023) ##
|
45
|
-
|
46
|
-
* No changes.
|
47
|
-
|
48
|
-
|
49
|
-
## Rails 7.0.5.1 (June 26, 2023) ##
|
50
|
-
|
51
|
-
* No changes.
|
52
|
-
|
53
|
-
|
54
|
-
## Rails 7.0.5 (May 24, 2023) ##
|
55
|
-
|
56
|
-
* Fix `ActionText::Attachable#as_json`.
|
57
|
-
|
58
|
-
*Alexandre Ruban*
|
59
|
-
|
60
|
-
|
61
|
-
## Rails 7.0.4.3 (March 13, 2023) ##
|
62
|
-
|
63
|
-
* No changes.
|
64
|
-
|
65
|
-
|
66
|
-
## Rails 7.0.4.2 (January 24, 2023) ##
|
67
|
-
|
68
|
-
* No changes.
|
69
|
-
|
70
|
-
|
71
|
-
## Rails 7.0.4.1 (January 17, 2023) ##
|
72
|
-
|
73
|
-
* No changes.
|
74
|
-
|
75
|
-
|
76
|
-
## Rails 7.0.4 (September 09, 2022) ##
|
14
|
+
## Rails 7.1.3.2 (February 21, 2024) ##
|
77
15
|
|
78
16
|
* No changes.
|
79
17
|
|
80
18
|
|
81
|
-
## Rails 7.
|
19
|
+
## Rails 7.1.3.1 (February 21, 2024) ##
|
82
20
|
|
83
21
|
* No changes.
|
84
22
|
|
85
23
|
|
86
|
-
## Rails 7.
|
24
|
+
## Rails 7.1.3 (January 16, 2024) ##
|
87
25
|
|
88
26
|
* No changes.
|
89
27
|
|
90
28
|
|
91
|
-
## Rails 7.
|
92
|
-
|
93
|
-
* No changes.
|
94
|
-
|
29
|
+
## Rails 7.1.2 (November 10, 2023) ##
|
95
30
|
|
96
|
-
|
31
|
+
* Compile ESM package that can be used directly in the browser as `actiontext.esm.js`.
|
97
32
|
|
98
|
-
*
|
33
|
+
*Matias Grunberg*
|
99
34
|
|
35
|
+
* Fix using actiontext.js with Sprockets.
|
100
36
|
|
101
|
-
|
37
|
+
*Matias Grunberg*
|
102
38
|
|
103
|
-
*
|
39
|
+
* Upgrade Trix to 2.0.7.
|
104
40
|
|
41
|
+
*Hartley McGuire*
|
105
42
|
|
106
|
-
|
43
|
+
* Fix using Trix with Sprockets.
|
107
44
|
|
108
|
-
*
|
45
|
+
*Hartley McGuire*
|
109
46
|
|
110
47
|
|
111
|
-
## Rails 7.
|
48
|
+
## Rails 7.1.1 (October 11, 2023) ##
|
112
49
|
|
113
50
|
* No changes.
|
114
51
|
|
115
52
|
|
116
|
-
## Rails 7.0
|
53
|
+
## Rails 7.1.0 (October 05, 2023) ##
|
117
54
|
|
118
55
|
* No changes.
|
119
56
|
|
120
57
|
|
121
|
-
## Rails 7.0.
|
58
|
+
## Rails 7.1.0.rc2 (October 01, 2023) ##
|
122
59
|
|
123
60
|
* No changes.
|
124
61
|
|
125
62
|
|
126
|
-
## Rails 7.
|
63
|
+
## Rails 7.1.0.rc1 (September 27, 2023) ##
|
127
64
|
|
128
65
|
* No changes.
|
129
66
|
|
130
67
|
|
131
|
-
## Rails 7.
|
132
|
-
|
133
|
-
* No changes.
|
68
|
+
## Rails 7.1.0.beta1 (September 13, 2023) ##
|
134
69
|
|
135
|
-
|
70
|
+
* Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
|
71
|
+
supported.
|
136
72
|
|
137
|
-
|
73
|
+
Action Text's sanitizer can be configured by setting
|
74
|
+
`config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
|
75
|
+
`Rails::HTML5::Sanitizer`.
|
138
76
|
|
139
|
-
|
77
|
+
The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
|
78
|
+
fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
|
79
|
+
`Rails::HTML4::Sanitizer`.
|
140
80
|
|
141
|
-
|
81
|
+
As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
|
82
|
+
`.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
|
83
|
+
unless set by the application. You may call `sanitizer_allowed_tags` or
|
84
|
+
`sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
|
85
|
+
sanitizer.
|
142
86
|
|
143
|
-
*
|
87
|
+
*Mike Dalessio*
|
144
88
|
|
89
|
+
* Attachables now can override default attachment missing template.
|
145
90
|
|
146
|
-
|
91
|
+
When rendering Action Text attachments where the underlying attachable model has
|
92
|
+
been removed, a fallback template is used. You now can override this template on
|
93
|
+
a per-model basis. For example, you could render a placeholder image for a file
|
94
|
+
attachment or the text "Deleted User" for a User attachment.
|
147
95
|
|
148
|
-
*
|
96
|
+
*Matt Swanson*, *Joel Drapper*
|
149
97
|
|
98
|
+
* Update bundled Trix version from `1.3.1` to `2.0.4`.
|
150
99
|
|
151
|
-
|
100
|
+
*Sarah Ridge*, *Sean Doyle*
|
152
101
|
|
153
|
-
*
|
102
|
+
* Apply `field_error_proc` to `rich_text_area` form fields.
|
154
103
|
|
155
|
-
*
|
104
|
+
*Kaíque Kandy Koga*
|
156
105
|
|
157
|
-
*
|
106
|
+
* Action Text attachment URLs rendered in a background job (a la Turbo
|
107
|
+
Streams) now use `Rails.application.default_url_options` and
|
108
|
+
`Rails.application.config.force_ssl` instead of `http://example.org`.
|
158
109
|
|
159
|
-
*
|
110
|
+
*Jonathan Hefner*
|
160
111
|
|
161
|
-
*
|
162
|
-
`rich_text_area` helpers to specify the `<input type="hidden" form="...">`
|
163
|
-
value.
|
112
|
+
* Support `strict_loading:` option for `has_rich_text` declaration
|
164
113
|
|
165
114
|
*Sean Doyle*
|
166
115
|
|
167
|
-
*
|
168
|
-
|
169
|
-
*Mark VanLandingham*
|
170
|
-
|
171
|
-
* Expose how we render the HTML _surrounding_ rich text content as an
|
172
|
-
extensible `layouts/action_view/contents/_content.html.erb` template to
|
173
|
-
encourage user-land customizations, while retaining private API control over how
|
174
|
-
the rich text itself is rendered by `action_text/contents/_content.html.erb`
|
175
|
-
partial.
|
176
|
-
|
177
|
-
*Sean Doyle*
|
116
|
+
* Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
|
178
117
|
|
179
|
-
*
|
118
|
+
*Jamis Buck*
|
180
119
|
|
181
|
-
|
120
|
+
* Fix an issue that caused the content layout to render multiple times when a
|
121
|
+
rich_text field was updated.
|
182
122
|
|
123
|
+
*Jacob Herrington*
|
183
124
|
|
184
|
-
Please check [
|
125
|
+
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
|
|