spree_editor 0.30.0 → 0.30.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- require File.expand_path('../../config/application', __FILE__)
2
-
3
1
  require 'rubygems'
4
2
  require 'rake'
5
3
  require 'rake/testtask'
@@ -28,4 +26,4 @@ RSpec::Core::RakeTask.new
28
26
  # require 'cucumber/rake/task'
29
27
  # Cucumber::Rake::Task.new do |t|
30
28
  # t.cucumber_opts = %w{--format pretty}
31
- # end
29
+ # end
@@ -24,7 +24,7 @@
24
24
  <script type="text/javascript" charset="utf-8">
25
25
  var <%= editor_id %>_editor = new YAHOO.widget.Editor('<%= editor_id %>', {
26
26
  height: '350px',
27
- width: '790px',
27
+ width: 'auto',
28
28
  animate: true,
29
29
  handleSubmit: true,
30
30
  toolbar: {
@@ -108,26 +108,20 @@
108
108
  { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
109
109
  { type: 'push', label: '<%= t("editor.insert_image") %>', value: 'insertimage' }
110
110
  ]
111
+ },
112
+ { type: 'separator' },
113
+ { group: 'uploaditem', label: '<%= t("editor.upload_file") %>',
114
+ buttons: [
115
+ { type: 'push', label: '<%= t("editor.upload_image") %>', value: 'imageUpload' },
116
+ { type: 'push', label: '<%= t("editor.upload_file") %>', value: 'fileUpload' }
117
+ ]
111
118
  }
119
+
112
120
  ]
113
121
  }
114
122
  });
115
123
 
116
- <%= editor_id %>_editor.on('toolbarLoaded', function() {
117
- var imageUploadConfig = {
118
- type: 'push',
119
- label: '<%= t("editor.upload_image") %>',
120
- value: 'imageUpload'
121
- };
122
- <%= editor_id %>_editor.toolbar.addButtonToGroup(imageUploadConfig, 'insertitem');
123
-
124
- var fileUploadConfig = {
125
- type: 'push',
126
- label: '<%= t("editor.upload_file") %>',
127
- value: 'fileUpload'
128
- };
129
- <%= editor_id %>_editor.toolbar.addButtonToGroup(fileUploadConfig, 'insertitem');
130
- });
124
+
131
125
 
132
126
  <%= editor_id %>_editor.addListener('editorContentLoaded', function() {
133
127
  $(".yui-toolbar-imageUpload").upload({
@@ -10,7 +10,7 @@ en:
10
10
  insert_item: Insert Item
11
11
  insert_image: Insert Image
12
12
  upload_image: Upload Image
13
- upload_image: Upload File
13
+ upload_file: Upload File
14
14
  show_more_fields: Show more fields
15
15
  hide_more_fields: Hide more fields
16
16
  switch_simple: Switch to Simple Editor
@@ -9,7 +9,7 @@ ru:
9
9
  insert_item: Вставка
10
10
  insert_image: Вставить картинки по адресу
11
11
  upload_image: Загрузить картинку
12
- upload_image: Загрузить файл
12
+ upload_file: Загрузить файл
13
13
  show_more_fields: Показать дополнительные поля
14
14
  hide_more_fields: Скрыть дополнительные поля
15
15
  switch_simple: Переключиться на простой редактор
data/spree_editor.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'spree_editor'
4
- s.version = '0.30.0'
4
+ s.version = '0.30.1'
5
5
  s.summary = 'Add gem summary here'
6
6
  #s.description = 'Add (optional) gem description here'
7
7
  s.required_ruby_version = '>= 1.8.7'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 30
8
- - 0
9
- version: 0.30.0
8
+ - 1
9
+ version: 0.30.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - divineforest
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-20 00:00:00 +03:00
17
+ date: 2011-01-31 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency