ckeditor-imgur 1.0.1 → 1.0.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5f44b5ae75f4e8da9b28684474fd8c43d0ba179
|
4
|
+
data.tar.gz: 1621f7e4f21c33419cab5072cf5ce74a6fe1c0c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2e2a5e1df3d6c5a26ebec981b239bdb607067f3f97f24a05cce1f96614c7f8d2e522cf8ee6a593337b10fae189e6c09a73e936b864763211252fc26b48bb4b
|
7
|
+
data.tar.gz: c1858ae51beebbce43a39eed0b2a3c142d51c07094e97adae2c2d119e68ce27ccd74466be222a507186efb522d76f9e0baef64e78d0ab348d2ddf61e3127b101
|
@@ -1,5 +1,5 @@
|
|
1
1
|
CKEDITOR.plugins.setLang('imgur', 'en', {
|
2
|
-
|
2
|
+
clientIDMissing: 'Add config.imgurClientID to your assets/javascripts/ckeditor/config.js',
|
3
3
|
uploading: ' images are uploading...',
|
4
4
|
failToUpload: 'Failed to upload:',
|
5
5
|
label: 'upload images'
|
@@ -4,9 +4,9 @@
|
|
4
4
|
lang: ['zh', 'en'],
|
5
5
|
init: function( editor )
|
6
6
|
{
|
7
|
-
|
8
|
-
if(!
|
9
|
-
alert(editor.lang.imgur.
|
7
|
+
ClientID = editor.config.imgurClientID;
|
8
|
+
if(!ClientID)
|
9
|
+
alert(editor.lang.imgur.ClientIDMissing);
|
10
10
|
|
11
11
|
var count = 0;
|
12
12
|
var $placeholder = $("<div></div>").css({
|
@@ -38,7 +38,7 @@
|
|
38
38
|
form.append('image', file);
|
39
39
|
$.ajax({
|
40
40
|
url: 'https://api.imgur.com/3/image',
|
41
|
-
headers: { Authorization: "Client-ID " +
|
41
|
+
headers: { Authorization: "Client-ID " + ClientID },
|
42
42
|
type: 'POST',
|
43
43
|
data: form,
|
44
44
|
cache: false,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ckeditor-imgur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JSON
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,3 +82,4 @@ signing_key:
|
|
82
82
|
specification_version: 4
|
83
83
|
summary: CKEditor image upload plugin
|
84
84
|
test_files: []
|
85
|
+
has_rdoc:
|