actiontext 7.0.8.4 → 7.1.0.beta1
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 +36 -162
- data/MIT-LICENSE +1 -1
- data/README.md +2 -2
- data/app/assets/javascripts/actiontext.js +781 -766
- data/app/assets/javascripts/trix.js +13077 -19
- data/app/assets/stylesheets/trix.css +64 -29
- data/app/helpers/action_text/content_helper.rb +17 -4
- data/app/helpers/action_text/tag_helper.rb +9 -1
- 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 +57 -1
- 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 +43 -2
- data/lib/action_text/deprecator.rb +7 -0
- data/lib/action_text/engine.rb +14 -8
- 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 +20 -3
- data/lib/generators/action_text/install/templates/actiontext.css +0 -4
- data/package.json +7 -6
- metadata +18 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff6d3d54018c8afe0b6ac198891859f46c6123de79c1e8c9e1b96eff64b089c5
|
4
|
+
data.tar.gz: 9699239744fc76adf7e245610dcdd36dd964ab8805dda53846144e0193b56242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ff95258403ed1acbc72509381b2a35d6a2e74362451fce7f413625faf06bb94947a6923e6dab7b29c8d707dbd2cc89790628354f2d3f70dfcc515f8c247669
|
7
|
+
data.tar.gz: 9fe3dead550cf29b88c4eff21f19de3f520594833052d7c9a79699511c50b3888200d03651023f78850abed0af5e0c3b5c57992945944d165762f6bb5c97af7b
|
data/CHANGELOG.md
CHANGED
@@ -1,184 +1,58 @@
|
|
1
|
-
## Rails 7.0.
|
1
|
+
## Rails 7.1.0.beta1 (September 13, 2023) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
|
4
|
+
supported.
|
4
5
|
|
6
|
+
Action Text's sanitizer can be configured by setting
|
7
|
+
`config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
|
8
|
+
`Rails::HTML5::Sanitizer`.
|
5
9
|
|
6
|
-
|
10
|
+
The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
|
11
|
+
fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
|
12
|
+
`Rails::HTML4::Sanitizer`.
|
7
13
|
|
8
|
-
|
14
|
+
As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
|
15
|
+
`.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
|
16
|
+
unless set by the application. You may call `sanitizer_allowed_tags` or
|
17
|
+
`sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
|
18
|
+
sanitizer.
|
9
19
|
|
10
|
-
*
|
20
|
+
*Mike Dalessio*
|
11
21
|
|
12
|
-
|
22
|
+
* Attachables now can override default attachment missing template.
|
13
23
|
|
14
|
-
|
24
|
+
When rendering Action Text attachments where the underlying attachable model has
|
25
|
+
been removed, a fallback template is used. You now can override this template on
|
26
|
+
a per-model basis. For example, you could render a placeholder image for a file
|
27
|
+
attachment or the text "Deleted User" for a User attachment.
|
15
28
|
|
16
|
-
*
|
29
|
+
*Matt Swanson*, *Joel Drapper*
|
17
30
|
|
31
|
+
* Update bundled Trix version from `1.3.1` to `2.0.4`.
|
18
32
|
|
19
|
-
|
33
|
+
*Sarah Ridge*, *Sean Doyle*
|
20
34
|
|
21
|
-
*
|
35
|
+
* Apply `field_error_proc` to `rich_text_area` form fields.
|
22
36
|
|
37
|
+
*Kaíque Kandy Koga*
|
23
38
|
|
24
|
-
|
39
|
+
* Action Text attachment URLs rendered in a background job (a la Turbo
|
40
|
+
Streams) now use `Rails.application.default_url_options` and
|
41
|
+
`Rails.application.config.force_ssl` instead of `http://example.org`.
|
25
42
|
|
26
|
-
*
|
43
|
+
*Jonathan Hefner*
|
27
44
|
|
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) ##
|
77
|
-
|
78
|
-
* No changes.
|
79
|
-
|
80
|
-
|
81
|
-
## Rails 7.0.3.1 (July 12, 2022) ##
|
82
|
-
|
83
|
-
* No changes.
|
84
|
-
|
85
|
-
|
86
|
-
## Rails 7.0.3 (May 09, 2022) ##
|
87
|
-
|
88
|
-
* No changes.
|
89
|
-
|
90
|
-
|
91
|
-
## Rails 7.0.2.4 (April 26, 2022) ##
|
92
|
-
|
93
|
-
* No changes.
|
94
|
-
|
95
|
-
|
96
|
-
## Rails 7.0.2.3 (March 08, 2022) ##
|
97
|
-
|
98
|
-
* No changes.
|
99
|
-
|
100
|
-
|
101
|
-
## Rails 7.0.2.2 (February 11, 2022) ##
|
102
|
-
|
103
|
-
* No changes.
|
104
|
-
|
105
|
-
|
106
|
-
## Rails 7.0.2.1 (February 11, 2022) ##
|
107
|
-
|
108
|
-
* No changes.
|
109
|
-
|
110
|
-
|
111
|
-
## Rails 7.0.2 (February 08, 2022) ##
|
112
|
-
|
113
|
-
* No changes.
|
114
|
-
|
115
|
-
|
116
|
-
## Rails 7.0.1 (January 06, 2022) ##
|
117
|
-
|
118
|
-
* No changes.
|
119
|
-
|
120
|
-
|
121
|
-
## Rails 7.0.0 (December 15, 2021) ##
|
122
|
-
|
123
|
-
* No changes.
|
124
|
-
|
125
|
-
|
126
|
-
## Rails 7.0.0.rc3 (December 14, 2021) ##
|
127
|
-
|
128
|
-
* No changes.
|
129
|
-
|
130
|
-
|
131
|
-
## Rails 7.0.0.rc2 (December 14, 2021) ##
|
132
|
-
|
133
|
-
* No changes.
|
134
|
-
|
135
|
-
## Rails 7.0.0.rc1 (December 06, 2021) ##
|
136
|
-
|
137
|
-
* Fix an issue with how nested lists were displayed when converting to plain text
|
138
|
-
|
139
|
-
*Matt Swanson*
|
140
|
-
|
141
|
-
* Allow passing in a custom `direct_upload_url` or `blob_url_template` to `rich_text_area_tag`.
|
142
|
-
|
143
|
-
*Lucas Mansur*
|
144
|
-
|
145
|
-
|
146
|
-
## Rails 7.0.0.alpha2 (September 15, 2021) ##
|
147
|
-
|
148
|
-
* No changes.
|
149
|
-
|
150
|
-
|
151
|
-
## Rails 7.0.0.alpha1 (September 15, 2021) ##
|
152
|
-
|
153
|
-
* Make the Action Text + Trix JavaScript and CSS available through the asset pipeline.
|
154
|
-
|
155
|
-
*DHH*
|
156
|
-
|
157
|
-
* OpenSSL constants are now used for Digest computations.
|
158
|
-
|
159
|
-
*Dirkjan Bussink*
|
160
|
-
|
161
|
-
* Add support for passing `form:` option to `rich_text_area_tag` and
|
162
|
-
`rich_text_area` helpers to specify the `<input type="hidden" form="...">`
|
163
|
-
value.
|
45
|
+
* Support `strict_loading:` option for `has_rich_text` declaration
|
164
46
|
|
165
47
|
*Sean Doyle*
|
166
48
|
|
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*
|
49
|
+
* Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
|
178
50
|
|
179
|
-
*
|
51
|
+
*Jamis Buck*
|
180
52
|
|
181
|
-
|
53
|
+
* Fix an issue that caused the content layout to render multiple times when a
|
54
|
+
rich_text field was updated.
|
182
55
|
|
56
|
+
*Jacob Herrington*
|
183
57
|
|
184
|
-
Please check [
|
58
|
+
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
|
|