ckeditor_rails 4.16.2 → 4.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/ckeditor-rails/tasks.rake +6 -1
- data/lib/ckeditor-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9ac24c0abd301e48f9967da16ff15a6412168be32243a3a812a1a962af70655
|
4
|
+
data.tar.gz: 14209ed87a97916f66d607ce03dd9178186c2d2e35d7962e2fa94afea554ae28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 978deba508cf6849f221942c130f49cd4126bcb309dce83b1b457b691bb3f5d30bbeffa0f1d8bc34300f25b35d7e1d4896a5a974b7f92a09f00aa3bc6c93ca60
|
7
|
+
data.tar.gz: fb66524b3c521f1d48a8be10cc127bd2f17346a1690217dea7cf9b749a248366d747ddeb1437702a30eed1c26ef1d7670219a3438c63b6136e19af598f048792
|
data/README.md
CHANGED
@@ -64,6 +64,14 @@ CKEDITOR.editorConfig = (config) ->
|
|
64
64
|
true
|
65
65
|
```
|
66
66
|
|
67
|
+
Type `CKEDITOR.config` in browser's console panel to check all configuration.
|
68
|
+
|
69
|
+
Add your `config.js` to assets precompile list in `config/initializers/assets.rb`.
|
70
|
+
|
71
|
+
``` ruby
|
72
|
+
Rails.application.config.assets.precompile += %w( ckeditor/config.js )
|
73
|
+
```
|
74
|
+
|
67
75
|
### Include customized stylesheet for contents of CKEditor
|
68
76
|
|
69
77
|
Add your `app/assets/stylesheets/ckeditor/contents.css.scss` like
|
@@ -80,6 +88,12 @@ ol,ul,dl {
|
|
80
88
|
}
|
81
89
|
```
|
82
90
|
|
91
|
+
Add your `contents.css` to assets precompile list in `config/initializers/assets.rb`.
|
92
|
+
|
93
|
+
``` ruby
|
94
|
+
Rails.application.config.assets.precompile += %w( ckeditor/contents.css )
|
95
|
+
```
|
96
|
+
|
83
97
|
### Remove CKEditor addon services
|
84
98
|
|
85
99
|
To avoid see warnings like
|
@@ -208,6 +222,8 @@ If you observe an issue (especially in Heroku environment) where asset compilati
|
|
208
222
|
config.assets.precompile += ['ckeditor/*']
|
209
223
|
```
|
210
224
|
|
225
|
+
Run `bundle exec rake assets:precompile` and `ls -al public/assets/ckeditor/` to check if everything is generated as expected.
|
226
|
+
|
211
227
|
## License
|
212
228
|
|
213
229
|
CKEditor use [CKEditor license](http://ckeditor.com/license).
|
@@ -3,7 +3,12 @@ require 'fileutils'
|
|
3
3
|
desc "Create nondigest versions of all ckeditor digest assets"
|
4
4
|
task "assets:precompile" do
|
5
5
|
fingerprint = /\-([0-9a-f]{32}|[0-9a-f]{64})\./
|
6
|
-
|
6
|
+
files = Dir["#{File.join('public', Rails.configuration.assets.prefix)}/ckeditor/**/*"]
|
7
|
+
|
8
|
+
# sort files having same digest with/without .gz by file mtime to have same order
|
9
|
+
# otherwise copy order of nondigest file with/without .gz could be different
|
10
|
+
sorted_files = files.sort_by { |file| File.mtime(file) }.reverse
|
11
|
+
sorted_files.each do |file|
|
7
12
|
next unless file =~ fingerprint
|
8
13
|
nondigest = file.sub fingerprint, '.'
|
9
14
|
if !File.exist?(nondigest) or File.mtime(file) > File.mtime(nondigest)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ckeditor_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.16.
|
4
|
+
version: 4.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tse-Ching Ho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|