tinymce-rails 5.10.7 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -18
  3. data/Rakefile +1 -2
  4. data/app/assets/javascripts/tinymce/rails.js +1 -1
  5. data/app/assets/source/tinymce/tinymce.js +17821 -18858
  6. data/lib/tinymce/rails/asset_installer/compile.rb +2 -2
  7. data/lib/tinymce/rails/asset_installer.rb +1 -1
  8. data/lib/tinymce/rails/asset_manifest.rb +1 -1
  9. data/lib/tinymce/rails/configuration.rb +1 -1
  10. data/lib/tinymce/rails/configuration_file.rb +2 -2
  11. data/lib/tinymce/rails/version.rb +2 -2
  12. data/vendor/assets/javascripts/tinymce/license.txt +21 -504
  13. data/vendor/assets/javascripts/tinymce/models/dom/model.js +4 -0
  14. data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +2 -7
  15. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +2 -7
  16. data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +2 -7
  17. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +2 -7
  18. data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +2 -7
  19. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +2 -7
  20. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +2 -7
  21. data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +2 -7
  22. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +2 -7
  23. data/vendor/assets/javascripts/tinymce/plugins/emoticons/js/emojiimages.js +1 -1
  24. data/vendor/assets/javascripts/tinymce/plugins/emoticons/js/emojis.js +1 -1
  25. data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +2 -7
  26. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +2 -7
  27. data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +2 -7
  28. data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +2 -7
  29. data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +2 -7
  30. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +2 -7
  31. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +2 -7
  32. data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +2 -7
  33. data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +2 -7
  34. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +2 -7
  35. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +2 -7
  36. data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +2 -7
  37. data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +2 -7
  38. data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +2 -7
  39. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +2 -7
  40. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +2 -7
  41. data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +2 -7
  42. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +2 -7
  43. data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +2 -7
  44. data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +2 -7
  45. data/vendor/assets/javascripts/tinymce/skins/content/dark/content.css +1 -7
  46. data/vendor/assets/javascripts/tinymce/skins/content/dark/content.min.css +1 -7
  47. data/vendor/assets/javascripts/tinymce/skins/content/default/content.css +0 -6
  48. data/vendor/assets/javascripts/tinymce/skins/content/default/content.min.css +0 -6
  49. data/vendor/assets/javascripts/tinymce/skins/content/document/content.css +0 -6
  50. data/vendor/assets/javascripts/tinymce/skins/content/document/content.min.css +0 -6
  51. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.css +1 -0
  52. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.min.css +1 -0
  53. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.css +1 -0
  54. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
  55. data/vendor/assets/javascripts/tinymce/skins/content/writer/content.css +0 -6
  56. data/vendor/assets/javascripts/tinymce/skins/content/writer/content.min.css +0 -6
  57. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.css +1 -7
  58. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.css +1 -7
  59. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  60. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.min.css +1 -7
  61. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.css +1 -7
  62. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.min.css +1 -7
  63. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.css +1 -7
  64. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  65. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.css +1 -7
  66. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.css +1 -7
  67. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  68. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  69. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.css +1 -7
  70. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  71. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +1 -7
  72. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  73. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.css +1 -0
  74. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.css +1 -0
  75. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
  76. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
  77. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.css +1 -0
  78. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  79. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +1 -0
  80. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  81. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.css +1 -0
  82. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.css +1 -0
  83. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  84. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
  85. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.css +1 -0
  86. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  87. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +1 -0
  88. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  89. data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -7
  90. data/vendor/assets/javascripts/tinymce/tinymce.d.ts +967 -1130
  91. data/vendor/assets/javascripts/tinymce/tinymce.js +2 -7
  92. metadata +24 -32
  93. data/app/assets/javascripts/tinymce-jquery.js +0 -2
  94. data/vendor/assets/config/tinymce-rails.manifest.js +0 -3
  95. data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +0 -91
  96. data/vendor/assets/javascripts/tinymce/plugins/bbcode/plugin.js +0 -9
  97. data/vendor/assets/javascripts/tinymce/plugins/colorpicker/plugin.js +0 -9
  98. data/vendor/assets/javascripts/tinymce/plugins/contextmenu/plugin.js +0 -9
  99. data/vendor/assets/javascripts/tinymce/plugins/fullpage/plugin.js +0 -9
  100. data/vendor/assets/javascripts/tinymce/plugins/hr/plugin.js +0 -9
  101. data/vendor/assets/javascripts/tinymce/plugins/imagetools/plugin.js +0 -9
  102. data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/plugin.js +0 -9
  103. data/vendor/assets/javascripts/tinymce/plugins/noneditable/plugin.js +0 -9
  104. data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.js +0 -9
  105. data/vendor/assets/javascripts/tinymce/plugins/print/plugin.js +0 -9
  106. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/plugin.js +0 -9
  107. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.js +0 -9
  108. data/vendor/assets/javascripts/tinymce/plugins/textcolor/plugin.js +0 -9
  109. data/vendor/assets/javascripts/tinymce/plugins/textpattern/plugin.js +0 -9
  110. data/vendor/assets/javascripts/tinymce/plugins/toc/plugin.js +0 -9
  111. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.mobile.css +0 -7
  112. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.mobile.min.css +0 -7
  113. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  114. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.mobile.css +0 -7
  115. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -7
  116. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -7
  117. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -7
  118. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  119. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -7
  120. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -7
  121. data/vendor/assets/javascripts/tinymce/themes/mobile/theme.js +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39d20eb5e06bb92de8edd49990f50ea436b923e78d81826c6338fd3f3bf4ddfd
4
- data.tar.gz: 6894c7b8084f43cf4671789f9e2fe1a8d8c70233fb4c85259026fb57ad5d617d
3
+ metadata.gz: ceca1d6ec93f7676276ee94ac080c3e44fef3b672988cdecec876d4b19c5427c
4
+ data.tar.gz: 2e8ee69d71bea65587a3a69e55e58651584a0b46e2d4a41895d5492c63a8a5c3
5
5
  SHA512:
6
- metadata.gz: 307ba81d6c20a00415c50e65d4db4eab2f850f5ecb17a1188d05c50d065ef29743ec062d5d5a6647c7bcd12b5ad32bb61ea3e35140a80575c5ddfada94a906ec
7
- data.tar.gz: 32ae057d1662ee255581ee0ae6a37174aca6b39219cafeb93f8933881d43fd130ff61f97a1ac0a1a14d6b51e2c187e05ac96c28e26ddd9209537986c66610f7a
6
+ metadata.gz: 58579d8c265d136fe174ccab86e735c1cf09c3acbce81d46152cb1ee697bb7b6a92a67f6b848b7f587f98fce09e0f8f43c6b93839379c908ac182a5ca308c244
7
+ data.tar.gz: bc1f36a40e881ad1a7c6443a73895b92432ac4d87cb4b775bf23c980478910552193cd4fbfbf26def945129c40cd0da2879ab14d017322688c55d43ce9057569
data/README.md CHANGED
@@ -5,11 +5,10 @@ The `tinymce-rails` gem integrates the [TinyMCE](https://www.tiny.cloud/) editor
5
5
 
6
6
  This gem is compatible with Rails 4.2 and higher.
7
7
 
8
- This is the branch for TinyMCE 5. Please see the [`main`](https://github.com/spohlenz/tinymce-rails) branch for TinyMCE 6, and alternate branches for For [TinyMCE 4](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4) & [TinyMCE 3](https://github.com/spohlenz/tinymce-rails/tree/tinymce-3).
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).
9
9
 
10
- [![Build Status](https://travis-ci.org/spohlenz/tinymce-rails.svg?branch=master)](https://travis-ci.org/spohlenz/tinymce-rails)
10
+ [![Build Status](https://travis-ci.org/spohlenz/tinymce-rails.svg?branch=main)](https://travis-ci.org/spohlenz/tinymce-rails)
11
11
 
12
- **New in 3.5.11, 4.1.10 and 4.2.1:** Alternative asset installation methods (copy vs compile/symlink). See the [Asset Compilation](#asset-compilation) section below for details.
13
12
 
14
13
  Instructions
15
14
  ------------
@@ -51,7 +50,7 @@ alternate:
51
50
  - table
52
51
  ```
53
52
 
54
- See the [TinyMCE 5 Documentation](https://www.tiny.cloud/docs/configure/) for a full list of configuration options.
53
+ See the [TinyMCE 6 Documentation](https://www.tiny.cloud/docs/tinymce/6/) for a full list of configuration options.
55
54
 
56
55
 
57
56
  **3. Include the TinyMCE assets**
@@ -64,13 +63,7 @@ Use *one* of the following options to include TinyMCE assets.
64
63
  //= require tinymce
65
64
  ```
66
65
 
67
- or (2) with jQuery integration:
68
-
69
- ```js
70
- //= require tinymce-jquery
71
- ```
72
-
73
- (3) The TinyMCE assets can be included on a per-page basis using the `tinymce_assets` helper:
66
+ or (2) add the script tag to your layout using the `tinymce_assets` helper:
74
67
 
75
68
  ```erb
76
69
  <%= tinymce_assets %>
@@ -120,13 +113,13 @@ See the [tinymce-rails-langs](https://github.com/spohlenz/tinymce-rails-langs) g
120
113
  Manual Initialization
121
114
  ---------------------
122
115
 
123
- Using the `tinymce` helper and global configuration file is entirely optional. The `tinyMCE.init` function can be invoked manually if desired.
116
+ Using the `tinymce` helper and global configuration file is entirely optional. The `tinymce.init` JS function can be invoked manually if desired.
124
117
 
125
118
  ```erb
126
119
  <%= text_area_tag :editor, "", :rows => 40, :cols => 120 %>
127
120
 
128
121
  <script type="text/javascript">
129
- tinyMCE.init({
122
+ tinymce.init({
130
123
  selector: 'textarea.editor'
131
124
  });
132
125
  </script>
@@ -152,11 +145,7 @@ If you experience issues with the `compile` method, you may wish to use the `cop
152
145
  config.tinymce.install = :copy
153
146
  ```
154
147
 
155
- If you are including TinyMCE via `application.js` or using the `tinymce_assets` helper, you do not need to manually alter the precompile paths. However if you wish to include `tinymce-jquery.js` independently (i.e. using `javascript_include_tag`), you will need to add it to the precompile list in `config/environments/production.rb`:
156
-
157
- ```ruby
158
- config.assets.precompile << "tinymce-jquery.js"
159
- ```
148
+ If you are including TinyMCE via `application.js` or using the `tinymce_assets` helper, you do not need to manually add the scripts to the Sprockets precompile paths.
160
149
 
161
150
 
162
151
  Custom Plugins & Skins
data/Rakefile CHANGED
@@ -29,10 +29,9 @@ task :extract do
29
29
  `mv tmp/tinymce/js/tinymce/* vendor/assets/javascripts/tinymce/`
30
30
  end
31
31
 
32
- step "Extracting jQuery & unminified source files" do
32
+ step "Extracting unminified source" do
33
33
  `rm -rf tmp/tinymce`
34
34
  `unzip -u tmp/tinymce.dev.zip -d tmp`
35
- `mv tmp/tinymce/js/tinymce/jquery.tinymce.min.js vendor/assets/javascripts/tinymce/jquery.tinymce.js`
36
35
  `mkdir -p app/assets/source/tinymce`
37
36
  `mv tmp/tinymce/js/tinymce/tinymce.js app/assets/source/tinymce/tinymce.js`
38
37
  end
@@ -9,7 +9,7 @@ window.TinyMCERails = {
9
9
  var configuration = TinyMCERails.configuration[config || 'default'];
10
10
  configuration = TinyMCERails._merge(configuration, options);
11
11
 
12
- tinyMCE.init(configuration);
12
+ tinymce.init(configuration);
13
13
  } else {
14
14
  // Wait until TinyMCE is loaded
15
15
  setTimeout(function() {