tinymce-rails 5.10.7.1 → 6.0.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 +8 -19
- data/Rakefile +1 -2
- data/app/assets/javascripts/tinymce/rails.js +1 -1
- data/app/assets/source/tinymce/tinymce.js +17821 -18858
- 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 +2 -2
- data/lib/tinymce/rails/configuration_file.rb +3 -4
- data/lib/tinymce/rails/version.rb +2 -2
- 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 +967 -1130
- data/vendor/assets/javascripts/tinymce/tinymce.js +2 -7
- metadata +24 -32
- data/app/assets/javascripts/tinymce-jquery.js +0 -2
- data/vendor/assets/config/tinymce-rails.manifest.js +0 -3
- 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: ceca1d6ec93f7676276ee94ac080c3e44fef3b672988cdecec876d4b19c5427c
|
4
|
+
data.tar.gz: 2e8ee69d71bea65587a3a69e55e58651584a0b46e2d4a41895d5492c63a8a5c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58579d8c265d136fe174ccab86e735c1cf09c3acbce81d46152cb1ee697bb7b6a92a67f6b848b7f587f98fce09e0f8f43c6b93839379c908ac182a5ca308c244
|
7
|
+
data.tar.gz: bc1f36a40e881ad1a7c6443a73895b92432ac4d87cb4b775bf23c980478910552193cd4fbfbf26def945129c40cd0da2879ab14d017322688c55d43ce9057569
|
data/README.md
CHANGED
@@ -3,13 +3,12 @@ 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
|
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://
|
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() {
|