tinymce-rails 6.8.4 → 6.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/app/assets/source/tinymce/tinymce.js +889 -867
  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 +6 -108
  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 +13 -8
  50. /data/app/assets/{javascripts → sprockets}/tinymce/preinit.js.erb +0 -0
  51. /data/app/assets/{javascripts → sprockets}/tinymce.js +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7962bbf6d6238b5683bfbc1e2bd80605aa87768d7590f30f4a674f70bf33773
4
- data.tar.gz: '0038f4429e45d75fcd682b870c0c0d722bdf9bbcc5368cc9b1466e9581bcea33'
3
+ metadata.gz: e175e16ef4683648a308bf1029e2d3366fdb990f2140503dec8393786b5fd906
4
+ data.tar.gz: 4b754a92a968c4766e04596b09df98bbbdcd5a6c85a4bd9aa55f16606a5e6810
5
5
  SHA512:
6
- metadata.gz: f2a53aefe4da5819e39d18517197257021e0926bf01f5d68d7fa4b0bfac24cece88169570f0d43dcea0e1b5dad93cad606e6429cb26b8dfe1065a4b8eb86fa41
7
- data.tar.gz: b1ffb6c2f85c2f70ff02336506923d5ce8b14133205e38759a51b974bafe9f223a7a1488a9446bbfe0ee52760b68586d3e41770097d848acd20466b2ff9cf202
6
+ metadata.gz: 6f4bf84f4e9b8506f2f4087133182de953cddf6a98d45bed31909b411792ec6e05ed949e4e40e5cfbb9b201dcbadaddc7ca743cbc39a3d630d64aa429c2845c7
7
+ data.tar.gz: 546d4c1ddee4c4c0c4d66f75fb9318884576b4c11f81d55bf098bfcadeb5119ba62e6a7d5f586ac14be51041ce8f147023f5e526db3505100cdbb14e30622562
data/README.md CHANGED
@@ -3,7 +3,7 @@ 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
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
 
@@ -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