effective_ckeditor 1.10.1 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4dbe2ac01e6b4dd5283e76c535c3ce6cb860751991d632047c2b2add77d174a
|
4
|
+
data.tar.gz: c526a6c00a6fd95da8e1cc628c6e5bd08206de4b30ebf549ea2f884aed48544d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97a7071dd1777be666347191d523ded520d82a476b801ef9c2b3965782fed4bc194dc893ba91683035c05fbe831e63b63089f4b51d4b9a88b36a437f792b32ae
|
7
|
+
data.tar.gz: 2087f106d46076c8319ddb5c9c7ac0d78f1f567e293df9f951c608d39c591ac9ad46a9c09678122eec8600f260b8b2256d33d038afdb690bf5c49920a2453efe
|
@@ -1,9 +1,19 @@
|
|
1
1
|
window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";
|
2
2
|
|
3
|
+
<% sprockets = (Rails.application.assets || environment) %>
|
4
|
+
<% whitelist = ['ckeditor/plugins/', 'ckeditor/skins/', 'effective/snippets/', 'effective/templates/', 'ckeditor/contents.css'] %>
|
5
|
+
<% blacklist = ['effective_ckeditor'] %>
|
6
|
+
|
3
7
|
window.CKEDITOR_ASSETS_MAPPING = {
|
4
|
-
<%
|
5
|
-
|
6
|
-
|
8
|
+
<% if sprockets.respond_to?(:each_file) %>
|
9
|
+
<% sprockets.each_file.select { |path| whitelist.any? { |str| path.include?(str) } && blacklist.none? { |str| path.include?(str) } }.each do |asset| %>
|
10
|
+
"<%= asset %>": "<%= asset_path(asset) %>",
|
11
|
+
<% end %>
|
12
|
+
<% else %>
|
13
|
+
<% sprockets.each_logical_path(->(path, _) { whitelist.any? { |str| path.include?(str) } && blacklist.none? { |str| path.include?(str) } }) do |asset| %>
|
14
|
+
"<%= asset %>": "<%= asset_path(asset) %>",
|
15
|
+
<% end %>
|
16
|
+
<% end %>
|
7
17
|
}
|
8
18
|
|
9
19
|
window.CKEDITOR_GETURL = function( resource ) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_ckeditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -171,7 +171,7 @@ homepage: https://github.com/code-and-effect/effective_ckeditor
|
|
171
171
|
licenses:
|
172
172
|
- MIT
|
173
173
|
metadata: {}
|
174
|
-
post_install_message:
|
174
|
+
post_install_message:
|
175
175
|
rdoc_options: []
|
176
176
|
require_paths:
|
177
177
|
- lib
|
@@ -186,8 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
190
|
-
signing_key:
|
189
|
+
rubygems_version: 3.1.2
|
190
|
+
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Wraps the CKEditor 4 Javscript library (http://ckeditor.com/) for use with
|
193
193
|
the effective_regions gem.
|