tinymce-rails-imageupload 3.5.6 → 3.5.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,13 @@
1
+ ## 3.5.6.1 (August 9, 2012)
2
+
3
+ * Russian translation. Thanks to ffloyd (Roman Kolesnev)
4
+ * `window.opener` is not always available, so fall back to `window.parent` if needed. Thanks to ffloyd (Roman Kolesnev)
5
+
6
+ ## 3.5.6 (August 2, 2012)
7
+
8
+ * Relaxed dependency to work with newer tinymce-rails. Thanks to tjoneseng (Tim Jones)
9
+ * Fix accessing opener window. Thanks to dpc (Dawid Ciężarkiewicz)
10
+
1
11
  ## 3.4.9.1 (April 24, 2012)
2
12
 
3
13
  * Work with Rails' CSRF protection by copying the token into our form before submitting it
@@ -1,7 +1,7 @@
1
1
  module Tinymce
2
2
  module Rails
3
3
  module Imageupload
4
- VERSION = "3.5.6"
4
+ VERSION = "3.5.6.1"
5
5
  end
6
6
  end
7
7
  end
@@ -44,7 +44,7 @@
44
44
  },
45
45
 
46
46
  insert: function() {
47
- document.getElementById("authenticity_token").value = window.opener.$("meta[name='csrf-token']")[0].content;
47
+ document.getElementById("authenticity_token").value = (window.opener || window.parent).$("meta[name='csrf-token']")[0].content;
48
48
  document.forms[0].submit();
49
49
  }
50
50
  };
@@ -0,0 +1,3 @@
1
+ tinyMCE.addI18n('ru.uploadimage', {
2
+ desc: 'Вставить изображение с вашего компьютера'
3
+ });
@@ -0,0 +1,7 @@
1
+ tinyMCE.addI18n('ru.uploadimage_dlg', {
2
+ title: 'Вставить изображение',
3
+ header: "Вставить изображение",
4
+ input: "Выберите изображение",
5
+ insert: "Вставить",
6
+ cancel: "Отмена"
7
+ });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinymce-rails-imageupload
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.6
4
+ version: 3.5.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -99,6 +99,8 @@ files:
99
99
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en_dlg.js
100
100
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb.js
101
101
  - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb_dlg.js
102
+ - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/ru.js
103
+ - vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/ru_dlg.js
102
104
  homepage: http://eastblue.org/oss
103
105
  licenses: []
104
106
  post_install_message: