actiontext 7.0.8.1 → 7.2.2.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 +43 -124
- 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 +13612 -5170
- data/app/assets/stylesheets/trix.css +67 -30
- data/app/helpers/action_text/content_helper.rb +28 -4
- data/app/helpers/action_text/tag_helper.rb +44 -30
- data/app/models/action_text/encrypted_rich_text.rb +4 -2
- data/app/models/action_text/record.rb +2 -0
- data/app/models/action_text/rich_text.rb +66 -6
- data/app/views/action_text/attachables/_content_attachment.html.erb +3 -0
- data/db/migrate/20180528164100_create_action_text_tables.rb +1 -1
- data/lib/action_text/attachable.rb +71 -5
- data/lib/action_text/attachables/content_attachment.rb +22 -18
- data/lib/action_text/attachables/missing_attachable.rb +19 -3
- data/lib/action_text/attachables/remote_image.rb +2 -0
- data/lib/action_text/attachment.rb +45 -2
- data/lib/action_text/attachment_gallery.rb +2 -0
- data/lib/action_text/attachments/caching.rb +2 -0
- data/lib/action_text/attachments/minification.rb +2 -0
- data/lib/action_text/attachments/trix_conversion.rb +2 -0
- data/lib/action_text/attribute.rb +40 -21
- data/lib/action_text/content.rb +68 -3
- data/lib/action_text/deprecator.rb +9 -0
- data/lib/action_text/encryption.rb +2 -0
- data/lib/action_text/engine.rb +17 -9
- data/lib/action_text/fixture_set.rb +35 -33
- data/lib/action_text/fragment.rb +8 -3
- data/lib/action_text/gem_version.rb +5 -3
- data/lib/action_text/html_conversion.rb +3 -1
- data/lib/action_text/plain_text_conversion.rb +8 -1
- data/lib/action_text/rendering.rb +7 -2
- data/lib/action_text/serialization.rb +2 -0
- data/lib/action_text/system_test_helper.rb +20 -17
- data/lib/action_text/trix_attachment.rb +4 -2
- data/lib/action_text/version.rb +3 -1
- data/lib/action_text.rb +19 -0
- data/lib/generators/action_text/install/install_generator.rb +29 -5
- data/lib/generators/action_text/install/templates/actiontext.css +0 -4
- data/lib/rails/generators/test_unit/install_generator.rb +2 -0
- data/package.json +7 -7
- metadata +21 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae880abbc66a8b853cce05dc41d2962a78d7ce409fb7329a58f39bb1621cf4b2
|
4
|
+
data.tar.gz: 0eed3fd02e87093e9520e90577fe1fd560e0ef7da9eaa7ccb1e49751d50362ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2628de4f89b6f688536e657b1e89d058ae119b5c4f253b836cf51b96a35949bccc673e9a86f9e1dbc35013d66651534e1bb94460ce7374b88ef6575f22d5fa
|
7
|
+
data.tar.gz: ad9de254ed7ab1ceb550c44fbae23a594e2abbcaf3533460eb9ecb0544eda5024c6f7c7d3d576c13511bfc11ada6b69f5a75bbf3e1c31cd6afcb1d6121733977
|
data/CHANGELOG.md
CHANGED
@@ -1,166 +1,85 @@
|
|
1
|
-
## Rails 7.
|
2
|
-
|
3
|
-
* No changes.
|
4
|
-
|
5
|
-
|
6
|
-
## Rails 7.0.8 (September 09, 2023) ##
|
7
|
-
|
8
|
-
* No changes.
|
9
|
-
|
10
|
-
|
11
|
-
## Rails 7.0.7.2 (August 22, 2023) ##
|
12
|
-
|
13
|
-
* No changes.
|
14
|
-
|
15
|
-
|
16
|
-
## Rails 7.0.7.1 (August 22, 2023) ##
|
17
|
-
|
18
|
-
* No changes.
|
19
|
-
|
20
|
-
|
21
|
-
## Rails 7.0.7 (August 09, 2023) ##
|
22
|
-
|
23
|
-
* No changes.
|
24
|
-
|
25
|
-
|
26
|
-
## Rails 7.0.6 (June 29, 2023) ##
|
27
|
-
|
28
|
-
* No changes.
|
29
|
-
|
30
|
-
|
31
|
-
## Rails 7.0.5.1 (June 26, 2023) ##
|
32
|
-
|
33
|
-
* No changes.
|
34
|
-
|
35
|
-
|
36
|
-
## Rails 7.0.5 (May 24, 2023) ##
|
37
|
-
|
38
|
-
* Fix `ActionText::Attachable#as_json`.
|
39
|
-
|
40
|
-
*Alexandre Ruban*
|
41
|
-
|
42
|
-
|
43
|
-
## Rails 7.0.4.3 (March 13, 2023) ##
|
44
|
-
|
45
|
-
* No changes.
|
46
|
-
|
47
|
-
|
48
|
-
## Rails 7.0.4.2 (January 24, 2023) ##
|
49
|
-
|
50
|
-
* No changes.
|
1
|
+
## Rails 7.2.2.1 (December 10, 2024) ##
|
51
2
|
|
3
|
+
* Update vendored trix version to 2.1.10
|
52
4
|
|
53
|
-
|
5
|
+
*John Hawthorn*
|
54
6
|
|
55
|
-
* No changes.
|
56
|
-
|
57
|
-
|
58
|
-
## Rails 7.0.4 (September 09, 2022) ##
|
59
|
-
|
60
|
-
* No changes.
|
61
|
-
|
62
|
-
|
63
|
-
## Rails 7.0.3.1 (July 12, 2022) ##
|
64
|
-
|
65
|
-
* No changes.
|
66
|
-
|
67
|
-
|
68
|
-
## Rails 7.0.3 (May 09, 2022) ##
|
69
|
-
|
70
|
-
* No changes.
|
71
|
-
|
72
|
-
|
73
|
-
## Rails 7.0.2.4 (April 26, 2022) ##
|
74
|
-
|
75
|
-
* No changes.
|
76
|
-
|
77
|
-
|
78
|
-
## Rails 7.0.2.3 (March 08, 2022) ##
|
79
7
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
## Rails 7.0.2.2 (February 11, 2022) ##
|
8
|
+
## Rails 7.2.2 (October 30, 2024) ##
|
84
9
|
|
85
10
|
* No changes.
|
86
11
|
|
87
12
|
|
88
|
-
## Rails 7.
|
13
|
+
## Rails 7.2.1.2 (October 23, 2024) ##
|
89
14
|
|
90
15
|
* No changes.
|
91
16
|
|
92
17
|
|
93
|
-
## Rails 7.
|
94
|
-
|
95
|
-
* No changes.
|
96
|
-
|
18
|
+
## Rails 7.2.1.1 (October 15, 2024) ##
|
97
19
|
|
98
|
-
|
20
|
+
* Avoid backtracing in plain_text_for_blockquote_node
|
99
21
|
|
100
|
-
|
22
|
+
[CVE-2024-47888]
|
101
23
|
|
24
|
+
*John Hawthorn*
|
102
25
|
|
103
|
-
## Rails 7.
|
26
|
+
## Rails 7.2.1 (August 22, 2024) ##
|
104
27
|
|
105
|
-
*
|
28
|
+
* Strip `content` attribute if the key is present but the value is empty
|
106
29
|
|
30
|
+
*Jeremy Green*
|
107
31
|
|
108
|
-
## Rails 7.0.0.rc3 (December 14, 2021) ##
|
109
32
|
|
110
|
-
|
33
|
+
## Rails 7.2.0 (August 09, 2024) ##
|
34
|
+
* Only sanitize `content` attribute when present in attachments.
|
111
35
|
|
36
|
+
*Petrik de Heus*
|
112
37
|
|
113
|
-
|
38
|
+
* Sanitize ActionText HTML ContentAttachment in Trix edit view
|
39
|
+
[CVE-2024-32464]
|
114
40
|
|
115
|
-
*
|
41
|
+
*Aaron Patterson*, *Zack Deveau*
|
116
42
|
|
117
|
-
|
43
|
+
* Use `includes` instead of `eager_load` for `with_all_rich_text`.
|
118
44
|
|
119
|
-
*
|
45
|
+
*Petrik de Heus*
|
120
46
|
|
121
|
-
|
47
|
+
* Delegate `ActionText::Content#deconstruct` to `Nokogiri::XML::DocumentFragment#elements`.
|
122
48
|
|
123
|
-
|
49
|
+
```ruby
|
50
|
+
content = ActionText::Content.new <<~HTML
|
51
|
+
<h1>Hello, world</h1>
|
124
52
|
|
125
|
-
|
53
|
+
<div>The body</div>
|
54
|
+
HTML
|
126
55
|
|
56
|
+
content => [h1, div]
|
127
57
|
|
128
|
-
|
58
|
+
assert_pattern { h1 => { content: "Hello, world" } }
|
59
|
+
assert_pattern { div => { content: "The body" } }
|
60
|
+
```
|
129
61
|
|
130
|
-
*
|
131
|
-
|
132
|
-
|
133
|
-
## Rails 7.0.0.alpha1 (September 15, 2021) ##
|
134
|
-
|
135
|
-
* Make the Action Text + Trix JavaScript and CSS available through the asset pipeline.
|
136
|
-
|
137
|
-
*DHH*
|
138
|
-
|
139
|
-
* OpenSSL constants are now used for Digest computations.
|
62
|
+
*Sean Doyle*
|
140
63
|
|
141
|
-
|
64
|
+
* Fix all Action Text database related models to respect
|
65
|
+
`ActiveRecord::Base.table_name_prefix` configuration.
|
142
66
|
|
143
|
-
*
|
144
|
-
`rich_text_area` helpers to specify the `<input type="hidden" form="...">`
|
145
|
-
value.
|
67
|
+
*Chedli Bourguiba*
|
146
68
|
|
147
|
-
|
69
|
+
* Compile ESM package that can be used directly in the browser as actiontext.esm.js
|
148
70
|
|
149
|
-
*
|
71
|
+
*Matias Grunberg*
|
150
72
|
|
151
|
-
|
73
|
+
* Fix using actiontext.js with Sprockets.
|
152
74
|
|
153
|
-
*
|
154
|
-
extensible `layouts/action_view/contents/_content.html.erb` template to
|
155
|
-
encourage user-land customizations, while retaining private API control over how
|
156
|
-
the rich text itself is rendered by `action_text/contents/_content.html.erb`
|
157
|
-
partial.
|
75
|
+
*Matias Grunberg*
|
158
76
|
|
159
|
-
|
77
|
+
* Upgrade Trix to 2.0.7
|
160
78
|
|
161
|
-
*
|
79
|
+
*Hartley McGuire*
|
162
80
|
|
163
|
-
|
81
|
+
* Fix using Trix with Sprockets.
|
164
82
|
|
83
|
+
*Hartley McGuire*
|
165
84
|
|
166
|
-
Please check [
|
85
|
+
Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-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
|
|