tinymce-rails 6.8.5 → 7.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -11
  3. data/app/assets/source/tinymce/tinymce.js +2406 -2249
  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.rb +108 -6
  7. data/lib/tinymce/rails/engine.rb +2 -15
  8. data/lib/tinymce/rails/helper.rb +5 -19
  9. data/lib/tinymce/rails/version.rb +2 -2
  10. data/lib/tinymce/rails.rb +2 -2
  11. data/vendor/assets/javascripts/tinymce/icons/default/icons.js +1 -1
  12. data/vendor/assets/javascripts/tinymce/license.md +6 -0
  13. data/vendor/assets/javascripts/tinymce/models/dom/model.js +2 -2
  14. data/vendor/assets/javascripts/tinymce/plugins/accordion/plugin.js +1 -1
  15. data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +2 -2
  16. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +1 -1
  17. data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +1 -1
  18. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +1 -1
  19. data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +1 -1
  20. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +1 -1
  21. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +1 -1
  22. data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +1 -1
  23. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +1 -1
  24. data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +2 -2
  25. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +2 -2
  26. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ar.js +1 -1
  27. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +1 -1
  28. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ca.js +1 -1
  29. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/cs.js +1 -1
  30. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/da.js +1 -1
  31. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/de.js +1 -1
  32. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/el.js +1 -1
  33. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/en.js +1 -1
  34. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/es.js +1 -1
  35. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/eu.js +1 -1
  36. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/fa.js +1 -1
  37. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/fi.js +1 -1
  38. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +1 -1
  39. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/he_IL.js +1 -1
  40. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/hi.js +1 -1
  41. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/hr.js +1 -1
  42. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +1 -1
  43. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/id.js +1 -1
  44. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/it.js +1 -1
  45. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ja.js +1 -1
  46. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/kk.js +1 -1
  47. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +1 -1
  48. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ms.js +1 -1
  49. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +1 -1
  50. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/nl.js +1 -1
  51. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/pl.js +1 -1
  52. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +1 -1
  53. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +1 -1
  54. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ro.js +1 -1
  55. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ru.js +1 -1
  56. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/sk.js +1 -1
  57. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +2 -2
  58. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +1 -1
  59. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/th_TH.js +1 -1
  60. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/tr.js +1 -1
  61. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/uk.js +1 -1
  62. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/vi.js +1 -1
  63. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +1 -1
  64. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +1 -1
  65. data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +2 -2
  66. data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +1 -1
  67. data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +1 -1
  68. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +1 -1
  69. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +2 -2
  70. data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +2 -2
  71. data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +2 -2
  72. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +1 -1
  73. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +1 -1
  74. data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +1 -1
  75. data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +1 -1
  76. data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +2 -2
  77. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +2 -2
  78. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +2 -2
  79. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +1 -1
  80. data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +1 -1
  81. data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +1 -1
  82. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.css +1 -1
  83. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.js +1 -1
  84. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.min.css +1 -1
  85. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.css +1 -1
  86. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.js +1 -1
  87. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  88. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.css +1 -1
  89. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.js +1 -1
  90. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  91. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.css +1 -1
  92. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.js +1 -1
  93. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  94. data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -382
  95. data/vendor/assets/javascripts/tinymce/tinymce.d.ts +27 -15
  96. data/vendor/assets/javascripts/tinymce/tinymce.js +2 -382
  97. metadata +7 -14
  98. data/LICENSE +0 -19
  99. data/lib/tinymce/rails/asset_manifest/json_manifest.rb +0 -62
  100. data/lib/tinymce/rails/asset_manifest/null_manifest.rb +0 -12
  101. data/lib/tinymce/rails/asset_manifest/propshaft_manifest.rb +0 -43
  102. data/lib/tinymce/rails/asset_manifest/yaml_manifest.rb +0 -43
  103. data/lib/tinymce/rails/propshaft/asset.rb +0 -11
  104. data/vendor/assets/javascripts/tinymce/license.txt +0 -21
  105. data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +0 -4
  106. /data/app/assets/{sprockets → javascripts}/tinymce/preinit.js.erb +0 -0
  107. /data/app/assets/{sprockets → javascripts}/tinymce.js +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e175e16ef4683648a308bf1029e2d3366fdb990f2140503dec8393786b5fd906
4
- data.tar.gz: 4b754a92a968c4766e04596b09df98bbbdcd5a6c85a4bd9aa55f16606a5e6810
3
+ metadata.gz: 314e37538834fd90291058757f4ac05527e88b05ed9348752b575a971a40bfee
4
+ data.tar.gz: 8bdcb683ceee8a6217fef90e26239c61e268fd69c11c373221fd68c164c5fd20
5
5
  SHA512:
6
- metadata.gz: 6f4bf84f4e9b8506f2f4087133182de953cddf6a98d45bed31909b411792ec6e05ed949e4e40e5cfbb9b201dcbadaddc7ca743cbc39a3d630d64aa429c2845c7
7
- data.tar.gz: 546d4c1ddee4c4c0c4d66f75fb9318884576b4c11f81d55bf098bfcadeb5119ba62e6a7d5f586ac14be51041ce8f147023f5e526db3505100cdbb14e30622562
6
+ metadata.gz: ffa5c5dc93439ef9bc662398f5294f535bff6577173607b3569fe55b2a5d9e550b69e890247793684eec218285101cf594e574384684a17042a792d647917360
7
+ data.tar.gz: bc6946154ba37c58dd62cdcf8cd04f68c34afb6d1ad322ddda1338cf76e2cba4140baa889a25da78b38175cefab48c5dafab7b7a389a3078385c29fa06b709a8
data/README.md CHANGED
@@ -3,11 +3,15 @@ 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.1 and higher.
6
+ This gem is compatible with Rails 5.0 and higher.
7
7
 
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).
8
+ This is the branch for **TinyMCE 7**.<br />
9
+ Please see alternate branches for [TinyMCE 6](https://github.com/spohlenz/tinymce-rails/tree/tinymce-6), [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
10
 
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
+ > [!IMPORTANT]
12
+ > Please note that as of version 7, TinyMCE (and therefore this project) is now licensed under the GPL.
13
+
14
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/spohlenz/tinymce-rails/rspec.yml)](https://github.com/spohlenz/tinymce-rails/actions)
11
15
 
12
16
 
13
17
  Instructions
@@ -50,14 +54,14 @@ alternate:
50
54
  - table
51
55
  ```
52
56
 
53
- See the [TinyMCE 6 Documentation](https://www.tiny.cloud/docs/tinymce/6/) for a full list of configuration options.
57
+ See the [TinyMCE 7 Documentation](https://www.tiny.cloud/docs/tinymce/7/) for a full list of configuration options.
54
58
 
55
59
 
56
60
  **3. Include the TinyMCE assets**
57
61
 
58
62
  Use *one* of the following options to include TinyMCE assets.
59
63
 
60
- (1) Add to your application.js (Sprockets only):
64
+ (1) Add to your application.js:
61
65
 
62
66
  ```js
63
67
  //= require tinymce
@@ -66,14 +70,10 @@ Use *one* of the following options to include TinyMCE assets.
66
70
  or (2) add the script tag to your layout using the `tinymce_assets` helper:
67
71
 
68
72
  ```erb
69
- <%= tinymce_assets data: { turbo_track: "reload" } %>
70
- #=> <script type="text/javascript" src="/assets/tinymce.js" data-turbo-track="reload">
73
+ <%= tinymce_assets %>
74
+ #=> <script type="text/javascript" src="/assets/tinymce.js">
71
75
  ```
72
76
 
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
-
77
77
 
78
78
  **4. Initialize TinyMCE**
79
79