actiontext 7.0.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 +61 -45
- 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 +12055 -5168
- 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 +3 -2
- 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 +17 -14
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,109 +1,125 @@
|
|
1
|
-
## Rails 7.
|
1
|
+
## Rails 7.1.3.4 (June 04, 2024) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Sanitize ActionText HTML ContentAttachment in Trix edit view
|
4
|
+
[CVE-2024-32464]
|
4
5
|
|
5
6
|
|
6
|
-
## Rails 7.
|
7
|
+
## Rails 7.1.3.3 (May 16, 2024) ##
|
7
8
|
|
8
|
-
*
|
9
|
+
* Upgrade Trix to 1.3.2 to fix [CVE-2024-34341](https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99).
|
10
|
+
|
11
|
+
*Rafael Mendonça França*
|
9
12
|
|
10
13
|
|
11
|
-
## Rails 7.
|
14
|
+
## Rails 7.1.3.2 (February 21, 2024) ##
|
12
15
|
|
13
16
|
* No changes.
|
14
17
|
|
15
18
|
|
16
|
-
## Rails 7.
|
19
|
+
## Rails 7.1.3.1 (February 21, 2024) ##
|
17
20
|
|
18
21
|
* No changes.
|
19
22
|
|
20
23
|
|
21
|
-
## Rails 7.
|
24
|
+
## Rails 7.1.3 (January 16, 2024) ##
|
22
25
|
|
23
26
|
* No changes.
|
24
27
|
|
25
28
|
|
26
|
-
## Rails 7.
|
29
|
+
## Rails 7.1.2 (November 10, 2023) ##
|
27
30
|
|
28
|
-
*
|
31
|
+
* Compile ESM package that can be used directly in the browser as `actiontext.esm.js`.
|
29
32
|
|
33
|
+
*Matias Grunberg*
|
30
34
|
|
31
|
-
|
35
|
+
* Fix using actiontext.js with Sprockets.
|
32
36
|
|
33
|
-
*
|
37
|
+
*Matias Grunberg*
|
34
38
|
|
39
|
+
* Upgrade Trix to 2.0.7.
|
35
40
|
|
36
|
-
|
41
|
+
*Hartley McGuire*
|
37
42
|
|
38
|
-
*
|
43
|
+
* Fix using Trix with Sprockets.
|
39
44
|
|
45
|
+
*Hartley McGuire*
|
40
46
|
|
41
|
-
|
47
|
+
|
48
|
+
## Rails 7.1.1 (October 11, 2023) ##
|
42
49
|
|
43
50
|
* No changes.
|
44
51
|
|
45
52
|
|
46
|
-
## Rails 7.
|
53
|
+
## Rails 7.1.0 (October 05, 2023) ##
|
47
54
|
|
48
55
|
* No changes.
|
49
56
|
|
50
57
|
|
51
|
-
## Rails 7.
|
58
|
+
## Rails 7.1.0.rc2 (October 01, 2023) ##
|
52
59
|
|
53
60
|
* No changes.
|
54
61
|
|
55
62
|
|
56
|
-
## Rails 7.
|
63
|
+
## Rails 7.1.0.rc1 (September 27, 2023) ##
|
57
64
|
|
58
65
|
* No changes.
|
59
66
|
|
60
|
-
## Rails 7.0.0.rc1 (December 06, 2021) ##
|
61
|
-
|
62
|
-
* Fix an issue with how nested lists were displayed when converting to plain text
|
63
|
-
|
64
|
-
*Matt Swanson*
|
65
67
|
|
66
|
-
|
68
|
+
## Rails 7.1.0.beta1 (September 13, 2023) ##
|
67
69
|
|
68
|
-
|
70
|
+
* Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
|
71
|
+
supported.
|
69
72
|
|
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`.
|
70
76
|
|
71
|
-
|
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`.
|
72
80
|
|
73
|
-
|
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.
|
74
86
|
|
87
|
+
*Mike Dalessio*
|
75
88
|
|
76
|
-
|
89
|
+
* Attachables now can override default attachment missing template.
|
77
90
|
|
78
|
-
|
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.
|
79
95
|
|
80
|
-
*
|
96
|
+
*Matt Swanson*, *Joel Drapper*
|
81
97
|
|
82
|
-
*
|
98
|
+
* Update bundled Trix version from `1.3.1` to `2.0.4`.
|
83
99
|
|
84
|
-
*
|
100
|
+
*Sarah Ridge*, *Sean Doyle*
|
85
101
|
|
86
|
-
*
|
87
|
-
`rich_text_area` helpers to specify the `<input type="hidden" form="...">`
|
88
|
-
value.
|
102
|
+
* Apply `field_error_proc` to `rich_text_area` form fields.
|
89
103
|
|
90
|
-
*
|
104
|
+
*Kaíque Kandy Koga*
|
91
105
|
|
92
|
-
*
|
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`.
|
93
109
|
|
94
|
-
*
|
110
|
+
*Jonathan Hefner*
|
95
111
|
|
96
|
-
*
|
97
|
-
extensible `layouts/action_view/contents/_content.html.erb` template to
|
98
|
-
encourage user-land customizations, while retaining private API control over how
|
99
|
-
the rich text itself is rendered by `action_text/contents/_content.html.erb`
|
100
|
-
partial.
|
112
|
+
* Support `strict_loading:` option for `has_rich_text` declaration
|
101
113
|
|
102
114
|
*Sean Doyle*
|
103
115
|
|
104
|
-
*
|
116
|
+
* Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
|
117
|
+
|
118
|
+
*Jamis Buck*
|
105
119
|
|
106
|
-
|
120
|
+
* Fix an issue that caused the content layout to render multiple times when a
|
121
|
+
rich_text field was updated.
|
107
122
|
|
123
|
+
*Jacob Herrington*
|
108
124
|
|
109
|
-
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
|
|