aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/app
Commit message (Collapse)AuthorAgeFilesLines
* Deduplicate ActionText::RichText embedsGeorge Claghorn2019-05-171-1/+1
| | | | Fix that an ActiveRecord::RecordNotUnique error would be raised when saving rich-text content with the same file attached multiple times.
* Make Action Text's rendering helpers more configurableJavan Makhmali2019-04-221-9/+14
| | | | | - Allow configuring the sanitizer and its options - Split attachment rendering and sanitizing helpers so each can be overridden by applications
* Explicitly require rails-html-sanitizer gem in ActionText helpersChris LaRose2019-03-061-0/+2
| | | | | | | | | | | If the [`action_text.helper` initializer][0] runs after `ActionController::Base` has been loaded, but before the `rails-html-sanitizer` gem has been `require`d, then the reference to the constant `Rails::Html` in the body of the `ActionText::ContentHelper` module raises an `uninitialized constant` exception. [0]: https://github.com/rails/rails/blob/21703382393c87212c27c988420ee5c133c1aa9f/actiontext/lib/action_text/engine.rb#L31-L35
* Allows rich_text_area_tag to add I18n translated placeholder text if ↵Abhay Nikam2019-02-221-0/+4
| | | | placeholder option set to true
* Fix error saving Action Text content containing non-blob attachablesJavan Makhmali2019-01-251-1/+1
| | | | | | | | | | Failing test before the ActionText::RichText change: ``` Error: ActionText::ModelTest#test_embed_extraction_only_extracts_file_attachments: ArgumentError: Could not find or build blob: expected attachable, got #<ActionText::Attachables::RemoteImage:0x00007fb0259fef70 @url="http://example.com/cat.jpg", @content_type="image", @width=nil, @height=nil> ```
* Prefer ImageProcessing's resize_to_limit macro over resize_to_fitGeorge Claghorn2019-01-241-1/+1
| | | | Don't upsize images smaller than the specified dimensions.
* Fix document formatting on Action Text docs [ci skip]colorbox2019-01-242-4/+4
| | | | Use `+` instead of backquote.
* Make trix a peer dependency of actiontext since it’s not used directlyJavan Makhmali2019-01-171-1/+0
|
* Move all npm packages to @rails scopeJavan Makhmali2019-01-101-1/+1
| | | | Fixes #33083
* Add load hook for ActionText::RichTextGeorge Claghorn2019-01-071-0/+2
|
* Fix API docs of `ActionText::RichText` [ci skip]bogdanvlviv2019-01-051-4/+4
| | | | | | | This text should appear on the page https://api.rubyonrails.org/v6.0/classes/ActionText/RichText.html Related to 86517942e469193e8624d5078d718785552c1270
* Generate Action Text's API docsGeorge Claghorn2019-01-041-13/+15
|
* Import Action TextGeorge Claghorn2019-01-0410-0/+215