redactor-rails 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -2
  3. data/app/controller/redactor_rails/documents_controller.rb +9 -1
  4. data/app/controller/redactor_rails/pictures_controller.rb +9 -1
  5. data/lib/redactor-rails/helper.rb +1 -4
  6. data/lib/redactor-rails/orm/active_record.rb +1 -1
  7. data/lib/redactor-rails/version.rb +1 -1
  8. data/vendor/assets/javascripts/redactor-rails/index.js +1 -1
  9. data/vendor/assets/javascripts/redactor-rails/langs/ar.js +3 -2
  10. data/vendor/assets/javascripts/redactor-rails/langs/ba.js +3 -2
  11. data/vendor/assets/javascripts/redactor-rails/langs/bg.js +3 -2
  12. data/vendor/assets/javascripts/redactor-rails/langs/by.js +4 -3
  13. data/vendor/assets/javascripts/redactor-rails/langs/cs.js +3 -2
  14. data/vendor/assets/javascripts/redactor-rails/langs/da.js +4 -3
  15. data/vendor/assets/javascripts/redactor-rails/langs/de.js +4 -3
  16. data/vendor/assets/javascripts/redactor-rails/langs/en.js +3 -2
  17. data/vendor/assets/javascripts/redactor-rails/langs/eo.js +3 -2
  18. data/vendor/assets/javascripts/redactor-rails/langs/es.js +4 -3
  19. data/vendor/assets/javascripts/redactor-rails/langs/fa.js +3 -2
  20. data/vendor/assets/javascripts/redactor-rails/langs/fi.js +3 -2
  21. data/vendor/assets/javascripts/redactor-rails/langs/fr.js +4 -3
  22. data/vendor/assets/javascripts/redactor-rails/langs/hr.js +3 -2
  23. data/vendor/assets/javascripts/redactor-rails/langs/hu.js +3 -2
  24. data/vendor/assets/javascripts/redactor-rails/langs/id.js +3 -2
  25. data/vendor/assets/javascripts/redactor-rails/langs/it.js +3 -2
  26. data/vendor/assets/javascripts/redactor-rails/langs/ja.js +4 -3
  27. data/vendor/assets/javascripts/redactor-rails/langs/ko.js +3 -2
  28. data/vendor/assets/javascripts/redactor-rails/langs/lv.js +4 -3
  29. data/vendor/assets/javascripts/redactor-rails/langs/nl.js +3 -2
  30. data/vendor/assets/javascripts/redactor-rails/langs/pl.js +4 -3
  31. data/vendor/assets/javascripts/redactor-rails/langs/pt_br.js +3 -2
  32. data/vendor/assets/javascripts/redactor-rails/langs/ro.js +3 -2
  33. data/vendor/assets/javascripts/redactor-rails/langs/ru.js +3 -2
  34. data/vendor/assets/javascripts/redactor-rails/langs/sk.js +3 -2
  35. data/vendor/assets/javascripts/redactor-rails/langs/sq.js +3 -2
  36. data/vendor/assets/javascripts/redactor-rails/langs/sr-cir.js +3 -2
  37. data/vendor/assets/javascripts/redactor-rails/langs/sr-lat.js +3 -2
  38. data/vendor/assets/javascripts/redactor-rails/langs/sv.js +3 -2
  39. data/vendor/assets/javascripts/redactor-rails/langs/tr.js +3 -2
  40. data/vendor/assets/javascripts/redactor-rails/langs/ua.js +4 -3
  41. data/vendor/assets/javascripts/redactor-rails/langs/vi.js +3 -2
  42. data/vendor/assets/javascripts/redactor-rails/langs/zh_cn.js +3 -2
  43. data/vendor/assets/javascripts/redactor-rails/langs/zh_tw.js +74 -66
  44. data/vendor/assets/javascripts/redactor-rails/redactor.js +1114 -539
  45. data/vendor/assets/javascripts/redactor-rails/redactor.min.js +3 -3
  46. data/vendor/assets/stylesheets/redactor-rails/css/redactor-iframe.css +3 -2
  47. data/vendor/assets/stylesheets/redactor-rails/css/redactor.css +56 -43
  48. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7c9a0d89bbfb5867a646c9133ac5a223c6afe5c
4
- data.tar.gz: f4b59a31c081303a758d7952f56eb0de73c2c5c7
3
+ metadata.gz: b682b1c7c9c12bcda1b2619337c55114ffa79fb1
4
+ data.tar.gz: b3be1e362676e20f93d105d807113351012d8d8c
5
5
  SHA512:
6
- metadata.gz: de54c5344288c59cca3f7d269d3944c5a5778f8aa669eb423651ecdad33443f5c8057f45ef57771dfcbec61b2c0e49bc83897919cb103667a5070e473dde8942
7
- data.tar.gz: 7c85e211eadc3d0fe82be50b73f2a693d72a551d09a6e2614edb4d151bcbefdd2361110aae30d0bd8e51401ef70b95418fda0ee1e171051982f2891232072d9b
6
+ metadata.gz: ae43769622c4035642e52b27182951de8bf7b428db280e1e6d10817014d2ec420e21986af9a09a8a9cc9a6afea5b6ed64ee4b27f98378ac9211cab61b85ec4d6
7
+ data.tar.gz: 34968fc5bfce52c121d8611cdd919f76ce56a4cd199f068b52d4f621c35b3a290819b62ee778407dc61fbce9c15abb88349dbcd1fe497f699c9100bcabcec8ff
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
+ [![Gem Version](https://badge.fury.io/rb/redactor-rails.png)](http://badge.fury.io/rb/redactor-rails)
1
2
  # Rails 3.2 Integration for Redactor (Devise Edition)
2
3
 
3
4
  The redactor-rails gem integrates the [Redactor](http://redactorjs.com/) editor with the Rails 3.2 asset pipeline.
4
5
 
5
- This gem bundles Redactor version 9.0.4 which is the most recent version as of July 11, 2013. Check [Redactor's changelog](http://imperavi.com/redactor/log/) for further updates.
6
+ This gem bundles Redactor version 9.1.4 which is the most recent version as of September 10, 2013. Check [Redactor's changelog](http://imperavi.com/redactor/log/) for further updates.
6
7
 
7
8
  ## Installation
8
9
 
@@ -80,10 +81,19 @@ In you file `app\assets\redactor-rails\config.js` set option
80
81
 
81
82
  and
82
83
 
84
+ if redactor-rails gem version <= 0.3.7
85
+
83
86
  Add to your layout
84
87
 
88
+
85
89
  <%= redactor_lang('zh_tw') %>
86
-
90
+
91
+ elsif redactor-rails gem version >= 0.4
92
+
93
+ Add to your `application.js`:
94
+
95
+ //= require redactor-rails/langs/zh_tw
96
+
87
97
  ### Defining a Devise User Model
88
98
 
89
99
  By default redactor-rails uses the `User` model.
@@ -1,5 +1,5 @@
1
1
  class RedactorRails::DocumentsController < ApplicationController
2
- before_filter :redactor_authenticate_user! if RedactorRails.document_model.new.respond_to?(RedactorRails.devise_user)
2
+ before_filter :redactor_authenticate_user!
3
3
 
4
4
  def index
5
5
  @documents = RedactorRails.document_model.where(
@@ -23,4 +23,12 @@ class RedactorRails::DocumentsController < ApplicationController
23
23
  render :nothing => true
24
24
  end
25
25
  end
26
+
27
+ private
28
+
29
+ def redactor_authenticate_user!
30
+ if RedactorRails.document_model.new.respond_to?(RedactorRails.devise_user)
31
+ super
32
+ end
33
+ end
26
34
  end
@@ -1,5 +1,5 @@
1
1
  class RedactorRails::PicturesController < ApplicationController
2
- before_filter :redactor_authenticate_user! if RedactorRails.picture_model.new.respond_to?(RedactorRails.devise_user)
2
+ before_filter :redactor_authenticate_user!
3
3
 
4
4
  def index
5
5
  @pictures = RedactorRails.picture_model.where(
@@ -23,4 +23,12 @@ class RedactorRails::PicturesController < ApplicationController
23
23
  render :nothing => true
24
24
  end
25
25
  end
26
+
27
+ private
28
+
29
+ def redactor_authenticate_user!
30
+ if RedactorRails.picture_model.new.respond_to?(RedactorRails.devise_user)
31
+ super
32
+ end
33
+ end
26
34
  end
@@ -1,8 +1,5 @@
1
1
  module RedactorRails
2
2
  module Helpers
3
- # Setting Redactor Language
4
- def redactor_lang(lang = 'en')
5
- javascript_include_tag "redactor-rails/langs/#{lang}.js"
6
- end
3
+
7
4
  end
8
5
  end
@@ -15,7 +15,7 @@ module RedactorRails
15
15
  self.table_name = "redactor_assets"
16
16
 
17
17
  belongs_to :assetable, :polymorphic => true
18
- belongs_to RedactorRails.devise_user, :dependent => :destroy, :foreign_key => RedactorRails.devise_user_key
18
+ belongs_to RedactorRails.devise_user, :foreign_key => RedactorRails.devise_user_key
19
19
 
20
20
  if defined?(ActiveModel::ForbiddenAttributesProtection) && base.ancestors.include?(ActiveModel::ForbiddenAttributesProtection)
21
21
  # Ok
@@ -1,3 +1,3 @@
1
1
  module RedactorRails
2
- VERSION = "0.4"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -1,2 +1,2 @@
1
- //= require ./redactor.min
1
+ //= require ./redactor
2
2
  //= require ./config
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ar'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ar'] = {
3
3
  html: 'كود HTML',
4
4
  video: 'فيديو',
5
5
  image: 'صورة',
@@ -64,3 +64,4 @@ RELANG['ar'] = {
64
64
  deleted: 'خط في الوسط',
65
65
  anchor: 'مرساة'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ba'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ba'] = {
3
3
  html: 'HTML',
4
4
  video: 'Ubaci video',
5
5
  image: 'Ubaci fotografiju',
@@ -67,3 +67,4 @@ RELANG['ba'] = {
67
67
  deleted: 'Izbrisano',
68
68
  anchor: 'Sidro'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['bg'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['bg'] = {
3
3
  html: 'HTML',
4
4
  video: 'Видео',
5
5
  image: 'Изображение',
@@ -65,3 +65,4 @@ RELANG['bg'] = {
65
65
  none: 'Няма',
66
66
  anchor: 'Връзка'
67
67
  };
68
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['by'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['by'] = {
3
3
  html: 'Код',
4
4
  video: 'Відэа',
5
5
  image: 'Малюнак',
@@ -62,4 +62,5 @@ RELANG['by'] = {
62
62
  fullscreen: 'Ва ўвесь экран',
63
63
  deleted: 'Закрэслены',
64
64
  anchor: 'Anchor'
65
- };
65
+ };
66
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['cs'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['cs'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Obrázek',
@@ -75,3 +75,4 @@ RELANG['cs'] = {
75
75
  none: 'Žádná',
76
76
  anchor: 'Záložka'
77
77
  };
78
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['da'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['da'] = {
3
3
  html: 'HTML',
4
4
  video: 'Indsæt Video...',
5
5
  image: 'Indsæt Billede...',
@@ -63,4 +63,5 @@ RELANG['da'] = {
63
63
  fullscreen: 'Fuldskærm',
64
64
  deleted: 'Slettet',
65
65
  anchor: 'Anchor'
66
- };
66
+ };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['de'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['de'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Bilder',
@@ -67,4 +67,5 @@ RELANG['de'] = {
67
67
  fullscreen: 'Vollbild',
68
68
  deleted: 'Durchgestrichen',
69
69
  anchor: 'Anker'
70
- };
70
+ };
71
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['en'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['en'] = {
3
3
  html: 'HTML',
4
4
  video: 'Insert Video...',
5
5
  image: 'Insert Image...',
@@ -64,3 +64,4 @@ RELANG['en'] = {
64
64
  deleted: 'Deleted',
65
65
  anchor: 'Anchor'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['eo'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['eo'] = {
3
3
  html: 'HTML', // substantive
4
4
  video: 'Enŝovu Videon...', // imperative
5
5
  image: 'Enŝovu Bildon...', // imperative
@@ -64,3 +64,4 @@ RELANG['eo'] = {
64
64
  deleted: 'Foriga', // adjective
65
65
  anchor: 'Ankro' // substantive
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['es'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['es'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Imagen',
@@ -63,4 +63,5 @@ RELANG['es'] = {
63
63
  fullscreen: 'Pantalla completa',
64
64
  deleted: 'Borrado',
65
65
  anchor: 'Anclaje o anchor'
66
- };
66
+ };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['fa'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['fa'] = {
3
3
  html: 'اچ تی ام ال',
4
4
  video: 'درج ویدیو...',
5
5
  image: 'درج تصویر',
@@ -64,3 +64,4 @@ RELANG['fa'] = {
64
64
  deleted: 'حذف شده',
65
65
  anchor: 'قلاب'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['fi'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['fi'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Kuva',
@@ -67,3 +67,4 @@ RELANG['fi'] = {
67
67
  deleted: 'Poistettu',
68
68
  anchor: 'Ankkuri'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['fr'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['fr'] = {
3
3
  html: 'Code HTML',
4
4
  video: 'Vidéo',
5
5
  image: 'Image',
@@ -73,4 +73,5 @@ RELANG['fr'] = {
73
73
  deleted: 'Supprimer',
74
74
  none: 'aucun',
75
75
  anchor: 'Ancre'
76
- };
76
+ };
77
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['hr'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['hr'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Slika',
@@ -67,3 +67,4 @@ RELANG['hr'] = {
67
67
  deleted: 'Izbrisano',
68
68
  anchor: 'Sidro'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['hu'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['hu'] = {
3
3
  html: 'HTML',
4
4
  video: 'Videó',
5
5
  image: 'Kép',
@@ -65,3 +65,4 @@ RELANG['hu'] = {
65
65
  deleted: 'Törölt',
66
66
  anchor: 'Horgony'
67
67
  };
68
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['id'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['id'] = {
3
3
  html: 'HTML',
4
4
  video: 'Sisipkan Video...',
5
5
  image: 'Sisipkan Gambar...',
@@ -64,3 +64,4 @@ RELANG['id'] = {
64
64
  deleted: 'Coret',
65
65
  anchor: 'Jangkar'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['it'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['it'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Immagine',
@@ -66,3 +66,4 @@ RELANG['it'] = {
66
66
  deleted: 'Cancellato',
67
67
  anchor: 'Ancora'
68
68
  };
69
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ja'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ja'] = {
3
3
  html: 'HTML',
4
4
  video: 'ビデオ',
5
5
  image: 'イメージ',
@@ -63,4 +63,5 @@ RELANG['ja'] = {
63
63
  fullscreen: '全画面',
64
64
  deleted: '打消し',
65
65
  anchor: 'アンカー'
66
- };
66
+ };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ko'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ko'] = {
3
3
  html: 'HTML',
4
4
  video: '비디오',
5
5
  image: '이미지',
@@ -64,3 +64,4 @@ RELANG['ko'] = {
64
64
  deleted: '취소선',
65
65
  anchor: '링크'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['lv'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['lv'] = {
3
3
  html: 'HTML кods',
4
4
  video: 'Video',
5
5
  image: 'Attēls',
@@ -62,4 +62,5 @@ RELANG['lv'] = {
62
62
  horizontalrule: 'Horizontāla līnija',
63
63
  fullscreen: 'Pa visu ekrānu',
64
64
  anchor: 'Anchor'
65
- };
65
+ };
66
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['nl'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['nl'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Afbeelding',
@@ -67,3 +67,4 @@ RELANG['nl'] = {
67
67
  deleted: 'Verwijderd',
68
68
  anchor: 'Anker'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['pl'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['pl'] = {
3
3
  html: 'Źródło',
4
4
  video: 'Wideo',
5
5
  image: 'Obrazek',
@@ -63,4 +63,5 @@ RELANG['pl'] = {
63
63
  fullscreen: 'Fullscreen',
64
64
  deleted: 'Deleted',
65
65
  anchor: 'Anchor'
66
- };
66
+ };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['pt_br'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['pt_br'] = {
3
3
  html: 'Ver HTML',
4
4
  video: 'V&iacute;deo',
5
5
  image: 'Imagem',
@@ -70,3 +70,4 @@ RELANG['pt_br'] = {
70
70
  deleted: 'Removido',
71
71
  anchor: 'Âncora'
72
72
  };
73
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ro'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ro'] = {
3
3
  html: 'HTML',
4
4
  video: 'Adauga video...',
5
5
  image: 'Adauga imagine...',
@@ -64,3 +64,4 @@ RELANG['ro'] = {
64
64
  deleted: 'Taiat (Sters)',
65
65
  anchor: 'Ancora'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ru'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ru'] = {
3
3
  html: 'Код',
4
4
  video: 'Видео',
5
5
  image: 'Изображение',
@@ -64,3 +64,4 @@ RELANG['ru'] = {
64
64
  deleted: 'Зачеркнутый',
65
65
  anchor: 'Якорь'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['sk'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['sk'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Obrázok',
@@ -64,3 +64,4 @@ RELANG['sk'] = {
64
64
  deleted: 'Prečiarknuté',
65
65
  anchor: 'Záložka'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['sq'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['sq'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Fotografi',
@@ -67,3 +67,4 @@ RELANG['sq'] = {
67
67
  deleted: 'E fshir&euml;',
68
68
  anchor: 'Anchor'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['sr-cir'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['sr-cir'] = {
3
3
  html: 'ХТМЛ',
4
4
  video: 'Убаци видео',
5
5
  image: 'Убаци фотографију',
@@ -67,3 +67,4 @@ RELANG['sr-cir'] = {
67
67
  deleted: 'Избрисано',
68
68
  anchor: 'Сидро'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['sr-lat'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['sr-lat'] = {
3
3
  html: 'HTML',
4
4
  video: 'Ubaci video',
5
5
  image: 'Ubaci fotografiju',
@@ -67,3 +67,4 @@ RELANG['sr-lat'] = {
67
67
  deleted: 'Izbrisano',
68
68
  anchor: 'Sidro'
69
69
  };
70
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['sv'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['sv'] = {
3
3
  html: 'HTML',
4
4
  video: 'Sätt In Video...',
5
5
  image: 'Sätt In Bild...',
@@ -64,3 +64,4 @@ RELANG['sv'] = {
64
64
  deleted: 'Överstrucken',
65
65
  anchor: 'Ankare'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['tr'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['tr'] = {
3
3
  html: 'HTML',
4
4
  video: 'Video',
5
5
  image: 'Görsel',
@@ -64,3 +64,4 @@ RELANG['tr'] = {
64
64
  deleted: 'Silindi',
65
65
  anchor: 'Çapa'
66
66
  };
67
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['ua'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['ua'] = {
3
3
  html: 'Код',
4
4
  video: 'Відео',
5
5
  image: 'Зображення',
@@ -64,4 +64,5 @@ RELANG['ua'] = {
64
64
  fullscreen: 'На весь екран',
65
65
  deleted: 'Закреслений',
66
66
  anchor: 'Anchor'
67
- };
67
+ };
68
+ })( jQuery );
@@ -1,5 +1,5 @@
1
- var RELANG = {};
2
- RELANG['vi'] = {
1
+ (function ($) {
2
+ $.Redactor.opts.langs['vi'] = {
3
3
  html: 'Xem HTML',
4
4
  video: 'Chèn Video...',
5
5
  image: 'Chèn hình ảnh...',
@@ -63,3 +63,4 @@ RELANG['vi'] = {
63
63
  deleted: 'Xóa',
64
64
  anchor: 'Liên kết'
65
65
  };
66
+ })( jQuery );
@@ -1,6 +1,6 @@
1
1
  //@chen1706@gmail.com
2
- var RELANG = {};
3
- RELANG['zh_cn'] = {
2
+ (function ($) {
3
+ $.Redactor.opts.langs['zh_cn'] = {
4
4
  html: 'HTML代码',
5
5
  video: '视频',
6
6
  image: '图片',
@@ -68,3 +68,4 @@ RELANG['zh_cn'] = {
68
68
  underline: '下划线',
69
69
  alignment: '对齐方式'
70
70
  };
71
+ })( jQuery );