tinymce-rails 5.10.2 → 6.1.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 +18631 -19280
  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 +6 -1
  10. data/lib/tinymce/rails/configuration_file.rb +4 -3
  11. data/lib/tinymce/rails/version.rb +2 -2
  12. data/vendor/assets/javascripts/tinymce/icons/default/icons.js +1 -1
  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 +998 -1139
  92. data/vendor/assets/javascripts/tinymce/tinymce.js +2 -7
  93. metadata +23 -30
  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: c6f33721f9949bdeec4e91b61655ebf03e5e5c872a44babe32dfe1b4b45e84e9
4
- data.tar.gz: 01c316a6b1e95cb836de79e2c61c412c71011e0227a277fd5594ab39ea456e36
3
+ metadata.gz: 24840c796b9ce02c8b8dffa0d84c8d2a576f5b9dc1846a2a72b7f288d3adb6fa
4
+ data.tar.gz: ebc900a50eaaffb3c327cf178e8966720003434525a4c3132f105b42f8502bf0
5
5
  SHA512:
6
- metadata.gz: 36d6c984ab967c0ff585f94cfe7da3b8c53c6236f4e0d78f08a70355da9159473619526d168bf0c8ab483793c940522abcb6ec5b6bce93bb930fe9eaa74b7e1f
7
- data.tar.gz: 036ff6f793b51621aa688dca6673ba70cd6078a05095c4ab2ebfdf6fdd53c1efc09f63ccb9ed07bd6264c590412bfc5d9fac062bceccec0593c7af404fc3865d
6
+ metadata.gz: 9d1c997a8cfb5846581139bd2d48c6da9460b26f5f8e0737b4a942af934ca46cf1797c3083de1ab94f5f0ab6cb78161ca1cdc554e55a27a9ba065b0b2b2f946d
7
+ data.tar.gz: 17bcbb7e78fdf4fd6e49af9536619a409af1e115b35340cca5c370f553deca6da752079f8579d63c529a75abfed38a2746a36b7f9f6c6da44db695e3950870be
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() {