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.
- checksums.yaml +4 -4
- data/README.md +7 -18
- data/Rakefile +1 -2
- data/app/assets/javascripts/tinymce/rails.js +1 -1
- data/app/assets/source/tinymce/tinymce.js +18631 -19280
- data/lib/tinymce/rails/asset_installer/compile.rb +2 -2
- data/lib/tinymce/rails/asset_installer.rb +1 -1
- data/lib/tinymce/rails/asset_manifest.rb +1 -1
- data/lib/tinymce/rails/configuration.rb +6 -1
- data/lib/tinymce/rails/configuration_file.rb +4 -3
- data/lib/tinymce/rails/version.rb +2 -2
- data/vendor/assets/javascripts/tinymce/icons/default/icons.js +1 -1
- data/vendor/assets/javascripts/tinymce/license.txt +21 -504
- data/vendor/assets/javascripts/tinymce/models/dom/model.js +4 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/emoticons/js/emojiimages.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/emoticons/js/emojis.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +2 -7
- data/vendor/assets/javascripts/tinymce/skins/content/dark/content.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/content/dark/content.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/content/default/content.css +0 -6
- data/vendor/assets/javascripts/tinymce/skins/content/default/content.min.css +0 -6
- data/vendor/assets/javascripts/tinymce/skins/content/document/content.css +0 -6
- data/vendor/assets/javascripts/tinymce/skins/content/document/content.min.css +0 -6
- data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/content/writer/content.css +0 -6
- data/vendor/assets/javascripts/tinymce/skins/content/writer/content.min.css +0 -6
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +1 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
- data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -7
- data/vendor/assets/javascripts/tinymce/tinymce.d.ts +998 -1139
- data/vendor/assets/javascripts/tinymce/tinymce.js +2 -7
- metadata +23 -30
- data/app/assets/javascripts/tinymce-jquery.js +0 -2
- data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +0 -91
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/colorpicker/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/hr/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/imagetools/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/print/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/textcolor/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/textpattern/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/plugins/toc/plugin.js +0 -9
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.mobile.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.mobile.min.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.mobile.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -7
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -7
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24840c796b9ce02c8b8dffa0d84c8d2a576f5b9dc1846a2a72b7f288d3adb6fa
|
4
|
+
data.tar.gz: ebc900a50eaaffb3c327cf178e8966720003434525a4c3132f105b42f8502bf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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=
|
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
|
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)
|
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 `
|
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
|
-
|
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
|
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
|
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
|
-
|
12
|
+
tinymce.init(configuration);
|
13
13
|
} else {
|
14
14
|
// Wait until TinyMCE is loaded
|
15
15
|
setTimeout(function() {
|