tinymce-rails 5.10.4 → 6.0.3.1

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 +19785 -20782
  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/langs/{README.md → readme.md} +0 -0
  13. data/vendor/assets/javascripts/tinymce/license.txt +21 -504
  14. data/vendor/assets/javascripts/tinymce/models/dom/model.js +4 -0
  15. data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +2 -7
  16. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +2 -7
  17. data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +2 -7
  18. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +2 -7
  19. data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +2 -7
  20. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +2 -7
  21. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +2 -7
  22. data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +2 -7
  23. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +2 -7
  24. data/vendor/assets/javascripts/tinymce/plugins/emoticons/js/emojiimages.js +1 -1
  25. data/vendor/assets/javascripts/tinymce/plugins/emoticons/js/emojis.js +1 -1
  26. data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +2 -7
  27. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +2 -7
  28. data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +2 -7
  29. data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +2 -7
  30. data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +2 -7
  31. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +2 -7
  32. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +2 -7
  33. data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +2 -7
  34. data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +2 -7
  35. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +2 -7
  36. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +2 -7
  37. data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +2 -7
  38. data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +2 -7
  39. data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +2 -7
  40. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +2 -7
  41. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +2 -7
  42. data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +2 -7
  43. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +2 -7
  44. data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +2 -7
  45. data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +2 -7
  46. data/vendor/assets/javascripts/tinymce/skins/content/dark/content.css +1 -7
  47. data/vendor/assets/javascripts/tinymce/skins/content/dark/content.min.css +1 -7
  48. data/vendor/assets/javascripts/tinymce/skins/content/default/content.css +0 -6
  49. data/vendor/assets/javascripts/tinymce/skins/content/default/content.min.css +0 -6
  50. data/vendor/assets/javascripts/tinymce/skins/content/document/content.css +0 -6
  51. data/vendor/assets/javascripts/tinymce/skins/content/document/content.min.css +0 -6
  52. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.css +1 -0
  53. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.min.css +1 -0
  54. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.css +1 -0
  55. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
  56. data/vendor/assets/javascripts/tinymce/skins/content/writer/content.css +0 -6
  57. data/vendor/assets/javascripts/tinymce/skins/content/writer/content.min.css +0 -6
  58. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.css +1 -7
  59. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.css +1 -7
  60. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  61. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.min.css +1 -7
  62. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.css +1 -7
  63. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.min.css +1 -7
  64. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.css +1 -7
  65. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  66. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.css +1 -7
  67. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.css +1 -7
  68. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  69. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  70. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.css +1 -7
  71. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  72. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +1 -7
  73. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  74. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.css +1 -0
  75. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.css +1 -0
  76. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
  77. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
  78. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.css +1 -0
  79. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  80. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +1 -0
  81. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  82. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.css +1 -0
  83. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.css +1 -0
  84. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  85. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
  86. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.css +1 -0
  87. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  88. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +1 -0
  89. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  90. data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -7
  91. data/vendor/assets/javascripts/tinymce/tinymce.d.ts +969 -1127
  92. data/vendor/assets/javascripts/tinymce/tinymce.js +2 -7
  93. metadata +24 -31
  94. data/app/assets/javascripts/tinymce-jquery.js +0 -2
  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: 8a2508b55e1479d9224ae7925e1b337e5c4635a25cb62b0f18cd0a490f1f1dc8
4
- data.tar.gz: 0a134df6e63f19cde42bc81061f75beb8254f981b8afe962b2335460c2936fd4
3
+ metadata.gz: db5ed00af332610fb1a8d4897f2ef750858a36a68e97f2f858b48ee216ff1bf4
4
+ data.tar.gz: 6bf27b3ba617ad8864e93c6317a4416107df32ac4b462bcc9063df0e021402f7
5
5
  SHA512:
6
- metadata.gz: 24e2bb5fda2bbbdfd93aca91f9eb94798509797109af99eb6b2939ca702777defb18520a2bff7a00081ff97c7f8f08b503ab0188bf901ce0411fb2fe8f217028
7
- data.tar.gz: a91601a0dcf4313ee3e52e57eb536a9fb303cb1b4a2d26ce66aa7c176e102ffe1c035b0da80350a26baafe2ee8a922d12918c11825a6787f00e9dd87d1eb8ab0
6
+ metadata.gz: 57e5d0623a3ded5be0d7986a7718d5b02c81569c6b1c81bf0865dccb3a1d1aa21d5e8541c0d112b3dbafc409fef34240859e48261723ab486b20935799583ea3
7
+ data.tar.gz: 3adaa3b7cc7b3d610d23fecdec1388852a5d6b4790787b1f78083baf0ad432195826ce953df93902212c63eccd4e058b22dc332d2acf055bef989b05c2a5c411
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. For TinyMCE 4, please see the [tinymce-4 branch](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4), and for TinyMCE 3.5.x, please see the [tinymce-3 branch](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() {