actiontext 6.1.4.1 → 7.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -81
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +4 -0
  5. data/app/assets/javascripts/actiontext.js +900 -0
  6. data/app/assets/javascripts/trix.js +5278 -0
  7. data/app/assets/stylesheets/trix.css +375 -0
  8. data/app/helpers/action_text/content_helper.rb +17 -3
  9. data/app/helpers/action_text/tag_helper.rb +19 -9
  10. data/app/javascript/actiontext/attachment_upload.js +8 -1
  11. data/app/models/action_text/encrypted_rich_text.rb +9 -0
  12. data/app/models/action_text/record.rb +1 -1
  13. data/app/models/action_text/rich_text.rb +4 -0
  14. data/app/views/action_text/contents/_content.html.erb +1 -0
  15. data/app/views/layouts/action_text/contents/_content.html.erb +3 -0
  16. data/db/migrate/20180528164100_create_action_text_tables.rb +14 -2
  17. data/lib/action_text/attachable.rb +4 -0
  18. data/lib/action_text/attachment.rb +4 -4
  19. data/lib/action_text/attachment_gallery.rb +14 -9
  20. data/lib/action_text/attachments/caching.rb +1 -1
  21. data/lib/action_text/attachments/minification.rb +1 -1
  22. data/lib/action_text/attribute.rb +18 -2
  23. data/lib/action_text/content.rb +7 -3
  24. data/lib/action_text/encryption.rb +38 -0
  25. data/lib/action_text/engine.rb +14 -0
  26. data/lib/action_text/fixture_set.rb +55 -0
  27. data/lib/action_text/gem_version.rb +4 -4
  28. data/lib/action_text/plain_text_conversion.rb +31 -2
  29. data/lib/action_text/rendering.rb +1 -1
  30. data/lib/action_text/serialization.rb +2 -0
  31. data/lib/action_text/trix_attachment.rb +3 -3
  32. data/lib/action_text.rb +1 -0
  33. data/lib/generators/action_text/install/install_generator.rb +40 -35
  34. data/lib/generators/action_text/install/templates/actiontext.css +35 -0
  35. data/package.json +13 -3
  36. metadata +39 -18
  37. data/app/views/action_text/content/_layout.html.erb +0 -3
  38. data/lib/generators/action_text/install/templates/actiontext.scss +0 -36
@@ -1,3 +0,0 @@
1
- <div class="trix-content">
2
- <%= render_action_text_content(content) %>
3
- </div>
@@ -1,36 +0,0 @@
1
- //
2
- // Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
3
- // the trix-editor content (whether displayed or under editing). Feel free to incorporate this
4
- // inclusion directly in any other asset bundle and remove this file.
5
- //
6
- //= require trix/dist/trix
7
-
8
- // We need to override trix.css’s image gallery styles to accommodate the
9
- // <action-text-attachment> element we wrap around attachments. Otherwise,
10
- // images in galleries will be squished by the max-width: 33%; rule.
11
- .trix-content {
12
- .attachment-gallery {
13
- > action-text-attachment,
14
- > .attachment {
15
- flex: 1 0 33%;
16
- padding: 0 0.5em;
17
- max-width: 33%;
18
- }
19
-
20
- &.attachment-gallery--2,
21
- &.attachment-gallery--4 {
22
- > action-text-attachment,
23
- > .attachment {
24
- flex-basis: 50%;
25
- max-width: 50%;
26
- }
27
- }
28
- }
29
-
30
- action-text-attachment {
31
- .attachment {
32
- padding: 0 !important;
33
- max-width: 100% !important;
34
- }
35
- }
36
- }