tinymce-rails-imageupload 3.4.8.1 → 3.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +6 -0
- data/README.markdown +22 -0
- data/lib/tinymce-rails-imageupload.rb +1 -0
- data/lib/tinymce-rails-imageupload/version.rb +1 -1
- data/tinymce-rails-imageupload.gemspec +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/{no.js → nb.js} +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/{no_dlg.js → nb_dlg.js} +1 -1
- metadata +14 -14
data/CHANGELOG.markdown
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 3.4.9 (April 5, 2012)
|
2
|
+
|
3
|
+
* Document how to use I18n with the gem
|
4
|
+
* Explicitly require tinymce-rails so tinymce-rails-imageupload can be alone in the gemfile
|
5
|
+
* Update dependency to tinymce-rails 3.4.9
|
6
|
+
|
1
7
|
## 3.4.8.1 (March 7, 2012)
|
2
8
|
|
3
9
|
* Added support for setting height and width for the inserted image
|
data/README.markdown
CHANGED
@@ -46,6 +46,28 @@ This action gets called with a file parameter creatively called `file`, and must
|
|
46
46
|
|
47
47
|
If the JSON response contains a `width` and/or `height` key, those will be used in the inserted HTML (`<img src="..." width="..." height="...">`), but if those are not present, the inserted HTML is just `<img src="...">`.
|
48
48
|
|
49
|
+
## Internationalization
|
50
|
+
|
51
|
+
I18n is taken care of by `tinymce-rails`. This gem includes strings for English and Norwegian. To add your own language, create the files `<code>.js` and `<code>_dlg.js` in `vendor/assets/javascripts/tinymce/plugins/uploadimage/langs` in your application.
|
52
|
+
|
53
|
+
The available strings are listed below:
|
54
|
+
|
55
|
+
### en.js
|
56
|
+
|
57
|
+
tinyMCE.addI18n('en.uploadimage', {
|
58
|
+
desc: 'Insert an image from your computer'
|
59
|
+
});
|
60
|
+
|
61
|
+
### en_dlg.js
|
62
|
+
|
63
|
+
tinyMCE.addI18n('en.uploadimage_dlg', {
|
64
|
+
title: 'Insert image',
|
65
|
+
header: "Insert image",
|
66
|
+
input: "Choose an image",
|
67
|
+
insert: "Insert",
|
68
|
+
cancel: "Cancel"
|
69
|
+
});
|
70
|
+
|
49
71
|
## Versioning
|
50
72
|
|
51
73
|
The version of this gem will be mirroring the release of `tinymce-rails` it is tested against.
|
@@ -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", "~> 3.4.
|
19
|
+
s.add_runtime_dependency "tinymce-rails", "~> 3.4.9"
|
20
20
|
s.add_development_dependency "bundler", "~> 1.0.0"
|
21
21
|
s.add_development_dependency "rails", ">= 3.1"
|
22
22
|
end
|
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.4.
|
4
|
+
version: 3.4.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &6045900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *6045900
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: tinymce-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &6044200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.4.
|
32
|
+
version: 3.4.9
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *6044200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &5180520 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *5180520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &5179840 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '3.1'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *5179840
|
58
58
|
description: TinyMCE plugin for taking image uploads in Rails >= 3.1
|
59
59
|
email:
|
60
60
|
- perchr@northblue.org
|
@@ -77,8 +77,8 @@ files:
|
|
77
77
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/img/uploadimage.png
|
78
78
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en.js
|
79
79
|
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/en_dlg.js
|
80
|
-
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/
|
81
|
-
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/
|
80
|
+
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb.js
|
81
|
+
- vendor/assets/javascripts/tinymce/plugins/uploadimage/langs/nb_dlg.js
|
82
82
|
homepage: http://eastblue.org/oss
|
83
83
|
licenses: []
|
84
84
|
post_install_message:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
|
-
rubygems_version: 1.8.
|
102
|
+
rubygems_version: 1.8.17
|
103
103
|
signing_key:
|
104
104
|
specification_version: 3
|
105
105
|
summary: TinyMCE plugin for taking image uploads in Rails >= 3.1
|