tinymce-rails 6.8.3 → 6.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -6
  3. data/app/assets/source/tinymce/tinymce.js +906 -883
  4. data/lib/tinymce/rails/asset_installer/copy_no_preserve.rb +1 -1
  5. data/lib/tinymce/rails/asset_installer.rb +4 -4
  6. data/lib/tinymce/rails/asset_manifest/json_manifest.rb +62 -0
  7. data/lib/tinymce/rails/asset_manifest/null_manifest.rb +12 -0
  8. data/lib/tinymce/rails/asset_manifest/propshaft_manifest.rb +43 -0
  9. data/lib/tinymce/rails/asset_manifest/yaml_manifest.rb +43 -0
  10. data/lib/tinymce/rails/asset_manifest.rb +7 -104
  11. data/lib/tinymce/rails/engine.rb +15 -2
  12. data/lib/tinymce/rails/helper.rb +19 -5
  13. data/lib/tinymce/rails/propshaft/asset.rb +11 -0
  14. data/lib/tinymce/rails/version.rb +2 -2
  15. data/lib/tinymce/rails.rb +2 -2
  16. data/vendor/assets/javascripts/tinymce/models/dom/model.js +1 -1
  17. data/vendor/assets/javascripts/tinymce/plugins/accordion/plugin.js +1 -1
  18. data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +1 -1
  19. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +1 -1
  20. data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +1 -1
  21. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +1 -1
  22. data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +1 -1
  23. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +1 -1
  24. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +1 -1
  25. data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +1 -1
  26. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +1 -1
  27. data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +1 -1
  28. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +1 -1
  29. data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +1 -1
  30. data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +1 -1
  31. data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +1 -1
  32. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +1 -1
  33. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +1 -1
  34. data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +1 -1
  35. data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +1 -1
  36. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +1 -1
  37. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +1 -1
  38. data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +1 -1
  39. data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +1 -1
  40. data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +1 -1
  41. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +1 -1
  42. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +1 -1
  43. data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +1 -1
  44. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +1 -1
  45. data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +1 -1
  46. data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +1 -1
  47. data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +382 -2
  48. data/vendor/assets/javascripts/tinymce/tinymce.js +382 -2
  49. metadata +11 -6
  50. /data/app/assets/{javascripts → sprockets}/tinymce/preinit.js.erb +0 -0
  51. /data/app/assets/{javascripts → sprockets}/tinymce.js +0 -0
  52. /data/vendor/assets/javascripts/tinymce/langs/{README.md → readme.md} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91c53e7e5805eeb9450265223c70b549fded5516f219cb7938c91459ae090af0
4
- data.tar.gz: 91c469717354b39d1dd53ef9c5e7c729bd8e4f5bee23cae140925cfe6686e76b
3
+ metadata.gz: e175e16ef4683648a308bf1029e2d3366fdb990f2140503dec8393786b5fd906
4
+ data.tar.gz: 4b754a92a968c4766e04596b09df98bbbdcd5a6c85a4bd9aa55f16606a5e6810
5
5
  SHA512:
6
- metadata.gz: 9c0426ece5a0161c973af7b6c30b6415ad1c84899dcba485fc7aeea8b09828e4a11e93e88fb591f0daafdd21f7ebc5327aad4cff53167904a4abefdf2f91742f
7
- data.tar.gz: 304095a9a91e234ff70d75deb429b39fca5974b4c61e11da954c8a4087cc861caab653fe70fcc8446fb18fc7ab9537e427a39b70df5300368bf93803a451e34b
6
+ metadata.gz: 6f4bf84f4e9b8506f2f4087133182de953cddf6a98d45bed31909b411792ec6e05ed949e4e40e5cfbb9b201dcbadaddc7ca743cbc39a3d630d64aa429c2845c7
7
+ data.tar.gz: 546d4c1ddee4c4c0c4d66f75fb9318884576b4c11f81d55bf098bfcadeb5119ba62e6a7d5f586ac14be51041ce8f147023f5e526db3505100cdbb14e30622562
data/README.md CHANGED
@@ -3,11 +3,11 @@ Rails Integration for TinyMCE
3
3
 
4
4
  The `tinymce-rails` gem integrates the [TinyMCE](https://www.tiny.cloud/) editor with the Rails asset pipeline.
5
5
 
6
- This gem is compatible with Rails 5.0 and higher.
6
+ This gem is compatible with Rails 5.1 and higher.
7
7
 
8
- This is the branch for TinyMCE 6. Please see alternate branches for [TinyMCE 5](https://github.com/spohlenz/tinymce-rails/tree/tinymce-5), [TinyMCE 4](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4) & [TinyMCE 3.5.x](https://github.com/spohlenz/tinymce-rails/tree/tinymce-3).
8
+ This is the branch for TinyMCE 6. Please see the [`main`](https://github.com/spohlenz/tinymce-rails) branch for TinyMCE 7, and alternate branches for [TinyMCE 5](https://github.com/spohlenz/tinymce-rails/tree/tinymce-5), [TinyMCE 4](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4) & [TinyMCE 3.5.x](https://github.com/spohlenz/tinymce-rails/tree/tinymce-3).
9
9
 
10
- [![Build Status](https://img.shields.io/github/actions/workflow/status/spohlenz/tinymce-rails/rspec.yml)](https://github.com/spohlenz/tinymce-rails/actions)
10
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/spohlenz/tinymce-rails/rspec.yml?branch=tinymce-6)](https://github.com/spohlenz/tinymce-rails/actions?query=branch%3Atinymce-6)
11
11
 
12
12
 
13
13
  Instructions
@@ -57,7 +57,7 @@ See the [TinyMCE 6 Documentation](https://www.tiny.cloud/docs/tinymce/6/) for a
57
57
 
58
58
  Use *one* of the following options to include TinyMCE assets.
59
59
 
60
- (1) Add to your application.js:
60
+ (1) Add to your application.js (Sprockets only):
61
61
 
62
62
  ```js
63
63
  //= require tinymce
@@ -66,10 +66,14 @@ Use *one* of the following options to include TinyMCE assets.
66
66
  or (2) add the script tag to your layout using the `tinymce_assets` helper:
67
67
 
68
68
  ```erb
69
- <%= tinymce_assets %>
70
- #=> <script type="text/javascript" src="/assets/tinymce.js">
69
+ <%= tinymce_assets data: { turbo_track: "reload" } %>
70
+ #=> <script type="text/javascript" src="/assets/tinymce.js" data-turbo-track="reload">
71
71
  ```
72
72
 
73
+ When using Propshaft, the `tinymce_assets` helper adds multiple script tags including the pre-init code (available via the `tinymce_preinit` helper), as well as `tinymce/tinymce.js` and `tinymce/rails.js`. You may prefer to selectively include these manually depending on your requirements.
74
+
75
+ For Sprockets, these are bundled together into one script tag.
76
+
73
77
 
74
78
  **4. Initialize TinyMCE**
75
79