rails-redactorjs 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +53 -0
  5. data/Rakefile +2 -0
  6. data/lib/rails-redactorjs.rb +14 -0
  7. data/lib/rails-redactorjs/configuration.rb +54 -0
  8. data/lib/rails-redactorjs/engine.rb +11 -0
  9. data/lib/rails-redactorjs/helper.rb +15 -0
  10. data/lib/rails-redactorjs/version.rb +5 -0
  11. data/rails-redactorjs.gemspec +17 -0
  12. data/vendor/assets/javascripts/rails-redactorjs/css/docstyle.css +123 -0
  13. data/vendor/assets/javascripts/rails-redactorjs/css/style.css +119 -0
  14. data/vendor/assets/javascripts/rails-redactorjs/css/wym.css +136 -0
  15. data/vendor/assets/javascripts/rails-redactorjs/index.js +1 -0
  16. data/vendor/assets/javascripts/rails-redactorjs/langs/by.js +72 -0
  17. data/vendor/assets/javascripts/rails-redactorjs/langs/de.js +75 -0
  18. data/vendor/assets/javascripts/rails-redactorjs/langs/en.js +76 -0
  19. data/vendor/assets/javascripts/rails-redactorjs/langs/es.js +76 -0
  20. data/vendor/assets/javascripts/rails-redactorjs/langs/fr.js +74 -0
  21. data/vendor/assets/javascripts/rails-redactorjs/langs/hu.js +76 -0
  22. data/vendor/assets/javascripts/rails-redactorjs/langs/it.js +76 -0
  23. data/vendor/assets/javascripts/rails-redactorjs/langs/ja.js +76 -0
  24. data/vendor/assets/javascripts/rails-redactorjs/langs/lv.js +74 -0
  25. data/vendor/assets/javascripts/rails-redactorjs/langs/nl.js +76 -0
  26. data/vendor/assets/javascripts/rails-redactorjs/langs/pl.js +75 -0
  27. data/vendor/assets/javascripts/rails-redactorjs/langs/pt_br.js +81 -0
  28. data/vendor/assets/javascripts/rails-redactorjs/langs/ru.js +75 -0
  29. data/vendor/assets/javascripts/rails-redactorjs/langs/sq.js +76 -0
  30. data/vendor/assets/javascripts/rails-redactorjs/langs/tr.js +76 -0
  31. data/vendor/assets/javascripts/rails-redactorjs/langs/ua.js +75 -0
  32. data/vendor/assets/javascripts/rails-redactorjs/langs/zh_cn.js +77 -0
  33. data/vendor/assets/javascripts/rails-redactorjs/langs/zh_tw.js +76 -0
  34. data/vendor/assets/javascripts/rails-redactorjs/plugins/file.html +3 -0
  35. data/vendor/assets/javascripts/rails-redactorjs/plugins/image.html +39 -0
  36. data/vendor/assets/javascripts/rails-redactorjs/plugins/image_edit.html +35 -0
  37. data/vendor/assets/javascripts/rails-redactorjs/plugins/link.html +74 -0
  38. data/vendor/assets/javascripts/rails-redactorjs/plugins/table.html +25 -0
  39. data/vendor/assets/javascripts/rails-redactorjs/plugins/video.html +15 -0
  40. data/vendor/assets/javascripts/rails-redactorjs/redactor.js +2259 -0
  41. data/vendor/assets/javascripts/rails-redactorjs/redactor.min.js +1 -0
  42. data/vendor/assets/javascripts/rails-redactorjs/toolbars/default.js +214 -0
  43. data/vendor/assets/javascripts/rails-redactorjs/toolbars/mini.js +103 -0
  44. data/vendor/assets/stylesheets/rails-redactorjs/css/redactor.css +368 -0
  45. data/vendor/assets/stylesheets/rails-redactorjs/img/icons.png +0 -0
  46. data/vendor/assets/stylesheets/rails-redactorjs/index.css +1 -0
  47. metadata +95 -0
@@ -0,0 +1,136 @@
1
+
2
+ body {
3
+ font-family: "PT Sans", "Trebuchet MS", Verdana, Arial, Tahoma, sans-serif;
4
+ font-size: 17px;
5
+ margin: 0;
6
+ padding: 0;
7
+ overflow-x: hidden;
8
+ background-color: #f8f8f8;
9
+ }
10
+
11
+ #page {
12
+ margin: 20px;
13
+ background: #f8f8f8;
14
+ border: none;
15
+ padding: 0;
16
+ }
17
+ #page:focus {
18
+ outline: none;
19
+ }
20
+
21
+
22
+ div,
23
+ p,
24
+ ul,
25
+ ol,
26
+ table,
27
+ dl,
28
+ pre,
29
+ h1,
30
+ h2,
31
+ h3,
32
+ h4,
33
+ h5,
34
+ blockquote {
35
+ background-color: #fff;
36
+ border: 1px solid #ebebeb;
37
+ padding: 10px;
38
+ margin: 10px 0;
39
+ }
40
+
41
+ p ul,
42
+ p ol {
43
+ margin: 0;
44
+ padding: 0;
45
+ border: none;
46
+ }
47
+
48
+ div,
49
+ p,
50
+ ul,
51
+ ol,
52
+ table,
53
+ dl,
54
+ blockquote,
55
+ pre,
56
+ iframe,
57
+ object,
58
+ hr {
59
+ margin-bottom: 15px;
60
+ line-height: 1.5em;
61
+ }
62
+ blockquote {
63
+ margin-left: 3em;
64
+ font-style: italic;
65
+ color: #777;
66
+ }
67
+ div {
68
+ background-color: #fff;
69
+ border: 1px dashed #ebebeb;
70
+ }
71
+ ul, ol {
72
+ padding-left: 2em !important;
73
+ }
74
+ ul ul,
75
+ ol ol,
76
+ ul ol,
77
+ ol ul {
78
+ border: none;
79
+ margin: 2px !important;
80
+ padding: 0;
81
+ padding-left: 2em;
82
+ }
83
+ dl dt { font-weight: bold; }
84
+ dd { margin-left: 1em;}
85
+
86
+ table {
87
+ border-collapse: collapse;
88
+ font-size: 1em;
89
+ }
90
+ table td {
91
+ border: 1px solid #ddd;
92
+ padding: 5px;
93
+ }
94
+ table thead td {
95
+ border-bottom: 2px solid #000 !important;
96
+ font-weight: bold;
97
+ }
98
+ code, pre {
99
+ font-family: monospace sans-serif;
100
+ }
101
+ code {
102
+ background-color: #d8d7d7;
103
+ }
104
+ pre {
105
+ padding: 1em;
106
+ border: 1px dashed #ccc;
107
+ background: #f5f5f5;
108
+ overflow: auto;
109
+ }
110
+ hr {
111
+ display: block;
112
+ height: 1px;
113
+ border: 0;
114
+ border-top: 1px solid #ccc;
115
+ }
116
+
117
+ h1, h2, h3, h4,h5 {
118
+ font-weight: bold;
119
+ margin-bottom: 10px;
120
+ }
121
+
122
+ h1 {
123
+ font-size: 36px;
124
+ }
125
+ h2 {
126
+ font-size: 30px;
127
+ }
128
+ h3 {
129
+ font-size: 24px;
130
+ }
131
+ h4 {
132
+ font-size: 18px;
133
+ }
134
+ h4 {
135
+ font-size: 1em;
136
+ }
@@ -0,0 +1 @@
1
+ //= require ./redactor
@@ -0,0 +1,72 @@
1
+ var RLANG = {
2
+ html: 'Код',
3
+ video: 'Відэа',
4
+ image: 'Малюнак',
5
+ table: 'Табліца',
6
+ link: 'Спасылка',
7
+ link_insert: 'Уставіць спасылку ...',
8
+ unlink: 'Выдаліць спасылку',
9
+ styles: 'Стылі',
10
+ paragraph: 'Звычайны тэкст',
11
+ quote: 'Цытата',
12
+ code: 'Код',
13
+ header1: 'Загаловак 1',
14
+ header2: 'Загаловак 2',
15
+ format: 'Фармат',
16
+ bold: 'Паўтлусты',
17
+ italic: 'Нахільны',
18
+ superscript: 'Надрадковы',
19
+ strikethrough: 'Закрэслены',
20
+ fontcolor: 'Колер тэксту',
21
+ backcolor: 'Заліванне тэксту',
22
+ removeformat: 'Выдаліць фармат',
23
+ cleanstyles: 'Выдаліць стылі MS Word',
24
+ lists: 'Спісы',
25
+ unorderedlist: 'Звычайны спіс',
26
+ orderedlist: 'Нумараваны спіс',
27
+ outdent: 'Паменьшыць водступ',
28
+ indent: 'Павялічыць водступ',
29
+ redo: 'Паўтор',
30
+ undo: 'Адмена',
31
+ cut: 'Кат / Урэзка',
32
+ cancel: 'Адмяніць',
33
+ insert: 'Уставіць',
34
+ save: 'Захаваць',
35
+ _delete: 'Выдаліць',
36
+ insert_table: 'Уставіць табліцу',
37
+ insert_row_above: 'Дадаць радок зверху',
38
+ insert_row_below: 'Дадаць радок знізу',
39
+ insert_column_left: 'Дадаць слупок злева',
40
+ insert_column_right: 'Дадаць слупок справа',
41
+ delete_column: 'Выдаліць слупок',
42
+ delete_row: 'Выдаліць радок',
43
+ delete_table: 'Выдаліць табліцу',
44
+ Rows: 'Радкі',
45
+ Columns: 'Стаўбцы',
46
+ add_head: 'Дадаць загаловак',
47
+ delete_head: 'Выдаліць загаловак',
48
+ title: 'Падказка',
49
+ image_view: 'Запампаваць малюнак',
50
+ image_position: 'Абцяканне тэкстам',
51
+ none: 'Няма',
52
+ left: 'Злева',
53
+ right: 'Справа',
54
+ image_web_link: 'Спасылка на малюнак',
55
+ text: 'Тэкст',
56
+ mailto: 'Эл. пошта ',
57
+ web: 'URL',
58
+ video_html_code: 'Код відэа роліка',
59
+ file: 'Файл',
60
+ upload: 'Загрузіць',
61
+ download: 'Запампаваць',
62
+ choose: 'Выбраць',
63
+ or_choose: 'Ці іншае',
64
+ drop_file_here: 'Перацягніце файл сюды',
65
+ align_left: 'Па левым краі',
66
+ align_center: 'Па цэнтры',
67
+ align_right: 'Па правым краі',
68
+ align_justify: 'Выраўнаваць тэкст па шырыні',
69
+ horizontalrule: 'Гарызантальная лінейка',
70
+ fullscreen: 'Ва ўвесь экран',
71
+ deleted: 'Закрэслены'
72
+ };
@@ -0,0 +1,75 @@
1
+ var RLANG = {
2
+ html: 'HTML',
3
+ video: 'Video',
4
+ image: 'Bilder',
5
+ table: 'Tabelle',
6
+ link: 'Link',
7
+ link_insert: 'Link einfügen ...',
8
+ unlink: 'Link entfernen',
9
+ styles: 'Styles',
10
+ paragraph: 'Absatz',
11
+ quote: 'Zitat',
12
+ code: 'Code',
13
+ header1: 'Kopfzeile 1',
14
+ header2: 'Kopfzeile 2',
15
+ header3: 'Kopfzeile 3',
16
+ header4: 'Kopfzeile 4',
17
+ format: 'Format',
18
+ bold: 'Fett',
19
+ italic: 'Kursiv',
20
+ superscript: 'Hochgestellt',
21
+ strikethrough: 'Strikethrough',
22
+ fontcolor: 'Schriftfarbe',
23
+ backcolor: 'Texthervorhebungsfarbe',
24
+ removeformat: 'Formatierung löschen',
25
+ cleanstyles: 'Styles säubern',
26
+ lists: 'Lists',
27
+ unorderedlist: 'Aufzählungszeichen',
28
+ orderedlist: 'Nummerierung',
29
+ outdent: 'Einzug verkleinern',
30
+ indent: 'Einzug vergrößern',
31
+ redo: 'Wiederholen',
32
+ undo: 'Rückgängig',
33
+ cut: 'Ausschneiden',
34
+ cancel: 'Abbrechen',
35
+ insert: 'Einfügen',
36
+ save: 'Speichern',
37
+ _delete: 'Löschen',
38
+ insert_table: 'Tabelle einfügen',
39
+ insert_row_above: 'Zeilen oberhalb einfügen',
40
+ insert_row_below: 'Zeilen unterhalb einfügen',
41
+ insert_column_left: 'Spalten links einfügen',
42
+ insert_column_right: 'Spalten rechts einfügen',
43
+ delete_column: 'Spalten löschen',
44
+ delete_row: 'Zeilen löschen',
45
+ delete_table: 'Tabelle löschen',
46
+ Rows: 'Zeilen',
47
+ Columns: 'Spalten',
48
+ add_head: 'Titel einfügen',
49
+ delete_head: 'Titel entfernen',
50
+ title: 'Title',
51
+ image_view: 'Bider',
52
+ image_position: 'Textumbruch',
53
+ none: 'Keine',
54
+ left: 'Links',
55
+ right: 'Rechts',
56
+ image_web_link: 'Bilder Link',
57
+ text: 'Text',
58
+ mailto: 'Email',
59
+ web: 'URL',
60
+ video_html_code: 'Video embed code',
61
+ file: 'Datei',
62
+ upload: 'laden',
63
+ download: 'Download',
64
+ choose: 'Auswählen',
65
+ or_choose: 'Oder, wählen Sie',
66
+ drop_file_here: 'Ziehen Sie eine Datei hier',
67
+ align_left: 'Linksbündig',
68
+ align_center: 'Mitte',
69
+ align_right: 'Rechtsbündig',
70
+ align_justify: 'Setzt den Text der Breite',
71
+ horizontalrule: 'Horizontale Linie',
72
+ fullscreen: 'Vollbild',
73
+ deleted: 'Durchgestrichen',
74
+ anchor: 'Anker'
75
+ };
@@ -0,0 +1,76 @@
1
+ var RLANG = {
2
+ html: 'HTML',
3
+ video: 'Video',
4
+ image: 'Image',
5
+ table: 'Table',
6
+ link: 'Link',
7
+ link_insert: 'Insert link ...',
8
+ unlink: 'Unlink',
9
+ styles: 'Styles',
10
+ paragraph: 'Paragraph',
11
+ quote: 'Quote',
12
+ code: 'Code',
13
+ header1: 'Header 1',
14
+ header2: 'Header 2',
15
+ header3: 'Header 3',
16
+ header4: 'Header 4',
17
+ format: 'Format',
18
+ bold: 'Bold',
19
+ italic: 'Italic',
20
+ superscript: 'Superscript',
21
+ strikethrough: 'Strikethrough',
22
+ fontcolor: 'Font color',
23
+ backcolor: 'Back color',
24
+ removeformat: 'Remove format',
25
+ cleanstyles: 'Clean styles',
26
+ lists: 'Lists',
27
+ unorderedlist: 'Unordered list',
28
+ orderedlist: 'Ordered list',
29
+ outdent: 'Outdent',
30
+ indent: 'Indent',
31
+ redo: 'Redo',
32
+ undo: 'Undo',
33
+ cut: 'Cut',
34
+ cancel: 'Cancel',
35
+ insert: 'Insert',
36
+ save: 'Save',
37
+ _delete: 'Delete',
38
+ insert_table: 'Insert table',
39
+ insert_row_above: 'Add row above',
40
+ insert_row_below: 'Add row below',
41
+ insert_column_left: 'Add column left',
42
+ insert_column_right: 'Add column right',
43
+ delete_column: 'Delete column',
44
+ delete_row: 'Delete row',
45
+ delete_table: 'Delete table',
46
+ Rows: 'Rows',
47
+ Columns: 'Columns',
48
+ add_head: 'Add head',
49
+ delete_head: 'Delete head',
50
+ title: 'Title',
51
+ image_view: 'View image',
52
+ image_position: 'Position',
53
+ none: 'none',
54
+ left: 'left',
55
+ right: 'right',
56
+ image_web_link: 'Image web link',
57
+ text: 'Text',
58
+ mailto: 'Email',
59
+ web: 'URL',
60
+ video_html_code: 'Video embed code',
61
+ file: 'File',
62
+ upload: 'Upload',
63
+ download: 'Download',
64
+ choose: 'Choose',
65
+ or_choose: 'Or choose',
66
+ drop_file_here: 'Drop file here',
67
+ align_left: 'Align left',
68
+ align_center: 'Align center',
69
+ align_right: 'Align right',
70
+ align_justify: 'Justify',
71
+ horizontalrule: 'Horizontal rule',
72
+ fullscreen: 'Fullscreen',
73
+ deleted: 'Deleted',
74
+ none: 'None',
75
+ anchor: 'Anchor'
76
+ };
@@ -0,0 +1,76 @@
1
+ var RLANG = {
2
+ html: 'HTML',
3
+ video: 'Video',
4
+ image: 'Imagen',
5
+ table: 'Tabla',
6
+ link: 'Enlace',
7
+ link_insert: 'Insertar enlace ...',
8
+ unlink: 'Desenlazar',
9
+ styles: 'Estilos',
10
+ paragraph: 'Párrafo',
11
+ quote: 'Comillas',
12
+ code: 'Código',
13
+ header1: 'Cabecera 1',
14
+ header2: 'Cabecera 2',
15
+ header3: 'Cabecera 3',
16
+ header4: 'Cabecera 4',
17
+ format: 'Formato',
18
+ bold: 'Negrita',
19
+ italic: 'Itálica',
20
+ superscript: 'Superindice',
21
+ strikethrough: 'Tachado',
22
+ fontcolor: 'Color fuente',
23
+ backcolor: 'Color fondo',
24
+ removeformat: 'Elimar formato',
25
+ cleanstyles: 'Limpiar estilos',
26
+ lists: 'Listas',
27
+ unorderedlist: 'Lista sin orden',
28
+ orderedlist: 'Lista ordenada',
29
+ outdent: 'Disminuir sangrado',
30
+ indent: 'Sangrar',
31
+ redo: 'Rehacer',
32
+ undo: 'Deshacer',
33
+ cut: 'Cortar',
34
+ cancel: 'Cancelar',
35
+ insert: 'Añadir',
36
+ save: 'Guardar',
37
+ _delete: 'Borrar',
38
+ insert_table: 'Añadir tabla',
39
+ insert_row_above: 'Añadir fila arriba',
40
+ insert_row_below: 'Añadir fila debajo',
41
+ insert_column_left: 'Añadir columna a la izquierda',
42
+ insert_column_right: 'Añadir column a la derecha',
43
+ delete_column: 'Borrar columna',
44
+ delete_row: 'Borrar fila',
45
+ delete_table: 'Borrar tabla',
46
+ Rows: 'Filas',
47
+ Columns: 'Columnas',
48
+ add_head: 'Añadir cabecera',
49
+ delete_head: 'Borrar cabecera',
50
+ title: 'Título',
51
+ image_view: 'Ver imagen',
52
+ image_position: 'Posición',
53
+ none: 'ninguna',
54
+ left: 'izquierda',
55
+ right: 'derecha',
56
+ image_web_link: 'Enlace de imagen web',
57
+ text: 'Texto',
58
+ mailto: 'Email',
59
+ web: 'URL',
60
+ video_html_code: 'Código embebido del video',
61
+ file: 'Fichero',
62
+ upload: 'Cargar',
63
+ download: 'Descargar',
64
+ choose: 'Seleccionar',
65
+ or_choose: 'O seleccionar',
66
+ drop_file_here: 'Soltar el fichero aquí',
67
+ align_left: 'Alinear a la izquierda',
68
+ align_center: 'Alinear al centro',
69
+ align_right: 'Alinear a la derecha',
70
+ align_justify: 'Justificar',
71
+ horizontalrule: 'Trazo horizontal',
72
+ fullscreen: 'Pantalla completa',
73
+ deleted: 'Borrado',
74
+ none: 'Ninguno',
75
+ anchor: 'Anclaje o anchor'
76
+ };
@@ -0,0 +1,74 @@
1
+ var RLANG = {
2
+ html: 'Code HTML',
3
+ video: 'Vidéo',
4
+ image: 'Image',
5
+ table: 'Tableau',
6
+ link: 'Lien URL',
7
+ link_insert: 'Insérer un lien',
8
+ unlink: 'Nétoyer le lien',
9
+ styles: 'Styles',
10
+ paragraph: 'Paragraphe',
11
+ quote: 'Citation',
12
+ code: 'Code',
13
+ header1: 'Titre 1',
14
+ header2: 'Titre 2',
15
+ header3: 'Titre 3',
16
+ header4: 'Titre 4',
17
+ format: 'Format',
18
+ bold: 'Gras',
19
+ italic: 'Italique',
20
+ superscript: 'Diacritique',
21
+ strikethrough: 'Rayé',
22
+ fontcolor: 'Couleur du texte',
23
+ backcolor: 'Couleur du fond de ligne',
24
+ removeformat: 'Nétoyer le format',
25
+ lists: 'Listes',
26
+ unorderedlist: 'Liste à puce',
27
+ orderedlist: 'Liste numérotée',
28
+ outdent: 'Diminuer l\'alinéa',
29
+ indent: 'Augmenter l\'alinéa',
30
+ redo: 'Refaire',
31
+ undo: 'Défaire',
32
+ cut: 'Couper',
33
+ cancel: 'Annuler',
34
+ insert: 'Insérer',
35
+ save: 'Sauvegarder',
36
+ _delete: 'Supprimer',
37
+ insert_table: 'Insérer le tableau',
38
+ insert_row_above: 'Ajouter une ligne au dessus',
39
+ insert_row_below: 'Ajouter une ligne en dessous',
40
+ insert_column_left: 'Ajouter une colonne à gauche',
41
+ insert_column_right: 'Ajouter une colonne à droite',
42
+ delete_column: 'Supprimer la colonne',
43
+ delete_row: 'Supprimer la ligne',
44
+ delete_table: 'Supprimer le tableau',
45
+ Rows: 'Lignes ',
46
+ Columns: 'Colonnes',
47
+ add_head: 'Ajouter un titre',
48
+ delete_head: 'Supprimer le titre',
49
+ title: 'Titre',
50
+ image_view: 'Voir l\'image',
51
+ image_position: 'Position de l\'image',
52
+ none: 'aucun',
53
+ left: 'à gauche',
54
+ right: 'à droite',
55
+ image_web_link: 'lien de l’image',
56
+ text: 'Texte',
57
+ mailto: 'Envoyer à ',
58
+ web: 'URL',
59
+ video_html_code: 'Code HTML de la vidéo',
60
+ file: 'Fichier',
61
+ upload: 'Envoyer',
62
+ download: 'Télécharger',
63
+ choose: 'Choisir',
64
+ or_choose: 'ou',
65
+ drop_file_here: 'Glissez-déposez le fichier ici',
66
+ align_left: 'Aligenr à gauche',
67
+ align_center: 'Aligner au centre',
68
+ align_right: 'Aligner à droite',
69
+ align_justify: 'Justifier',
70
+ horizontalrule: 'Ligne horizontale',
71
+ fullscreen: 'Plein écran',
72
+ deleted: 'Supprimer',
73
+ none: 'aucun'
74
+ };