redactor2_rails 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +207 -0
  7. data/Rakefile +2 -0
  8. data/app/controller/redactor2_rails/files_controller.rb +28 -0
  9. data/app/controller/redactor2_rails/images_controller.rb +28 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +7 -0
  12. data/config/routes.rb +4 -0
  13. data/lib/generators/redactor2/config_generator.rb +18 -0
  14. data/lib/generators/redactor2/install_generator.rb +75 -0
  15. data/lib/generators/redactor2/templates/active_record/carrierwave/devise_migration.rb +28 -0
  16. data/lib/generators/redactor2/templates/active_record/carrierwave/migration.rb +25 -0
  17. data/lib/generators/redactor2/templates/active_record/carrierwave/redactor2/asset.rb +6 -0
  18. data/lib/generators/redactor2/templates/active_record/carrierwave/redactor2/file.rb +7 -0
  19. data/lib/generators/redactor2/templates/active_record/carrierwave/redactor2/image.rb +7 -0
  20. data/lib/generators/redactor2/templates/base/carrierwave/uploaders/redactor2_rails_file_uploader.rb +15 -0
  21. data/lib/generators/redactor2/templates/base/carrierwave/uploaders/redactor2_rails_image_uploader.rb +54 -0
  22. data/lib/generators/redactor2/templates/config.js +14 -0
  23. data/lib/generators/redactor2/templates/mongoid/carrierwave/redactor/asset.rb +9 -0
  24. data/lib/generators/redactor2/templates/mongoid/carrierwave/redactor/file.rb +7 -0
  25. data/lib/generators/redactor2/templates/mongoid/carrierwave/redactor/picture.rb +7 -0
  26. data/lib/redactor2_rails.rb +40 -0
  27. data/lib/redactor2_rails/backend/carrierwave.rb +64 -0
  28. data/lib/redactor2_rails/devise.rb +11 -0
  29. data/lib/redactor2_rails/engine.rb +9 -0
  30. data/lib/redactor2_rails/http.rb +89 -0
  31. data/lib/redactor2_rails/orm/active_record.rb +31 -0
  32. data/lib/redactor2_rails/orm/base.rb +38 -0
  33. data/lib/redactor2_rails/orm/mongoid.rb +37 -0
  34. data/lib/redactor2_rails/version.rb +3 -0
  35. data/redactor2_rails.gemspec +28 -0
  36. data/vendor/assets/javascripts/redactor2_rails/config.js +14 -0
  37. data/vendor/assets/javascripts/redactor2_rails/index.js +2 -0
  38. data/vendor/assets/javascripts/redactor2_rails/langs/ar.js +50 -0
  39. data/vendor/assets/javascripts/redactor2_rails/langs/de.js +50 -0
  40. data/vendor/assets/javascripts/redactor2_rails/langs/en.js +50 -0
  41. data/vendor/assets/javascripts/redactor2_rails/langs/es.js +50 -0
  42. data/vendor/assets/javascripts/redactor2_rails/langs/fa.js +50 -0
  43. data/vendor/assets/javascripts/redactor2_rails/langs/fi.js +50 -0
  44. data/vendor/assets/javascripts/redactor2_rails/langs/fr.js +50 -0
  45. data/vendor/assets/javascripts/redactor2_rails/langs/hu.js +50 -0
  46. data/vendor/assets/javascripts/redactor2_rails/langs/it.js +50 -0
  47. data/vendor/assets/javascripts/redactor2_rails/langs/ja.js +50 -0
  48. data/vendor/assets/javascripts/redactor2_rails/langs/ko.js +50 -0
  49. data/vendor/assets/javascripts/redactor2_rails/langs/nl.js +50 -0
  50. data/vendor/assets/javascripts/redactor2_rails/langs/pl.js +50 -0
  51. data/vendor/assets/javascripts/redactor2_rails/langs/pt_br.js +50 -0
  52. data/vendor/assets/javascripts/redactor2_rails/langs/ru.js +50 -0
  53. data/vendor/assets/javascripts/redactor2_rails/langs/sv.js +50 -0
  54. data/vendor/assets/javascripts/redactor2_rails/langs/tr.js +50 -0
  55. data/vendor/assets/javascripts/redactor2_rails/langs/zh_cn.js +52 -0
  56. data/vendor/assets/javascripts/redactor2_rails/langs/zh_tw.js +50 -0
  57. data/vendor/assets/javascripts/redactor2_rails/plugins.js +4 -0
  58. data/vendor/assets/javascripts/redactor2_rails/plugins/clips.js +60 -0
  59. data/vendor/assets/javascripts/redactor2_rails/plugins/fullscreen.js +159 -0
  60. data/vendor/assets/javascripts/redactor2_rails/plugins/source.js +195 -0
  61. data/vendor/assets/javascripts/redactor2_rails/plugins/textdirection.js +36 -0
  62. data/vendor/assets/javascripts/redactor2_rails/redactor.js +9989 -0
  63. data/vendor/assets/javascripts/redactor2_rails/redactor.min.js +13 -0
  64. data/vendor/assets/stylesheets/redactor2_rails/css/redactor.css +931 -0
  65. data/vendor/assets/stylesheets/redactor2_rails/index.css +1 -0
  66. data/vendor/assets/stylesheets/redactor2_rails/plugins.css +1 -0
  67. data/vendor/assets/stylesheets/redactor2_rails/plugins/clips.css +10 -0
  68. metadata +183 -0
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['hu'] = {
4
+ "format": "Formázás",
5
+ "image": "Kép",
6
+ "file": "Fájl",
7
+ "link": "Hivatkozás",
8
+ "bold": "Félkövér",
9
+ "italic": "Dőlt",
10
+ "deleted": "Áthúzott",
11
+ "underline": "Aláhúzott",
12
+ "bold-abbr": "F",
13
+ "italic-abbr": "D",
14
+ "deleted-abbr": "H",
15
+ "underline-abbr": "A",
16
+ "lists": "Listák",
17
+ "link-insert": "Hivatkozás beszúrása",
18
+ "link-edit": "Hivatkozás módosítása",
19
+ "link-in-new-tab": "Megnyitás új lapon",
20
+ "unlink": "Hivatkozás törlése",
21
+ "cancel": "Mégsem",
22
+ "close": "Bezárás",
23
+ "insert": "Beillesztés",
24
+ "save": "Mentés",
25
+ "delete": "Törlés",
26
+ "text": "Szöveg",
27
+ "edit": "Szerkesztés",
28
+ "title": "Cím",
29
+ "paragraph": "Normál szöveg",
30
+ "quote": "Idézet",
31
+ "code": "Forráskód",
32
+ "heading1": "Címsor 1",
33
+ "heading2": "Címsor 2",
34
+ "heading3": "Címsor 3",
35
+ "heading4": "Címsor 4",
36
+ "heading5": "Címsor 5",
37
+ "heading6": "Címsor 6",
38
+ "filename": "Név",
39
+ "optional": "választható",
40
+ "unorderedlist": "Rendezett lista",
41
+ "orderedlist": "Számozott lista",
42
+ "outdent": "Behúzás csökkentése",
43
+ "indent": "Behúzás növelése",
44
+ "horizontalrule": "Vonal",
45
+ "upload-label": "Húzza ide a fájlt vagy ",
46
+ "accessibility-help-label": "Szövegszerkesztő",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['it'] = {
4
+ "format": "Formato",
5
+ "image": "Immagine",
6
+ "file": "File",
7
+ "link": "Link",
8
+ "bold": "Grassetto",
9
+ "italic": "Corsivo",
10
+ "deleted": "Barrato",
11
+ "underline": "Sottolineato",
12
+ "bold-abbr": "G",
13
+ "italic-abbr": "C",
14
+ "deleted-abbr": "B",
15
+ "underline-abbr": "S",
16
+ "lists": "Liste",
17
+ "link-insert": "Inserisci link",
18
+ "link-edit": "Modifica link",
19
+ "link-in-new-tab": "Apri link in un nuovo tab",
20
+ "unlink": "Elimina link",
21
+ "cancel": "Annulla",
22
+ "close": "Chiudi",
23
+ "insert": "Inserisci",
24
+ "save": "Salva",
25
+ "delete": "Cancella",
26
+ "text": "Testo",
27
+ "edit": "Modifica",
28
+ "title": "Titolo",
29
+ "paragraph": "Testo Normale",
30
+ "quote": "Citazione",
31
+ "code": "Codice",
32
+ "heading1": "Titolo 1",
33
+ "heading2": "Titolo 2",
34
+ "heading3": "Titolo 3",
35
+ "heading4": "Titolo 4",
36
+ "heading5": "Titolo 5",
37
+ "heading6": "Titolo 6",
38
+ "filename": "Nome",
39
+ "optional": "opzionale",
40
+ "unorderedlist": "Lista non ordinata",
41
+ "orderedlist": "Lista ordinata",
42
+ "outdent": "De-indenta",
43
+ "indent": "Indenta",
44
+ "horizontalrule": "Linea",
45
+ "upload-label": "Trascina file qui oppure ",
46
+ "accessibility-help-label": "Editor di testo",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['ja'] = {
4
+ "format": "フォーマットする",
5
+ "image": "画像",
6
+ "file": "ファイル",
7
+ "link": "リンク",
8
+ "bold": "太字",
9
+ "italic": "イタリック体",
10
+ "deleted": "取り消し線",
11
+ "underline": "下線",
12
+ "bold-abbr": "B",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "S",
15
+ "underline-abbr": "U",
16
+ "lists": "リスト",
17
+ "link-insert": "リンクを挿入する",
18
+ "link-edit": "リンクを編集する",
19
+ "link-in-new-tab": "新しいタブでリンクを開く",
20
+ "unlink": "リンクを解除する",
21
+ "cancel": "取り消す",
22
+ "close": "閉じる",
23
+ "insert": "挿入する",
24
+ "save": "保存する",
25
+ "delete": "削除する",
26
+ "text": "テキスト",
27
+ "edit": "編集する",
28
+ "title": "タイトル",
29
+ "paragraph": "標準テキスト",
30
+ "quote": "引用",
31
+ "code": "コード",
32
+ "heading1": "見出し 1",
33
+ "heading2": "見出し 2",
34
+ "heading3": "見出し 3",
35
+ "heading4": "見出し 4",
36
+ "heading5": "見出し 5",
37
+ "heading6": "見出し 6",
38
+ "filename": "名前",
39
+ "optional": "任意",
40
+ "unorderedlist": "番号なしリスト",
41
+ "orderedlist": "番号付きリスト",
42
+ "outdent": "インデントを戻す",
43
+ "indent": "インデントする",
44
+ "horizontalrule": "線",
45
+ "upload-label": "ファイルをここにドロップまたは[選択する]をクリックする",
46
+ "accessibility-help-label": "リッチテキストエディタ",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['ko'] = {
4
+ "format": "포맷",
5
+ "image": "이미지",
6
+ "file": "파일",
7
+ "link": "링크",
8
+ "bold": "굵게",
9
+ "italic": "기울임꼴",
10
+ "deleted": "취소선",
11
+ "underline": "밑줄",
12
+ "bold-abbr": "B",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "S",
15
+ "underline-abbr": "U",
16
+ "lists": "목록",
17
+ "link-insert": "링크 삽입",
18
+ "link-edit": "링크 편집",
19
+ "link-in-new-tab": "새 탭에 링크 열기",
20
+ "unlink": "링크 끊기",
21
+ "cancel": "취소",
22
+ "close": "닫기",
23
+ "insert": "삽입",
24
+ "save": "저장",
25
+ "delete": "삭제",
26
+ "text": "글",
27
+ "edit": "편집",
28
+ "title": "제목",
29
+ "paragraph": "보통 글",
30
+ "quote": "인용",
31
+ "code": "코드",
32
+ "heading1": "제목 1",
33
+ "heading2": "제목 2",
34
+ "heading3": "제목 3",
35
+ "heading4": "제목 4",
36
+ "heading5": "제목 5",
37
+ "heading6": "제목 6",
38
+ "filename": "이름",
39
+ "optional": "선택",
40
+ "unorderedlist": "주문 안된 목록",
41
+ "orderedlist": "주문 목록",
42
+ "outdent": "내어쓰기",
43
+ "indent": "들여쓰기",
44
+ "horizontalrule": "행",
45
+ "upload-label": "파일을 여기 드롭 하거나 선택을 클릭",
46
+ "accessibility-help-label": "Rich text 편집기",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['nl'] = {
4
+ "format": "Format",
5
+ "image": "Afbeelding",
6
+ "file": "Bestand",
7
+ "link": "Link",
8
+ "bold": "Vet",
9
+ "italic": "Cursief",
10
+ "deleted": "Doorstreept",
11
+ "underline": "Onderstreept",
12
+ "bold-abbr": "B",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "S",
15
+ "underline-abbr": "U",
16
+ "lists": "Lijsten",
17
+ "link-insert": "Link invoegen",
18
+ "link-edit": "Link Bewerken",
19
+ "link-in-new-tab": "Open link in nieuw tabblad",
20
+ "unlink": "Ontkoppelen",
21
+ "cancel": "Annuleren",
22
+ "close": "Afsluiten",
23
+ "insert": "Invoegen",
24
+ "save": "Opslaan",
25
+ "delete": "Verwijder",
26
+ "text": "Tekst",
27
+ "edit": "Bewerken",
28
+ "title": "Titel",
29
+ "paragraph": "Normale tekst",
30
+ "quote": "Citaat",
31
+ "code": "Code",
32
+ "heading1": "Koptekst 1",
33
+ "heading2": "Koptekst 2",
34
+ "heading3": "Koptekst 3",
35
+ "heading4": "Koptekst 4",
36
+ "heading5": "Koptekst 5",
37
+ "heading6": "Koptekst 6",
38
+ "filename": "Bestandsnaam",
39
+ "optional": "Optioneel",
40
+ "unorderedlist": "Ongeordende lijst",
41
+ "orderedlist": "Geordende lijst",
42
+ "outdent": "Uitspringen",
43
+ "indent": "Inspringen",
44
+ "horizontalrule": "Streep",
45
+ "upload-label": "Drop bestand hier of ",
46
+ "accessibility-help-label": "RTF editor",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['pl'] = {
4
+ "format": "Formatuj",
5
+ "image": "Obrazek",
6
+ "file": "Plik",
7
+ "link": "Link",
8
+ "bold": "Pogrubienie",
9
+ "italic": "Kursywa",
10
+ "deleted": "Przekreślenie",
11
+ "underline": "Podkreślenie",
12
+ "bold-abbr": "B",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "S",
15
+ "underline-abbr": "U",
16
+ "lists": "Lista",
17
+ "link-insert": "Wstaw link",
18
+ "link-edit": "Edytuj link",
19
+ "link-in-new-tab": "Otwórz link w nowej karcie",
20
+ "unlink": "Usuń link",
21
+ "cancel": "Anuluj",
22
+ "close": "Zamknij",
23
+ "insert": "Wstaw",
24
+ "save": "Zapisz",
25
+ "delete": "Usuń",
26
+ "text": "Text",
27
+ "edit": "Edytuj",
28
+ "title": "Tytuł",
29
+ "paragraph": "Zwykły tekst",
30
+ "quote": "Cytat",
31
+ "code": "Kod",
32
+ "heading1": "Nagłówek 1",
33
+ "heading2": "Nagłówek 2",
34
+ "heading3": "Nagłówek 3",
35
+ "heading4": "Nagłówek 4",
36
+ "heading5": "Nagłówek 5",
37
+ "heading6": "Nagłówek 6",
38
+ "filename": "Nazwa",
39
+ "optional": "opcjonalnie",
40
+ "unorderedlist": "Lista punktowana",
41
+ "orderedlist": "Lista numerowana",
42
+ "outdent": "Zmniejsz wcięcie",
43
+ "indent": "Zwiększ wcięcie",
44
+ "horizontalrule": "Linia pozioma",
45
+ "upload-label": "Przenieś pliki tutaj lub... ",
46
+ "accessibility-help-label": "Edytor tekstu",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['pt_br'] = {
4
+ "format": "Formato",
5
+ "image": "Imagem",
6
+ "file": "Arquivo",
7
+ "link": "Link",
8
+ "bold": "Negrito",
9
+ "italic": "Itálico",
10
+ "deleted": "Tachado",
11
+ "underline": "Sublinhado",
12
+ "bold-abbr": "N",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "T",
15
+ "underline-abbr": "S",
16
+ "lists": "Listas",
17
+ "link-insert": "Inserir link",
18
+ "link-edit": "Editar link",
19
+ "link-in-new-tab": "Abrir link em nova guia",
20
+ "unlink": "Desvincular",
21
+ "cancel": "Cancelar",
22
+ "close": "Fechar",
23
+ "insert": "Inserir",
24
+ "save": "Salvar",
25
+ "delete": "Excluir",
26
+ "text": "Texto",
27
+ "edit": "Editar",
28
+ "title": "Título",
29
+ "paragraph": "Texto normal",
30
+ "quote": "Citação",
31
+ "code": "Código",
32
+ "header1": "Cabeçalho 1",
33
+ "header2": "Cabeçalho 2",
34
+ "header3": "Cabeçalho 3",
35
+ "header4": "Cabeçalho 4",
36
+ "header5": "Cabeçalho 5",
37
+ "header6": "Cabeçalho 6",
38
+ "filename": "Nome",
39
+ "optional": "Opcional",
40
+ "unorderedlist": "Lista não ordenada",
41
+ "orderedlist": "Lista ordenada",
42
+ "outdent": "Diminuir recuo",
43
+ "indent": "Recuar",
44
+ "horizontalrule": "Linha",
45
+ "upload-label": "Solte o arquivo aqui ou ",
46
+ "accessibility-help-label": "Editor de Rich Text",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['ru'] = {
4
+ "format": "Формат",
5
+ "image": "Картинка",
6
+ "file": "Файл",
7
+ "link": "Ссылка",
8
+ "bold": "Полужирный",
9
+ "italic": "Курсив",
10
+ "deleted": "Зачеркнутый",
11
+ "underline": "Подчеркнутый",
12
+ "bold-abbr": "B",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "S",
15
+ "underline-abbr": "U",
16
+ "lists": "Списки",
17
+ "link-insert": "Вставить ссылку",
18
+ "link-edit": "Редактировать ссылку",
19
+ "link-in-new-tab": "Открыть ссылку в новом табе",
20
+ "unlink": "Удалить ссылку",
21
+ "cancel": "Отменить",
22
+ "close": "Закрыть",
23
+ "insert": "Вставить",
24
+ "save": "Сохранить",
25
+ "delete": "Удалить",
26
+ "text": "Текст",
27
+ "edit": "Редактировать",
28
+ "title": "Title",
29
+ "paragraph": "Обычный текст",
30
+ "quote": "Цитата",
31
+ "code": "Код",
32
+ "heading1": "Заголовок 1",
33
+ "heading2": "Заголовок 2",
34
+ "heading3": "Заголовок 3",
35
+ "heading4": "Заголовок 4",
36
+ "heading5": "Заголовок 5",
37
+ "heading6": "Заголовок 6",
38
+ "filename": "Имя файла",
39
+ "optional": "необязательно",
40
+ "unorderedlist": "Ненумерованный список",
41
+ "orderedlist": "Нумерованный список",
42
+ "outdent": "Убрать отступ",
43
+ "indent": "Добавить отступ",
44
+ "horizontalrule": "Линия",
45
+ "upload-label": "Перетащите файл или ",
46
+ "accessibility-help-label": "Rich text editor",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);
@@ -0,0 +1,50 @@
1
+ (function ($)
2
+ {
3
+ $.Redactor.opts.langs['sv'] = {
4
+ "format": "Format",
5
+ "image": "Bild",
6
+ "file": "Fil",
7
+ "link": "Länk",
8
+ "bold": "Fet",
9
+ "italic": "Kursiv",
10
+ "deleted": "Överstruken",
11
+ "underline": "Understruken",
12
+ "bold-abbr": "B",
13
+ "italic-abbr": "I",
14
+ "deleted-abbr": "S",
15
+ "underline-abbr": "U",
16
+ "lists": "Lista",
17
+ "link-insert": "Infoga länk",
18
+ "link-edit": "Redigera länk",
19
+ "link-in-new-tab": "Öppna länk i nytt fönster",
20
+ "unlink": "Radera länk",
21
+ "cancel": "Avbryt",
22
+ "close": "Stäng",
23
+ "insert": "Infoga",
24
+ "save": "Spara",
25
+ "delete": "Radera",
26
+ "text": "Text",
27
+ "edit": "Redigera",
28
+ "title": "Titel",
29
+ "paragraph": "Normal text",
30
+ "quote": "Citat",
31
+ "code": "Kod",
32
+ "heading1": "Titel 1",
33
+ "heading2": "Titel 2",
34
+ "heading3": "Titel 3",
35
+ "heading4": "Titel 4",
36
+ "heading5": "Titel 5",
37
+ "heading6": "Titel 6",
38
+ "filename": "Namn",
39
+ "optional": "valfritt",
40
+ "unorderedlist": "Osorterad lista",
41
+ "orderedlist": "Sorterad lista",
42
+ "outdent": "Minska utdrag",
43
+ "indent": "Öka utdrag",
44
+ "horizontalrule": "Linje",
45
+ "upload-label": "Släpp filen här eller ",
46
+ "accessibility-help-label": "Textredigerare",
47
+ "caption": "Caption"
48
+ };
49
+
50
+ })(jQuery);