rails--rails/actiontext
Abhay Nikam 5de2dbff16 Fixes failing ActionText::ContentTest test cases
The test cases where failing because the test
`test_converts_Trix-formatted_attachments_with_custom_tag_name` set a
custom tag_name to `arbitrary-tag`. This test would also set the
ActionText::AttachmentGallery::ATTACHMENT_SELECTOR private constant
to `arbitrary-tag`.

Other test cases had proper ActionText::Attachment.tag_name set to
`action-text-attachment` but the constant once defined would not
reset.

This PR attempts to fix the issue by converting the
ActionText::AttachmentGallery::{ATTACHMENT_}SELECTOR to class methods

Fixes #41782
2021-03-30 16:38:11 -04:00
..
app Add config.action_text.attachment_tag_name 2021-03-05 16:57:36 -05:00
bin
db/migrate Allow changing text and blob size without giving the `limit` option 2019-01-29 06:49:32 +09:00
lib Fixes failing ActionText::ContentTest test cases 2021-03-30 16:38:11 -04:00
test 'lookup' -> 'look up' in dummy webpacker.ymls 2021-03-21 12:36:56 +00:00
.gitignore Remove redundant .gitignore entries 2020-02-07 14:05:23 -06:00
CHANGELOG.md Add config.action_text.attachment_tag_name 2021-03-05 16:57:36 -05:00
MIT-LICENSE Bump license years to 2021 [ci skip] 2021-01-01 12:21:20 +09:00
README.md Add Action Text to guides [ci skip] 2019-01-05 13:30:37 +02:00
Rakefile Add ActionDispatch::SystemTestCase#fill_in_rich_text_area 2019-05-13 12:44:06 -04:00
actiontext.gemspec Rails 7 requires Ruby 2.7 and prefer Ruby 3+ 2021-02-04 16:34:53 +00:00
package.json @rails/actiontext: depend on released @rails/activestorage 2021-03-06 11:32:44 -05:00

README.md

Action Text

Action Text brings rich text content and editing to Rails. It includes the Trix editor 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.

You can read more about Action Text in the Action Text Overview guide.

License

Action Text is released under the MIT License.