trumbowyg_rails 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +41 -0
- data/VERSION +1 -0
- data/lib/trumbowyg_rails.rb +4 -0
- data/trumbowyg_rails.gemspec +19 -0
- data/vendor/assets/images/trumbowyg/images/icons-2x.png +0 -0
- data/vendor/assets/images/trumbowyg/images/icons.png +0 -0
- data/vendor/assets/javascripts/trumbowyg/langs/ca.js +58 -0
- data/vendor/assets/javascripts/trumbowyg/langs/de.js +56 -0
- data/vendor/assets/javascripts/trumbowyg/langs/en.js +14 -0
- data/vendor/assets/javascripts/trumbowyg/langs/es.js +56 -0
- data/vendor/assets/javascripts/trumbowyg/langs/es_ar.js +56 -0
- data/vendor/assets/javascripts/trumbowyg/langs/fa.js +57 -0
- data/vendor/assets/javascripts/trumbowyg/langs/fi.js +56 -0
- data/vendor/assets/javascripts/trumbowyg/langs/fr.js +57 -0
- data/vendor/assets/javascripts/trumbowyg/langs/id.js +58 -0
- data/vendor/assets/javascripts/trumbowyg/langs/it.js +55 -0
- data/vendor/assets/javascripts/trumbowyg/langs/ko.js +57 -0
- data/vendor/assets/javascripts/trumbowyg/langs/pl.js +56 -0
- data/vendor/assets/javascripts/trumbowyg/langs/pt.js +58 -0
- data/vendor/assets/javascripts/trumbowyg/langs/ro.js +60 -0
- data/vendor/assets/javascripts/trumbowyg/langs/ru.js +55 -0
- data/vendor/assets/javascripts/trumbowyg/langs/tr.js +57 -0
- data/vendor/assets/javascripts/trumbowyg/langs/zh_cn.js +57 -0
- data/vendor/assets/javascripts/trumbowyg/trumbowyg.js +1096 -0
- data/vendor/assets/stylesheets/trumbowyg/_sprite-2x.scss +28 -0
- data/vendor/assets/stylesheets/trumbowyg/_sprite.scss +28 -0
- data/vendor/assets/stylesheets/trumbowyg/trumbowyg.scss +566 -0
- metadata +113 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e232a80d25030273ea45adc77018799a1d5695b6
|
4
|
+
data.tar.gz: 6a8126c8189c7aad2b4551debfe927d86e9aa1b1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ed90f98fc025d8f16d3ad8d472e9b0821f232129c5dd1509d7ab2899618d4ff1d0747529a381a1dd5679d85a7e6525791d728dbea8a1a31875bd842d74bfce35
|
7
|
+
data.tar.gz: d040d5c86764cb7172b40bff6b596e1d8d402a686b39543d42fa6a57da0f1e82a9eb8f7f40327df8609f4be1942affc0f1ff0e7a1c8045f2d7904e81b35b7504
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
TrumbowygRails
|
2
|
+
==============
|
3
|
+
|
4
|
+
Rails asset wrapper for [Trumbowyg](https://github.com/Alex-D/Trumbowyg)
|
5
|
+
|
6
|
+
Currently tracking code as of [this change](https://github.com/Alex-D/Trumbowyg/tree/e6cdc17a8c3ee341e724153ecb3da2bd9c845060).
|
7
|
+
|
8
|
+
Installation
|
9
|
+
============
|
10
|
+
|
11
|
+
1. Configure your Gemfile to use this gem:
|
12
|
+
|
13
|
+
gem 'trumbowyg_rails'
|
14
|
+
|
15
|
+
|
16
|
+
2. Require the JavaScript files in `app/assets/javascripts`, after jQuery:
|
17
|
+
|
18
|
+
//= require trumbowyg/trumbowyg
|
19
|
+
|
20
|
+
*Optional* - Include any supported language packs from [this list](https://github.com/TikiTDO/trumbowyg_rails/tree/master/vendor/assets/javascripts/trumbowyg/langs):
|
21
|
+
|
22
|
+
//= require trumbowyg/lang/fr
|
23
|
+
|
24
|
+
3. Require the Stylesheets in `app/assets/stylesheets`:
|
25
|
+
|
26
|
+
*= require trumbowyg/trumbowyg
|
27
|
+
|
28
|
+
Update Instructions
|
29
|
+
===================
|
30
|
+
|
31
|
+
In order to sync this repository with the upstream provider use the following workflow:
|
32
|
+
|
33
|
+
1. Check out latest copy of parent repository
|
34
|
+
2. Run `npm install` to install Trumbowyg dependencies
|
35
|
+
3. Run `gulb sprites` to generate the sprite files
|
36
|
+
4. Copy as follows from `Trumbowyg` => `trumbowyg_rails`
|
37
|
+
|
38
|
+
/dist/ui/images/* => /vendor/assets/images/trumbowyg/images
|
39
|
+
/src/ui/sass/* => /vendor/assets/stylesheets/trumbowyg
|
40
|
+
/src/trumbowyg.js => /vendor/assets/javascripts/trumbowyg
|
41
|
+
/str/langs/* => /vendor/assets/javascripts/trumbowyg
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.2
|
@@ -0,0 +1,19 @@
|
|
1
|
+
version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "trumbowyg_rails"
|
5
|
+
s.version = version
|
6
|
+
s.authors = ["Tikhon Botchkarev"]
|
7
|
+
s.email = ["TikiTDO@gmail.com"]
|
8
|
+
s.homepage = "https://github.com/TikiTDO/trumbowyg-rails"
|
9
|
+
s.summary = %q{Asset gem for Trumbowyg WYSIWYG editor.}
|
10
|
+
s.description = %q{Asset gem for Trumbowyg WYSIWYG editor, to be used with rails > 3.1.}
|
11
|
+
s.license = 'MIT'
|
12
|
+
|
13
|
+
s.add_dependency('railties', '>= 3.1')
|
14
|
+
s.add_dependency('rails', '>= 3.1')
|
15
|
+
s.add_dependency('sass', '>= 3.2')
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split($/)
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* ca.js
|
3
|
+
* Catalan translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Àlfons Sánchez (alsanan)
|
7
|
+
* Twitter : @alsanan
|
8
|
+
* Website : about.me/alsanan
|
9
|
+
* Github : https://github.com/alsanan
|
10
|
+
*/
|
11
|
+
|
12
|
+
jQuery.trumbowyg.langs.ca = {
|
13
|
+
viewHTML: "Veure HTML",
|
14
|
+
|
15
|
+
formatting: "Formatar",
|
16
|
+
p: "Paragraf",
|
17
|
+
blockquote: "Citació",
|
18
|
+
code: "Codi",
|
19
|
+
header: "Títol",
|
20
|
+
|
21
|
+
bold: "Negreta",
|
22
|
+
italic: "Itàlica",
|
23
|
+
strikethrough: "Suprimir",
|
24
|
+
underline: "Subratllat",
|
25
|
+
|
26
|
+
strong: "Forta",
|
27
|
+
em: "Èmfasi",
|
28
|
+
del: "Apagar",
|
29
|
+
|
30
|
+
unorderedList: "Lista desordenada",
|
31
|
+
orderedList: "Lista ordenada",
|
32
|
+
|
33
|
+
insertImage: "Inserir imatge",
|
34
|
+
insertVideo: "Inserir vídeo",
|
35
|
+
link: "Enllaç",
|
36
|
+
createLink: "Crear un enllaç",
|
37
|
+
unlink: "Eliminar enllaç",
|
38
|
+
|
39
|
+
justifyLeft: "Alinear a esquerra",
|
40
|
+
justifyCenter: "Centrar",
|
41
|
+
justifyRight: "Alinear a dreta",
|
42
|
+
justifyFull: "Justificar",
|
43
|
+
|
44
|
+
horizontalRule: "Inserir separador horitzontal",
|
45
|
+
|
46
|
+
fullscreen: "Pantalla completa",
|
47
|
+
|
48
|
+
close: "Tancar",
|
49
|
+
|
50
|
+
submit: "Enviar",
|
51
|
+
reset: "Reiniciar",
|
52
|
+
|
53
|
+
invalidUrl: "URL invàlida",
|
54
|
+
required: "Obligatori",
|
55
|
+
description: "Descripció",
|
56
|
+
title: "Títol",
|
57
|
+
text: "Text"
|
58
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* de.js
|
3
|
+
* German translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Manfred Timm
|
7
|
+
* Github : https://github.com/Manfred62
|
8
|
+
*/
|
9
|
+
|
10
|
+
jQuery.trumbowyg.langs.de = {
|
11
|
+
viewHTML: "HTML anzeigen",
|
12
|
+
|
13
|
+
formatting: "Formatieren",
|
14
|
+
p: "Absatz",
|
15
|
+
blockquote: "Zitat",
|
16
|
+
code: "Code",
|
17
|
+
header: "Überschrift",
|
18
|
+
|
19
|
+
bold: "Fett",
|
20
|
+
italic: "Kursiv",
|
21
|
+
strikethrough: "Durchgestrichen",
|
22
|
+
underline: "Unterstrichen",
|
23
|
+
|
24
|
+
strong: "Wichtig",
|
25
|
+
em: "Betont",
|
26
|
+
del: "Gelöscht",
|
27
|
+
|
28
|
+
unorderedList: "Ungeordnete Liste",
|
29
|
+
orderedList: "Geordnete Liste",
|
30
|
+
|
31
|
+
insertImage: "Bild einfügen",
|
32
|
+
insertVideo: "Video einfügen",
|
33
|
+
link: "Link",
|
34
|
+
createLink: "Link einfügen",
|
35
|
+
unlink: "Link entfernen",
|
36
|
+
|
37
|
+
justifyLeft: "Links ausrichten",
|
38
|
+
justifyCenter: "Zentrieren",
|
39
|
+
justifyRight: "Rechts ausrichten",
|
40
|
+
justifyFull: "Blocksatz",
|
41
|
+
|
42
|
+
horizontalRule: "Horizontale Linie einfügen",
|
43
|
+
|
44
|
+
fullscreen: "Vollbild",
|
45
|
+
|
46
|
+
close: "Schliessen",
|
47
|
+
|
48
|
+
submit: "Bestätigen",
|
49
|
+
reset: "Rücksetzen",
|
50
|
+
|
51
|
+
invalidUrl: "Ungültige URL",
|
52
|
+
required: "Erforderlich",
|
53
|
+
description: "Beschreibung",
|
54
|
+
title: "Titel",
|
55
|
+
text: "Text"
|
56
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* en.js
|
3
|
+
* English translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Alexandre Demode (Alex-D)
|
7
|
+
* Twitter : @AlexandreDemode
|
8
|
+
* Website : alex-d.fr
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* English is the default languange of Trumbowyg,
|
13
|
+
* you don't need to include any file :)
|
14
|
+
*/
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* es.js
|
3
|
+
* Spanish translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Moisés Márquez
|
7
|
+
* Email : moises.marquez.g@gmail.com
|
8
|
+
*/
|
9
|
+
|
10
|
+
jQuery.trumbowyg.langs.es = {
|
11
|
+
viewHTML: "Ver HTML",
|
12
|
+
|
13
|
+
formatting: "Formato",
|
14
|
+
p: "Párrafo",
|
15
|
+
blockquote: "Cita",
|
16
|
+
code: "Código",
|
17
|
+
header: "Título",
|
18
|
+
|
19
|
+
bold: "Negrita",
|
20
|
+
italic: "Cursiva",
|
21
|
+
strikethrough: "Tachado",
|
22
|
+
underline: "Subrayado",
|
23
|
+
|
24
|
+
strong: "Negrita",
|
25
|
+
em: "Énfasis",
|
26
|
+
del: "Borrar",
|
27
|
+
|
28
|
+
unorderedList: "Lista Desordenada",
|
29
|
+
orderedList: "Lista Ordenada",
|
30
|
+
|
31
|
+
insertImage: "Insertar una imagen",
|
32
|
+
insertVideo: "Insertar un vídeo",
|
33
|
+
link: "Enlace",
|
34
|
+
createLink: "Insertar un enlace",
|
35
|
+
unlink: "Suprimir un enlace",
|
36
|
+
|
37
|
+
justifyLeft: "Izquierda",
|
38
|
+
justifyCenter: "Centrar",
|
39
|
+
justifyRight: "Derecha",
|
40
|
+
justifyFull: "Justificado",
|
41
|
+
|
42
|
+
horizontalRule: "Insertar separador horizontal",
|
43
|
+
|
44
|
+
fullscreen: "Pantalla completa",
|
45
|
+
|
46
|
+
close: "Cerrar",
|
47
|
+
|
48
|
+
submit: "Enviar",
|
49
|
+
reset: "Cancelar",
|
50
|
+
|
51
|
+
invalidUrl: "URL no válida",
|
52
|
+
required: "Obligatorio",
|
53
|
+
description: "Descripción",
|
54
|
+
title: "Título",
|
55
|
+
text: "Texto"
|
56
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* es_ar.js
|
3
|
+
* Spanish (Argentina) translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Félix Vera
|
7
|
+
* Email : felix.vera@gmail.com
|
8
|
+
*/
|
9
|
+
|
10
|
+
jQuery.trumbowyg.langs.es_ar = {
|
11
|
+
viewHTML: "Ver HTML",
|
12
|
+
|
13
|
+
formatting: "Formato",
|
14
|
+
p: "Párrafo",
|
15
|
+
blockquote: "Cita",
|
16
|
+
code: "Código",
|
17
|
+
header: "Título",
|
18
|
+
|
19
|
+
bold: "Negrita",
|
20
|
+
italic: "Itálica",
|
21
|
+
strikethrough: "Tachado",
|
22
|
+
underline: "Subrayado",
|
23
|
+
|
24
|
+
strong: "Fuere",
|
25
|
+
em: "Énfasis",
|
26
|
+
del: "Borrar",
|
27
|
+
|
28
|
+
unorderedList: "Lista Desordenada",
|
29
|
+
orderedList: "Lista Ordenada",
|
30
|
+
|
31
|
+
insertImage: "Insertar una imagen",
|
32
|
+
insertVideo: "Insertar un video",
|
33
|
+
link: "Vínculo",
|
34
|
+
createLink: "Insertar un vínculo",
|
35
|
+
unlink: "Suprimir un vínculo",
|
36
|
+
|
37
|
+
justifyLeft: "Alinear a la Izquierda",
|
38
|
+
justifyCenter: "Centrar",
|
39
|
+
justifyRight: "Alinear a la Derecha",
|
40
|
+
justifyFull: "Justificado",
|
41
|
+
|
42
|
+
horizontalRule: "Insertar separado Horizontal",
|
43
|
+
|
44
|
+
fullscreen: "Pantalla Completa",
|
45
|
+
|
46
|
+
close: "Cerrar",
|
47
|
+
|
48
|
+
submit: "Enviar",
|
49
|
+
reset: "Cancelar",
|
50
|
+
|
51
|
+
invalidUrl: "URL inválida",
|
52
|
+
required: "Obligatorio",
|
53
|
+
description: "Descripción",
|
54
|
+
title: "Título",
|
55
|
+
text: "Texto"
|
56
|
+
};
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* fa.js
|
3
|
+
* Persian translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Kiarash Soleimanzadeh
|
7
|
+
* Github : https://github.com/kiyarash
|
8
|
+
* Email : kiarash.s@hotmail.com
|
9
|
+
*/
|
10
|
+
|
11
|
+
jQuery.trumbowyg.langs.fa = {
|
12
|
+
viewHTML: "نمایش کد اچ تی ام ال",
|
13
|
+
|
14
|
+
formatting: "قالب بندی",
|
15
|
+
p: "پاراگراف",
|
16
|
+
blockquote: "نقل قول",
|
17
|
+
code: "کد",
|
18
|
+
header: "سر تیتر",
|
19
|
+
|
20
|
+
bold: "ضخیم",
|
21
|
+
italic: "مورب",
|
22
|
+
strikethrough: "میان خط دار",
|
23
|
+
underline: "زیر خط دار",
|
24
|
+
|
25
|
+
strong: "برجسته",
|
26
|
+
em: "مورب",
|
27
|
+
del: "حذف شده",
|
28
|
+
|
29
|
+
unorderedList: "لیست نامرتب",
|
30
|
+
orderedList: "لیست مرتب",
|
31
|
+
|
32
|
+
insertImage: "درج تصویر",
|
33
|
+
insertVideo: "درج ویدئو",
|
34
|
+
link: "لینک",
|
35
|
+
createLink: "درج لینک",
|
36
|
+
unlink: "حذف لینک",
|
37
|
+
|
38
|
+
justifyLeft: "تراز به چپ",
|
39
|
+
justifyCenter: "تراز به وسط",
|
40
|
+
justifyRight: "تراز به راست",
|
41
|
+
justifyFull: "تراز به چپ و راست",
|
42
|
+
|
43
|
+
horizontalRule: "درج خط افقی",
|
44
|
+
|
45
|
+
fullscreen: "تمام صفحه",
|
46
|
+
|
47
|
+
close: "بستن",
|
48
|
+
|
49
|
+
submit: "تائید",
|
50
|
+
reset: "انصراف",
|
51
|
+
|
52
|
+
invalidUrl: "لینک نامعتبر",
|
53
|
+
required: "اجباری",
|
54
|
+
description: "توضیحات",
|
55
|
+
title: "عنوان",
|
56
|
+
text: "متن"
|
57
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* ===========================================================
|
2
|
+
* fi.js
|
3
|
+
* Finnish translation for Trumbowyg
|
4
|
+
* http://alex-d.github.com/Trumbowyg
|
5
|
+
* ===========================================================
|
6
|
+
* Author : Teppo Koivula (teppokoivula)
|
7
|
+
* Github : https://github.com/teppokoivula
|
8
|
+
*/
|
9
|
+
|
10
|
+
jQuery.trumbowyg.langs.fi = {
|
11
|
+
viewHTML: "Näytä HTML",
|
12
|
+
|
13
|
+
formatting: "Muotoilu",
|
14
|
+
p: "Kappale",
|
15
|
+
blockquote: "Lainaus",
|
16
|
+
code: "Koodi",
|
17
|
+
header: "Otsikko",
|
18
|
+
|
19
|
+
bold: "Lihavointi",
|
20
|
+
italic: "Kursivointi",
|
21
|
+
strikethrough: "Yliviivaus",
|
22
|
+
underline: "Allevivaus",
|
23
|
+
|
24
|
+
strong: "Vahvennus",
|
25
|
+
em: "Painotus",
|
26
|
+
del: "Poistettu",
|
27
|
+
|
28
|
+
unorderedList: "Numeroimaton lista",
|
29
|
+
orderedList: "Numeroitu lista",
|
30
|
+
|
31
|
+
insertImage: "Lisää kuva",
|
32
|
+
insertVideo: "Lisää video",
|
33
|
+
link: "Linkki",
|
34
|
+
createLink: "Luo linkki",
|
35
|
+
unlink: "Poista linkki",
|
36
|
+
|
37
|
+
justifyLeft: "Asemoi vasemmalle",
|
38
|
+
justifyCenter: "Keskitä",
|
39
|
+
justifyRight: "Asemoi oikealle",
|
40
|
+
justifyFull: "Tasaa",
|
41
|
+
|
42
|
+
horizontalRule: "Vaakaviiva",
|
43
|
+
|
44
|
+
fullscreen: "Kokoruutu",
|
45
|
+
|
46
|
+
close: "Sulje",
|
47
|
+
|
48
|
+
submit: "Lähetä",
|
49
|
+
reset: "Palauta",
|
50
|
+
|
51
|
+
invalidUrl: "Viallinen URL-osoite",
|
52
|
+
required: "Pakollinen",
|
53
|
+
description: "Kuvaus",
|
54
|
+
title: "Otsikko",
|
55
|
+
text: "Teksti"
|
56
|
+
};
|