actiontext 6.1.7.9 → 7.0.0.alpha1
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 +19 -195
- data/MIT-LICENSE +1 -1
- data/README.md +4 -0
- data/app/assets/javascripts/actiontext.js +880 -0
- data/app/assets/javascripts/trix.js +5278 -0
- data/app/assets/stylesheets/trix.css +375 -0
- data/app/helpers/action_text/content_helper.rb +17 -3
- data/app/helpers/action_text/tag_helper.rb +5 -7
- data/app/models/action_text/encrypted_rich_text.rb +9 -0
- data/app/models/action_text/record.rb +1 -1
- data/app/models/action_text/rich_text.rb +4 -0
- data/app/views/action_text/contents/_content.html.erb +1 -0
- data/app/views/layouts/action_text/contents/_content.html.erb +3 -0
- data/db/migrate/20180528164100_create_action_text_tables.rb +14 -2
- data/lib/action_text/attachable.rb +4 -0
- data/lib/action_text/attachment.rb +4 -4
- data/lib/action_text/attachment_gallery.rb +14 -9
- data/lib/action_text/attachments/caching.rb +1 -1
- data/lib/action_text/attachments/minification.rb +1 -1
- data/lib/action_text/attribute.rb +18 -2
- data/lib/action_text/content.rb +7 -3
- data/lib/action_text/encryption.rb +38 -0
- data/lib/action_text/engine.rb +14 -0
- data/lib/action_text/fixture_set.rb +49 -0
- data/lib/action_text/gem_version.rb +4 -4
- data/lib/action_text/plain_text_conversion.rb +1 -6
- data/lib/action_text/rendering.rb +1 -1
- data/lib/action_text/serialization.rb +0 -2
- data/lib/action_text/trix_attachment.rb +3 -3
- data/lib/action_text.rb +1 -0
- data/lib/generators/action_text/install/install_generator.rb +28 -35
- data/lib/generators/action_text/install/templates/actiontext.css +35 -0
- data/package.json +13 -3
- metadata +25 -20
- data/app/views/action_text/content/_layout.html.erb +0 -3
- data/lib/generators/action_text/install/templates/actiontext.scss +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f0735e66acca9916e461de2094203f923aab79749a70eb10de2d060d70f7784
|
4
|
+
data.tar.gz: e22fa48ba71858e0bd786690fe7521a99a8edde6194db6955cf1a477a3d7a0eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b5ec0e335aa42817f62436ab55e5b5eba6616ccf7ba562f48dac68faf48af82536f843a3f4b5c6c1a85416aea937a455685bc65125b2c0ea0434a71506e0fc0
|
7
|
+
data.tar.gz: d15c8203e48105087852dd8f7dfdba4198cb6e62c9e50b053672ece3d0aafc9c45b127092d2c5c674181b50c8ab687640009d6683f3d4ae30c0bdc2bbc5c8af0
|
data/CHANGELOG.md
CHANGED
@@ -1,210 +1,34 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 7.0.0.alpha1 (September 15, 2021) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Make the Action Text + Trix JavaScript and CSS available through the asset pipeline.
|
4
4
|
|
5
|
-
|
5
|
+
*DHH*
|
6
6
|
|
7
|
+
* OpenSSL constants are now used for Digest computations.
|
7
8
|
|
8
|
-
|
9
|
+
*Dirkjan Bussink*
|
9
10
|
|
10
|
-
*
|
11
|
-
|
12
|
-
|
13
|
-
## Rails 6.1.7.7 (February 21, 2024) ##
|
14
|
-
|
15
|
-
* No changes.
|
16
|
-
|
17
|
-
|
18
|
-
## Rails 6.1.7.6 (August 22, 2023) ##
|
19
|
-
|
20
|
-
* No changes.
|
21
|
-
|
22
|
-
|
23
|
-
## Rails 6.1.7.5 (August 22, 2023) ##
|
24
|
-
|
25
|
-
* No changes.
|
26
|
-
|
27
|
-
|
28
|
-
## Rails 6.1.7.4 (June 26, 2023) ##
|
29
|
-
|
30
|
-
* No changes.
|
31
|
-
|
32
|
-
|
33
|
-
## Rails 6.1.7.3 (March 13, 2023) ##
|
34
|
-
|
35
|
-
* No changes.
|
36
|
-
|
37
|
-
|
38
|
-
## Rails 6.1.7.2 (January 24, 2023) ##
|
39
|
-
|
40
|
-
* No changes.
|
41
|
-
|
42
|
-
|
43
|
-
## Rails 6.1.7.1 (January 17, 2023) ##
|
44
|
-
|
45
|
-
* No changes.
|
46
|
-
|
47
|
-
|
48
|
-
## Rails 6.1.7 (September 09, 2022) ##
|
49
|
-
|
50
|
-
* No changes.
|
51
|
-
|
52
|
-
|
53
|
-
## Rails 6.1.6.1 (July 12, 2022) ##
|
54
|
-
|
55
|
-
* No changes.
|
56
|
-
|
57
|
-
|
58
|
-
## Rails 6.1.6 (May 09, 2022) ##
|
59
|
-
|
60
|
-
* No changes.
|
61
|
-
|
62
|
-
|
63
|
-
## Rails 6.1.5.1 (April 26, 2022) ##
|
64
|
-
|
65
|
-
* No changes.
|
66
|
-
|
67
|
-
|
68
|
-
## Rails 6.1.5 (March 09, 2022) ##
|
69
|
-
|
70
|
-
* Fix Action Text extra trix content wrapper.
|
71
|
-
|
72
|
-
*Alexandre Ruban*
|
73
|
-
|
74
|
-
|
75
|
-
## Rails 6.1.4.7 (March 08, 2022) ##
|
76
|
-
|
77
|
-
* No changes.
|
78
|
-
|
79
|
-
|
80
|
-
## Rails 6.1.4.6 (February 11, 2022) ##
|
81
|
-
|
82
|
-
* No changes.
|
83
|
-
|
84
|
-
|
85
|
-
## Rails 6.1.4.5 (February 11, 2022) ##
|
86
|
-
|
87
|
-
* No changes.
|
88
|
-
|
89
|
-
|
90
|
-
## Rails 6.1.4.4 (December 15, 2021) ##
|
91
|
-
|
92
|
-
* No changes.
|
93
|
-
|
94
|
-
|
95
|
-
## Rails 6.1.4.3 (December 14, 2021) ##
|
96
|
-
|
97
|
-
* No changes.
|
98
|
-
|
99
|
-
|
100
|
-
## Rails 6.1.4.2 (December 14, 2021) ##
|
101
|
-
|
102
|
-
* No changes.
|
103
|
-
|
104
|
-
|
105
|
-
## Rails 6.1.4.1 (August 19, 2021) ##
|
106
|
-
|
107
|
-
* No changes.
|
108
|
-
|
109
|
-
|
110
|
-
## Rails 6.1.4 (June 24, 2021) ##
|
111
|
-
|
112
|
-
* Always render attachment partials as HTML with `:html` format inside trix editor.
|
113
|
-
|
114
|
-
*James Brooks*
|
115
|
-
|
116
|
-
|
117
|
-
## Rails 6.1.3.2 (May 05, 2021) ##
|
118
|
-
|
119
|
-
* No changes.
|
120
|
-
|
121
|
-
|
122
|
-
## Rails 6.1.3.1 (March 26, 2021) ##
|
123
|
-
|
124
|
-
* No changes.
|
125
|
-
|
126
|
-
|
127
|
-
## Rails 6.1.3 (February 17, 2021) ##
|
128
|
-
|
129
|
-
* No changes.
|
130
|
-
|
131
|
-
|
132
|
-
## Rails 6.1.2.1 (February 10, 2021) ##
|
133
|
-
|
134
|
-
* No changes.
|
135
|
-
|
136
|
-
|
137
|
-
## Rails 6.1.2 (February 09, 2021) ##
|
138
|
-
|
139
|
-
* No changes.
|
140
|
-
|
141
|
-
|
142
|
-
## Rails 6.1.1 (January 07, 2021) ##
|
143
|
-
|
144
|
-
* No changes.
|
145
|
-
|
146
|
-
|
147
|
-
## Rails 6.1.0 (December 09, 2020) ##
|
148
|
-
|
149
|
-
* Declare `ActionText::FixtureSet.attachment` to generate an
|
150
|
-
`<action-text-attachment sgid="..."></action-text-attachment>` element with
|
151
|
-
a valid `sgid` attribute.
|
152
|
-
|
153
|
-
```ruby
|
154
|
-
hello_world_review_content:
|
155
|
-
record: hello_world (Review)
|
156
|
-
name: content
|
157
|
-
body: <p><%= ActionText::FixtureSet.attachment("messages", :hello_world) %> is great!</p>
|
158
|
-
```
|
11
|
+
* Add support for passing `form:` option to `rich_text_area_tag` and
|
12
|
+
`rich_text_area` helpers to specify the `<input type="hidden" form="...">`
|
13
|
+
value.
|
159
14
|
|
160
15
|
*Sean Doyle*
|
161
16
|
|
162
|
-
*
|
17
|
+
* Add `config.action_text.attachment_tag_name`, to specify the HTML tag that contains attachments.
|
163
18
|
|
164
|
-
|
165
|
-
`aria-label` attribute, also support locating elements that match the
|
166
|
-
corresponding `<label>` element's text.
|
19
|
+
*Mark VanLandingham*
|
167
20
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
form.rich_text_area :content, value: "<h1>Hello world</h1>"
|
174
|
-
#=> <input type="hidden" name="message[content]" id="message_content_trix_input_message_1" value="<h1>Hello world</h1>">
|
175
|
-
```
|
176
|
-
|
177
|
-
*Paulo Ancheta*
|
178
|
-
|
179
|
-
* Add method to confirm rich text content existence by adding `?` after rich
|
180
|
-
text attribute.
|
181
|
-
|
182
|
-
```ruby
|
183
|
-
message = Message.create!(body: "<h1>Funny times!</h1>")
|
184
|
-
message.body? #=> true
|
185
|
-
```
|
21
|
+
* Expose how we render the HTML _surrounding_ rich text content as an
|
22
|
+
extensible `layouts/action_view/contents/_content.html.erb` template to
|
23
|
+
encourage user-land customizations, while retaining private API control over how
|
24
|
+
the rich text itself is rendered by `action_text/contents/_content.html.erb`
|
25
|
+
partial.
|
186
26
|
|
187
|
-
*
|
188
|
-
|
189
|
-
* The `fill_in_rich_text_area` system test helper locates a Trix editor
|
190
|
-
and fills it in with the given HTML.
|
191
|
-
|
192
|
-
```ruby
|
193
|
-
# <trix-editor id="message_content" ...></trix-editor>
|
194
|
-
fill_in_rich_text_area "message_content", with: "Hello <em>world!</em>"
|
195
|
-
|
196
|
-
# <trix-editor placeholder="Your message here" ...></trix-editor>
|
197
|
-
fill_in_rich_text_area "Your message here", with: "Hello <em>world!</em>"
|
198
|
-
|
199
|
-
# <trix-editor aria-label="Message content" ...></trix-editor>
|
200
|
-
fill_in_rich_text_area "Message content", with: "Hello <em>world!</em>"
|
27
|
+
*Sean Doyle*
|
201
28
|
|
202
|
-
|
203
|
-
# <trix-editor input="trix_input_1"></trix-editor>
|
204
|
-
fill_in_rich_text_area "message[content]", with: "Hello <em>world!</em>"
|
205
|
-
```
|
29
|
+
* Add `with_all_rich_text` method to eager load all rich text associations on a model at once.
|
206
30
|
|
207
|
-
*
|
31
|
+
*Matt Swanson*, *DHH*
|
208
32
|
|
209
33
|
|
210
|
-
Please check [6-
|
34
|
+
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actiontext/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,10 @@ Action Text brings rich text content and editing to Rails. It includes the [Trix
|
|
4
4
|
|
5
5
|
You can read more about Action Text in the [Action Text Overview](https://edgeguides.rubyonrails.org/action_text_overview.html) guide.
|
6
6
|
|
7
|
+
## Development
|
8
|
+
|
9
|
+
The JavaScript for Action Text is distributed both as a npm module under @rails/actiontext and via the asset pipeline as actiontext.js (and we mirror Trix as trix.js). To ensure that the latter remains in sync, you must run `yarn build` and checkin the artifacts whenever the JavaScript source or the Trix dependency is bumped. CSS changes must be brought over manually to app/assets/stylesheets/trix.css
|
10
|
+
|
7
11
|
## License
|
8
12
|
|
9
13
|
Action Text is released under the [MIT License](https://opensource.org/licenses/MIT).
|