tinymce-rails-imageupload 3.5.8.3 → 3.5.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.asc +13 -13
- data/CHANGELOG.md +6 -0
- data/lib/tasks/tinymce-uploadimage-assets.rake +12 -5
- data/lib/tinymce-rails-imageupload/rails.rb +1 -11
- data/lib/tinymce-rails-imageupload/version.rb +1 -1
- data/tinymce-rails-imageupload.gemspec +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/dialog.html +16 -10
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/de.js +3 -0
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/de_dlg.js +12 -0
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/es.js +3 -0
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/es_dlg.js +12 -0
- metadata +11 -6
- metadata.gz.asc +13 -13
data.tar.gz.asc
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
=
|
5
|
+
iQIcBAABAgAGBQJRdnMWAAoJEH1ncb0Txu7XWKEP/3DFiCqdm34hMQcug730DvsL
|
6
|
+
eRgVDtvHgAk9hCrEa7dkdKeuOsL83fw8P+mA8Krf4IdDz0iVlrCpCKDxrh1B0Jeq
|
7
|
+
ZncHkHi4D0VVFwPSUBgRfohOq9aKK4C9KHBmC9kutRdh3bjZoQ52Q+RSxyDwW2gZ
|
8
|
+
4lgihX8ltzz5EMHqNm4Hi+J6NIyeZhe4YhhCZLIwHX3dnQE6A6PZeX+YjOjW5u14
|
9
|
+
9LeKyz9NvGVgQ7H9s7VraNHP+1dLMMoqnPUL2rqfB3jAd8hPSg8Yr/gKpPB6gE+q
|
10
|
+
xzvMRPMX+UgUZbTS7LBlLCyNe4amerFe+q4zEA5oLFKzNIdH8LP2fHZ191YDJN53
|
11
|
+
0dl+LoiblaKStcYUlR+/x6a4OCtnsceUPSFWOv76SP9j/w5ekTZoNvD0HF+kPzR0
|
12
|
+
b7mgwfmtB8Lc2HAyVh/t5+XIC0J/G0+qXmJ6eDIofR/hpoErBoFmxLPQQRXegXkc
|
13
|
+
79DIFiEHRxol8qmKr63TkqOAb45YBvNro10UnpIMqA+8fkRfKQDaMwG/zpR/0K6q
|
14
|
+
5GmmLU6YCNSZNIc9s+6gKZ3RBuXDN5EyT9eg1P622e7dflbdW/fNxmZmburonnAr
|
15
|
+
MnpBoymcjiUt5YyoAmBp1gXuFiaH8df3fpJ+y/Vg41HVBNq+4co7Bafstq+5IKMy
|
16
|
+
qtSqceCrq5FEAz1M5+96
|
17
|
+
=qWAO
|
18
18
|
-----END PGP SIGNATURE-----
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 3.5.8.4 / 2013-04-23
|
2
|
+
|
3
|
+
* Make the plugin work in IE8 and IE9 again. Thanks to pomartel (Pierre Olivier Martel)
|
4
|
+
* Add German translations. Thanks to pomartel (Pierre Olivier Martel)
|
5
|
+
* Add Spanish translations. Thanks to pomartel (Pierre Olivier Martel)
|
6
|
+
|
1
7
|
# 3.5.8.3 / 2013-03-18
|
2
8
|
|
3
9
|
* Add option for assigning class to img tag. Thanks to nathanshox (Nathan Shaughnessy)
|
@@ -1,7 +1,14 @@
|
|
1
|
-
Rake::Task
|
2
|
-
assets = File.expand_path(File.dirname(__FILE__) + "/../../vendor/assets/javascripts/tinymce")
|
3
|
-
target = File.join(Rails.public_path, Rails.application.config.assets.prefix)
|
1
|
+
assets_task = Rake::Task.task_defined?('assets:precompile:primary') ? 'assets:precompile:primary' : 'assets:precompile'
|
4
2
|
|
5
|
-
|
6
|
-
|
3
|
+
Rake::Task[assets_task].enhance do
|
4
|
+
require "tinymce/rails/asset_installer"
|
5
|
+
|
6
|
+
config = Rails.application.config
|
7
|
+
target = File.join(Rails.public_path, config.assets.prefix)
|
8
|
+
manifest = config.assets.manifest
|
9
|
+
|
10
|
+
assets = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__),
|
11
|
+
"../../vendor/assets/javascripts/tinymce/plugins/uploadimage")))
|
12
|
+
TinyMCE::Rails::AssetInstaller::ASSETS = assets
|
13
|
+
TinyMCE::Rails::AssetInstaller.new(target, manifest).install
|
7
14
|
end
|
@@ -3,17 +3,7 @@ module Tinymce
|
|
3
3
|
module Imageupload
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
initializer 'TinymceRailsImageupload.assets_pipeline' do |app|
|
6
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage
|
7
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/en.js"
|
8
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/en_dlg.js"
|
9
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/fr.js"
|
10
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/fr_dlg.js"
|
11
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/nb.js"
|
12
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/nb_dlg.js"
|
13
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/pt.js"
|
14
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/pt_dlg.js"
|
15
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/ru.js"
|
16
|
-
app.config.assets.precompile << "tinymce/plugins/uploadimage/langs/ru_dlg.js"
|
6
|
+
app.config.assets.precompile << "tinymce/plugins/uploadimage/*"
|
17
7
|
end
|
18
8
|
end
|
19
9
|
end
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
|
18
18
|
s.add_runtime_dependency "railties", ">= 3.1"
|
19
|
-
s.add_runtime_dependency "tinymce-rails", "
|
19
|
+
s.add_runtime_dependency "tinymce-rails", "~> 3.5.8"
|
20
20
|
s.add_development_dependency "bundler", "~> 1.0"
|
21
21
|
s.add_development_dependency "rails", ">= 3.1"
|
22
22
|
end
|
@@ -23,30 +23,36 @@
|
|
23
23
|
document.getElementById("authenticity_token").value = this.getMetaContents('csrf-token');
|
24
24
|
|
25
25
|
this.iframe = document.getElementById("hidden_upload");
|
26
|
-
if(this.iframe.attachEvent)
|
27
|
-
this.iframe.attachEvent('onload', UploadImageDialog.uploadDone);
|
28
|
-
else
|
29
|
-
this.iframe.addEventListener('load', UploadImageDialog.uploadDone, false);
|
30
26
|
},
|
31
27
|
|
32
28
|
insert: function() {
|
29
|
+
// Detach events first, then attach to avoid double event triggering
|
30
|
+
if(this.iframe.attachEvent) {
|
31
|
+
this.iframe.detachEvent('onload', UploadImageDialog.uploadDone);
|
32
|
+
this.iframe.attachEvent('onload', UploadImageDialog.uploadDone);
|
33
|
+
} else {
|
34
|
+
this.iframe.removeEventListener('load', UploadImageDialog.uploadDone);
|
35
|
+
this.iframe.addEventListener('load', UploadImageDialog.uploadDone, false);
|
36
|
+
}
|
33
37
|
var input = document.getElementById("file_upload");
|
34
38
|
|
35
39
|
if(input.value != "") {
|
36
40
|
document.getElementById("upload_spinner").className = '';
|
37
41
|
this.f.submit();
|
38
|
-
} else
|
42
|
+
} else {
|
39
43
|
this.handleError(tinyMCEPopup.getLang("uploadimage_dlg.blank_input", "Must choose a file"));
|
44
|
+
}
|
40
45
|
},
|
41
46
|
|
42
47
|
uploadDone: function() {
|
43
48
|
document.getElementById("upload_spinner").className = 'inactive';
|
44
|
-
|
45
|
-
if(
|
46
|
-
var doc =
|
49
|
+
var iframe = document.getElementById("hidden_upload");
|
50
|
+
if(iframe.document || iframe.contentDocument) {
|
51
|
+
var doc = iframe.contentDocument || iframe.contentWindow.document;
|
47
52
|
UploadImageDialog.handleResponse(doc.getElementsByTagName("body")[0].innerHTML);
|
48
|
-
} else
|
53
|
+
} else {
|
49
54
|
UploadImageDialog.handleError(tinyMCEPopup.getLang("uploadimage_dlg.blank_response", "Didn't get a response from the server"));
|
55
|
+
}
|
50
56
|
},
|
51
57
|
|
52
58
|
handleResponse: function(ret) {
|
@@ -123,7 +129,7 @@
|
|
123
129
|
<input type="hidden" name="utf8" value="✓">
|
124
130
|
<input type="hidden" name="authenticity_token" id="authenticity_token" value="#replaceme">
|
125
131
|
<input type="hidden" name="hint" id="hint" value="#replaceme">
|
126
|
-
<iframe id="hidden_upload" name="hidden_upload" src="" style='width:0;height:0;border:0px solid #fff'></iframe>
|
132
|
+
<iframe id="hidden_upload" name="hidden_upload" src="javascript:void(0)" style='width:0;height:0;border:0px solid #fff'></iframe>
|
127
133
|
|
128
134
|
<label id='file_upload_label' for='file_upload'>{#uploadimage_dlg.input}:</label>
|
129
135
|
<input type='file' name='file' id='file_upload'>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
tinyMCE.addI18n('de.uploadimage_dlg', {
|
2
|
+
title: 'Bild einfügen',
|
3
|
+
header: "Bild einfügen",
|
4
|
+
input: "Bild auswählen",
|
5
|
+
uploading: "Wird geladen...",
|
6
|
+
blank_input: "Datei auswählen",
|
7
|
+
bad_response: "Ungültige Antwort vom Server",
|
8
|
+
blank_response: "Server antwortet nicht",
|
9
|
+
insert: "Einfügen",
|
10
|
+
cancel: "Abbrechen",
|
11
|
+
alt_text: "Bildbeschreibung"
|
12
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
tinyMCE.addI18n('es.uploadimage_dlg', {
|
2
|
+
title: 'Insertar una imagen',
|
3
|
+
header: "Insertar una imagen",
|
4
|
+
input: "Elija una imagen",
|
5
|
+
uploading: "Subiendo…",
|
6
|
+
blank_input: "Debe elegir un archivo",
|
7
|
+
bad_response: "Mala respuesta del servidor",
|
8
|
+
blank_response: "No se recibió respuesta del servidor",
|
9
|
+
insert: "Insertar",
|
10
|
+
cancel: "Cancelar",
|
11
|
+
alt_text: "Descripción de la imagen"
|
12
|
+
});
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: tinymce-rails-imageupload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.5.8.
|
5
|
+
version: 3.5.8.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Per Christian B. Viken
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -33,16 +33,16 @@ dependencies:
|
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
none: false
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 3.
|
38
|
+
version: 3.5.8
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 3.
|
45
|
+
version: 3.5.8
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: bundler
|
48
48
|
type: :development
|
@@ -97,8 +97,12 @@ files:
|
|
97
97
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/editor_plugin.js
|
98
98
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/img/spinner.gif
|
99
99
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/img/uploadimage.png
|
100
|
+
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/de.js
|
101
|
+
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/de_dlg.js
|
100
102
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en.js
|
101
103
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en_dlg.js
|
104
|
+
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/es.js
|
105
|
+
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/es_dlg.js
|
102
106
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/fr.js
|
103
107
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/fr_dlg.js
|
104
108
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb.js
|
@@ -134,3 +138,4 @@ signing_key:
|
|
134
138
|
specification_version: 3
|
135
139
|
summary: TinyMCE plugin for taking image uploads in Rails >= 3.1
|
136
140
|
test_files: []
|
141
|
+
has_rdoc:
|
metadata.gz.asc
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
|
3
3
|
Comment: GPGTools - http://gpgtools.org
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
/
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
=
|
5
|
+
iQIcBAABAgAGBQJRdnMXAAoJEH1ncb0Txu7XV1EP/jyqoDdPhGyCm3APtIJP/ACE
|
6
|
+
G/07jFHx+zqUPUIbaiK76BRh/LeWsv+8cV7BrpKrwNA0egzhJUd6ZLL2h36hHgH0
|
7
|
+
hQ3nxXu/lAcQaH4lTPR/IHW8DcTCWmi7jAmf7ajH4miPwDvbtyzqUZxPf4HOrB0g
|
8
|
+
+DFf/cf8xegg/7rL2Vsnt4wse0O7/skTAMHSE6L+o+f5UbP8lnChU5vWLYwzbQlD
|
9
|
+
xZfrWKP6mekIj5kKUc5kY2/ROyFs0boLYw73f/LV8BBeuwCBik/HzsdjkFvOZhvt
|
10
|
+
AKASHu9qDgmJLUA5IabqqThLsJcjZrPVHvMK1dSGtgYNFMNk/2RkwDzazQzGG3cL
|
11
|
+
ZJE1tlQyLvf4iz1yS7Oa9FrKyB2HUOMEkN+/B5Re44k8YwUwThYepNeZzvldjQzg
|
12
|
+
RlxA5Ybs4GC8QXBP9zbeW+xhky/NsdtIEhxAWYrKjTqsA8SDuBCf+RpkXRO3AFKY
|
13
|
+
zFMGJhAfHQ+OlAjM/TCXoS9m0+nefTJKlaB2NQxCXXDPSUClK6xb60TlTlxzLQu8
|
14
|
+
nbB02gSx3nRX1BzAtFb7cSTLi/Q54D99I+d+mUZMFdCmM2T47i1LMK/6ywOsK0Tl
|
15
|
+
v5W4AjQDY7f9H9RsJ0tlbfAFkt19dO7S7FnIICqMngXY5uVlpU7cUYtUwLrwNsbE
|
16
|
+
EeEyzOchkUfukFot3xYV
|
17
|
+
=061g
|
18
18
|
-----END PGP SIGNATURE-----
|