diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-01-26 13:57:20 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-01-26 13:57:20 +0100 |
commit | eaa9271590ab73b6eef3fa88bc74a9553eefd857 (patch) | |
tree | 0d1ad40aee85a74d60e24c5175ce43cf0f39e62d /sources/plugins/font | |
parent | cd64262b335d84c1dc18cd1b986712cf7befdefb (diff) | |
download | ludivine-ckeditor-component-eaa9271590ab73b6eef3fa88bc74a9553eefd857.tar.gz ludivine-ckeditor-component-eaa9271590ab73b6eef3fa88bc74a9553eefd857.tar.zst ludivine-ckeditor-component-eaa9271590ab73b6eef3fa88bc74a9553eefd857.zip |
Add audio, color and fonts4.6.2.3
Diffstat (limited to 'sources/plugins/font')
70 files changed, 1319 insertions, 0 deletions
diff --git a/sources/plugins/font/lang/af.js b/sources/plugins/font/lang/af.js new file mode 100644 index 0000000..5c9073b --- /dev/null +++ b/sources/plugins/font/lang/af.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'af', { | ||
6 | fontSize: { | ||
7 | label: 'Grootte', | ||
8 | voiceLabel: 'Fontgrootte', | ||
9 | panelTitle: 'Fontgrootte' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Fontnaam', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ar.js b/sources/plugins/font/lang/ar.js new file mode 100644 index 0000000..ac55224 --- /dev/null +++ b/sources/plugins/font/lang/ar.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ar', { | ||
6 | fontSize: { | ||
7 | label: 'حجم الخط', | ||
8 | voiceLabel: 'حجم الخط', | ||
9 | panelTitle: 'حجم الخط' | ||
10 | }, | ||
11 | label: 'خط', | ||
12 | panelTitle: 'حجم الخط', | ||
13 | voiceLabel: 'حجم الخط' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/az.js b/sources/plugins/font/lang/az.js new file mode 100644 index 0000000..b4850b1 --- /dev/null +++ b/sources/plugins/font/lang/az.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'az', { | ||
6 | fontSize: { | ||
7 | label: 'Şrift ölçüsü', | ||
8 | voiceLabel: 'Şrift ölçüsü', | ||
9 | panelTitle: 'Şrift ölçüsü' | ||
10 | }, | ||
11 | label: 'Şrift', | ||
12 | panelTitle: 'Şrift', | ||
13 | voiceLabel: 'Şrift' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/bg.js b/sources/plugins/font/lang/bg.js new file mode 100644 index 0000000..682c6b1 --- /dev/null +++ b/sources/plugins/font/lang/bg.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'bg', { | ||
6 | fontSize: { | ||
7 | label: 'Размер', | ||
8 | voiceLabel: 'Размер на шрифт', | ||
9 | panelTitle: 'Размер на шрифт' | ||
10 | }, | ||
11 | label: 'Шрифт', | ||
12 | panelTitle: 'Име на шрифт', | ||
13 | voiceLabel: 'Шрифт' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/bn.js b/sources/plugins/font/lang/bn.js new file mode 100644 index 0000000..58eecba --- /dev/null +++ b/sources/plugins/font/lang/bn.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'bn', { | ||
6 | fontSize: { | ||
7 | label: 'সাইজ', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'সাইজ' | ||
10 | }, | ||
11 | label: 'ফন্ট', | ||
12 | panelTitle: 'ফন্ট', | ||
13 | voiceLabel: 'ফন্ট' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/bs.js b/sources/plugins/font/lang/bs.js new file mode 100644 index 0000000..2fbb5f6 --- /dev/null +++ b/sources/plugins/font/lang/bs.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'bs', { | ||
6 | fontSize: { | ||
7 | label: 'Velièina', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Velièina' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ca.js b/sources/plugins/font/lang/ca.js new file mode 100644 index 0000000..ca1e63a --- /dev/null +++ b/sources/plugins/font/lang/ca.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ca', { | ||
6 | fontSize: { | ||
7 | label: 'Mida', | ||
8 | voiceLabel: 'Mida de la lletra', | ||
9 | panelTitle: 'Mida de la lletra' | ||
10 | }, | ||
11 | label: 'Tipus de lletra', | ||
12 | panelTitle: 'Tipus de lletra', | ||
13 | voiceLabel: 'Tipus de lletra' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/cs.js b/sources/plugins/font/lang/cs.js new file mode 100644 index 0000000..7028bfd --- /dev/null +++ b/sources/plugins/font/lang/cs.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'cs', { | ||
6 | fontSize: { | ||
7 | label: 'Velikost', | ||
8 | voiceLabel: 'Velikost písma', | ||
9 | panelTitle: 'Velikost' | ||
10 | }, | ||
11 | label: 'Písmo', | ||
12 | panelTitle: 'Písmo', | ||
13 | voiceLabel: 'Písmo' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/cy.js b/sources/plugins/font/lang/cy.js new file mode 100644 index 0000000..085b224 --- /dev/null +++ b/sources/plugins/font/lang/cy.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'cy', { | ||
6 | fontSize: { | ||
7 | label: 'Maint', | ||
8 | voiceLabel: 'Maint y Ffont', | ||
9 | panelTitle: 'Maint y Ffont' | ||
10 | }, | ||
11 | label: 'Ffont', | ||
12 | panelTitle: 'Enw\'r Ffont', | ||
13 | voiceLabel: 'Ffont' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/da.js b/sources/plugins/font/lang/da.js new file mode 100644 index 0000000..f33f2d8 --- /dev/null +++ b/sources/plugins/font/lang/da.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'da', { | ||
6 | fontSize: { | ||
7 | label: 'Skriftstørrelse', | ||
8 | voiceLabel: 'Skriftstørrelse', | ||
9 | panelTitle: 'Skriftstørrelse' | ||
10 | }, | ||
11 | label: 'Skrifttype', | ||
12 | panelTitle: 'Skrifttype', | ||
13 | voiceLabel: 'Skrifttype' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/de-ch.js b/sources/plugins/font/lang/de-ch.js new file mode 100644 index 0000000..a73223a --- /dev/null +++ b/sources/plugins/font/lang/de-ch.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'de-ch', { | ||
6 | fontSize: { | ||
7 | label: 'Grösse', | ||
8 | voiceLabel: 'Schrifgrösse', | ||
9 | panelTitle: 'Schriftgrösse' | ||
10 | }, | ||
11 | label: 'Schriftart', | ||
12 | panelTitle: 'Schriftartname', | ||
13 | voiceLabel: 'Schriftart' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/de.js b/sources/plugins/font/lang/de.js new file mode 100644 index 0000000..3c36855 --- /dev/null +++ b/sources/plugins/font/lang/de.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'de', { | ||
6 | fontSize: { | ||
7 | label: 'Größe', | ||
8 | voiceLabel: 'Schrifgröße', | ||
9 | panelTitle: 'Schriftgröße' | ||
10 | }, | ||
11 | label: 'Schriftart', | ||
12 | panelTitle: 'Schriftartname', | ||
13 | voiceLabel: 'Schriftart' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/el.js b/sources/plugins/font/lang/el.js new file mode 100644 index 0000000..4ca61a1 --- /dev/null +++ b/sources/plugins/font/lang/el.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'el', { | ||
6 | fontSize: { | ||
7 | label: 'Μέγεθος', | ||
8 | voiceLabel: 'Μέγεθος Γραμματοσειράς', | ||
9 | panelTitle: 'Μέγεθος Γραμματοσειράς' | ||
10 | }, | ||
11 | label: 'Γραμματοσειρά', | ||
12 | panelTitle: 'Όνομα Γραμματοσειράς', | ||
13 | voiceLabel: 'Γραμματοσειρά' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/en-au.js b/sources/plugins/font/lang/en-au.js new file mode 100644 index 0000000..5f83c29 --- /dev/null +++ b/sources/plugins/font/lang/en-au.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'en-au', { | ||
6 | fontSize: { | ||
7 | label: 'Size', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Font Size' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font Name', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/en-ca.js b/sources/plugins/font/lang/en-ca.js new file mode 100644 index 0000000..4520615 --- /dev/null +++ b/sources/plugins/font/lang/en-ca.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'en-ca', { | ||
6 | fontSize: { | ||
7 | label: 'Size', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Font Size' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font Name', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/en-gb.js b/sources/plugins/font/lang/en-gb.js new file mode 100644 index 0000000..160dd81 --- /dev/null +++ b/sources/plugins/font/lang/en-gb.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'en-gb', { | ||
6 | fontSize: { | ||
7 | label: 'Size', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Font Size' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font Name', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/en.js b/sources/plugins/font/lang/en.js new file mode 100644 index 0000000..ff64793 --- /dev/null +++ b/sources/plugins/font/lang/en.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'en', { | ||
6 | fontSize: { | ||
7 | label: 'Size', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Font Size' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font Name', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/eo.js b/sources/plugins/font/lang/eo.js new file mode 100644 index 0000000..48b2a9f --- /dev/null +++ b/sources/plugins/font/lang/eo.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'eo', { | ||
6 | fontSize: { | ||
7 | label: 'Grado', | ||
8 | voiceLabel: 'Tipara grado', | ||
9 | panelTitle: 'Tipara grado' | ||
10 | }, | ||
11 | label: 'Tiparo', | ||
12 | panelTitle: 'Tipara nomo', | ||
13 | voiceLabel: 'Tiparo' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/es.js b/sources/plugins/font/lang/es.js new file mode 100644 index 0000000..b3e00c7 --- /dev/null +++ b/sources/plugins/font/lang/es.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'es', { | ||
6 | fontSize: { | ||
7 | label: 'Tamaño', | ||
8 | voiceLabel: 'Tamaño de fuente', | ||
9 | panelTitle: 'Tamaño' | ||
10 | }, | ||
11 | label: 'Fuente', | ||
12 | panelTitle: 'Fuente', | ||
13 | voiceLabel: 'Fuente' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/et.js b/sources/plugins/font/lang/et.js new file mode 100644 index 0000000..6817265 --- /dev/null +++ b/sources/plugins/font/lang/et.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'et', { | ||
6 | fontSize: { | ||
7 | label: 'Suurus', | ||
8 | voiceLabel: 'Kirja suurus', | ||
9 | panelTitle: 'Suurus' | ||
10 | }, | ||
11 | label: 'Kiri', | ||
12 | panelTitle: 'Kiri', | ||
13 | voiceLabel: 'Kiri' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/eu.js b/sources/plugins/font/lang/eu.js new file mode 100644 index 0000000..e071bc9 --- /dev/null +++ b/sources/plugins/font/lang/eu.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'eu', { | ||
6 | fontSize: { | ||
7 | label: 'Tamaina', | ||
8 | voiceLabel: 'Letra-tamaina', | ||
9 | panelTitle: 'Letra-tamaina' | ||
10 | }, | ||
11 | label: 'Letra-tipoa', | ||
12 | panelTitle: 'Letra-tipoaren izena', | ||
13 | voiceLabel: 'Letra-tipoa' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/fa.js b/sources/plugins/font/lang/fa.js new file mode 100644 index 0000000..35f91a5 --- /dev/null +++ b/sources/plugins/font/lang/fa.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'fa', { | ||
6 | fontSize: { | ||
7 | label: 'اندازه', | ||
8 | voiceLabel: 'اندازه قلم', | ||
9 | panelTitle: 'اندازه قلم' | ||
10 | }, | ||
11 | label: 'قلم', | ||
12 | panelTitle: 'نام قلم', | ||
13 | voiceLabel: 'قلم' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/fi.js b/sources/plugins/font/lang/fi.js new file mode 100644 index 0000000..1cd57bf --- /dev/null +++ b/sources/plugins/font/lang/fi.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'fi', { | ||
6 | fontSize: { | ||
7 | label: 'Koko', | ||
8 | voiceLabel: 'Kirjaisimen koko', | ||
9 | panelTitle: 'Koko' | ||
10 | }, | ||
11 | label: 'Kirjaisinlaji', | ||
12 | panelTitle: 'Kirjaisinlaji', | ||
13 | voiceLabel: 'Kirjaisinlaji' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/fo.js b/sources/plugins/font/lang/fo.js new file mode 100644 index 0000000..b4c170c --- /dev/null +++ b/sources/plugins/font/lang/fo.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'fo', { | ||
6 | fontSize: { | ||
7 | label: 'Skriftstødd', | ||
8 | voiceLabel: 'Skriftstødd', | ||
9 | panelTitle: 'Skriftstødd' | ||
10 | }, | ||
11 | label: 'Skrift', | ||
12 | panelTitle: 'Skrift', | ||
13 | voiceLabel: 'Skrift' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/fr-ca.js b/sources/plugins/font/lang/fr-ca.js new file mode 100644 index 0000000..13bd627 --- /dev/null +++ b/sources/plugins/font/lang/fr-ca.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'fr-ca', { | ||
6 | fontSize: { | ||
7 | label: 'Taille', | ||
8 | voiceLabel: 'Taille', | ||
9 | panelTitle: 'Taille' | ||
10 | }, | ||
11 | label: 'Police', | ||
12 | panelTitle: 'Police', | ||
13 | voiceLabel: 'Police' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/fr.js b/sources/plugins/font/lang/fr.js new file mode 100644 index 0000000..d029bb7 --- /dev/null +++ b/sources/plugins/font/lang/fr.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'fr', { | ||
6 | fontSize: { | ||
7 | label: 'Taille', | ||
8 | voiceLabel: 'Taille de police', | ||
9 | panelTitle: 'Taille de police' | ||
10 | }, | ||
11 | label: 'Police', | ||
12 | panelTitle: 'Style de police', | ||
13 | voiceLabel: 'Police' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/gl.js b/sources/plugins/font/lang/gl.js new file mode 100644 index 0000000..65e10b3 --- /dev/null +++ b/sources/plugins/font/lang/gl.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'gl', { | ||
6 | fontSize: { | ||
7 | label: 'Tamaño', | ||
8 | voiceLabel: 'Tamaño da letra', | ||
9 | panelTitle: 'Tamaño da letra' | ||
10 | }, | ||
11 | label: 'Tipo de letra', | ||
12 | panelTitle: 'Nome do tipo de letra', | ||
13 | voiceLabel: 'Tipo de letra' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/gu.js b/sources/plugins/font/lang/gu.js new file mode 100644 index 0000000..f95a59a --- /dev/null +++ b/sources/plugins/font/lang/gu.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'gu', { | ||
6 | fontSize: { | ||
7 | label: 'ફૉન્ટ સાઇઝ/કદ', | ||
8 | voiceLabel: 'ફોન્ટ સાઈઝ', | ||
9 | panelTitle: 'ફૉન્ટ સાઇઝ/કદ' | ||
10 | }, | ||
11 | label: 'ફૉન્ટ', | ||
12 | panelTitle: 'ફૉન્ટ', | ||
13 | voiceLabel: 'ફોન્ટ' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/he.js b/sources/plugins/font/lang/he.js new file mode 100644 index 0000000..590f93f --- /dev/null +++ b/sources/plugins/font/lang/he.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'he', { | ||
6 | fontSize: { | ||
7 | label: 'גודל', | ||
8 | voiceLabel: 'גודל', | ||
9 | panelTitle: 'גודל' | ||
10 | }, | ||
11 | label: 'גופן', | ||
12 | panelTitle: 'גופן', | ||
13 | voiceLabel: 'גופן' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/hi.js b/sources/plugins/font/lang/hi.js new file mode 100644 index 0000000..9088abe --- /dev/null +++ b/sources/plugins/font/lang/hi.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'hi', { | ||
6 | fontSize: { | ||
7 | label: 'साइज़', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'साइज़' | ||
10 | }, | ||
11 | label: 'फ़ॉन्ट', | ||
12 | panelTitle: 'फ़ॉन्ट', | ||
13 | voiceLabel: 'फ़ॉन्ट' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/hr.js b/sources/plugins/font/lang/hr.js new file mode 100644 index 0000000..0313aa3 --- /dev/null +++ b/sources/plugins/font/lang/hr.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'hr', { | ||
6 | fontSize: { | ||
7 | label: 'Veličina', | ||
8 | voiceLabel: 'Veličina slova', | ||
9 | panelTitle: 'Veličina' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/hu.js b/sources/plugins/font/lang/hu.js new file mode 100644 index 0000000..0705d2b --- /dev/null +++ b/sources/plugins/font/lang/hu.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'hu', { | ||
6 | fontSize: { | ||
7 | label: 'Méret', | ||
8 | voiceLabel: 'Betűméret', | ||
9 | panelTitle: 'Méret' | ||
10 | }, | ||
11 | label: 'Betűtípus', | ||
12 | panelTitle: 'Betűtípus', | ||
13 | voiceLabel: 'Betűtípus' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/id.js b/sources/plugins/font/lang/id.js new file mode 100644 index 0000000..c456738 --- /dev/null +++ b/sources/plugins/font/lang/id.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'id', { | ||
6 | fontSize: { | ||
7 | label: 'Ukuran', | ||
8 | voiceLabel: 'Ukuran Huruf', | ||
9 | panelTitle: 'Ukuran Huruf' | ||
10 | }, | ||
11 | label: 'Huruf', | ||
12 | panelTitle: 'Font Name', // MISSING | ||
13 | voiceLabel: 'Huruf' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/is.js b/sources/plugins/font/lang/is.js new file mode 100644 index 0000000..d76636f --- /dev/null +++ b/sources/plugins/font/lang/is.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'is', { | ||
6 | fontSize: { | ||
7 | label: 'Leturstærð ', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Leturstærð ' | ||
10 | }, | ||
11 | label: 'Leturgerð ', | ||
12 | panelTitle: 'Leturgerð ', | ||
13 | voiceLabel: 'Leturgerð ' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/it.js b/sources/plugins/font/lang/it.js new file mode 100644 index 0000000..5e42649 --- /dev/null +++ b/sources/plugins/font/lang/it.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'it', { | ||
6 | fontSize: { | ||
7 | label: 'Dimensione', | ||
8 | voiceLabel: 'Dimensione Carattere', | ||
9 | panelTitle: 'Dimensione' | ||
10 | }, | ||
11 | label: 'Carattere', | ||
12 | panelTitle: 'Carattere', | ||
13 | voiceLabel: 'Carattere' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ja.js b/sources/plugins/font/lang/ja.js new file mode 100644 index 0000000..79a5812 --- /dev/null +++ b/sources/plugins/font/lang/ja.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ja', { | ||
6 | fontSize: { | ||
7 | label: 'サイズ', | ||
8 | voiceLabel: 'フォントサイズ', | ||
9 | panelTitle: 'フォントサイズ' | ||
10 | }, | ||
11 | label: 'フォント', | ||
12 | panelTitle: 'フォント', | ||
13 | voiceLabel: 'フォント' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ka.js b/sources/plugins/font/lang/ka.js new file mode 100644 index 0000000..a392980 --- /dev/null +++ b/sources/plugins/font/lang/ka.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ka', { | ||
6 | fontSize: { | ||
7 | label: 'ზომა', | ||
8 | voiceLabel: 'ტექსტის ზომა', | ||
9 | panelTitle: 'ტექსტის ზომა' | ||
10 | }, | ||
11 | label: 'ფონტი', | ||
12 | panelTitle: 'ფონტის სახელი', | ||
13 | voiceLabel: 'ფონტი' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/km.js b/sources/plugins/font/lang/km.js new file mode 100644 index 0000000..f3e4610 --- /dev/null +++ b/sources/plugins/font/lang/km.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'km', { | ||
6 | fontSize: { | ||
7 | label: 'ទំហំ', | ||
8 | voiceLabel: 'ទំហំអក្សរ', | ||
9 | panelTitle: 'ទំហំអក្សរ' | ||
10 | }, | ||
11 | label: 'ពុម្ពអក្សរ', | ||
12 | panelTitle: 'ឈ្មោះពុម្ពអក្សរ', | ||
13 | voiceLabel: 'ពុម្ពអក្សរ' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ko.js b/sources/plugins/font/lang/ko.js new file mode 100644 index 0000000..6b574f4 --- /dev/null +++ b/sources/plugins/font/lang/ko.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ko', { | ||
6 | fontSize: { | ||
7 | label: '크기', | ||
8 | voiceLabel: '글자 크기', | ||
9 | panelTitle: '글자 크기' | ||
10 | }, | ||
11 | label: '글꼴', | ||
12 | panelTitle: '글꼴', | ||
13 | voiceLabel: '글꼴' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ku.js b/sources/plugins/font/lang/ku.js new file mode 100644 index 0000000..c19eac1 --- /dev/null +++ b/sources/plugins/font/lang/ku.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ku', { | ||
6 | fontSize: { | ||
7 | label: 'گەورەیی', | ||
8 | voiceLabel: 'گەورەیی فۆنت', | ||
9 | panelTitle: 'گەورەیی فۆنت' | ||
10 | }, | ||
11 | label: 'فۆنت', | ||
12 | panelTitle: 'ناوی فۆنت', | ||
13 | voiceLabel: 'فۆنت' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/lt.js b/sources/plugins/font/lang/lt.js new file mode 100644 index 0000000..d2f6ab0 --- /dev/null +++ b/sources/plugins/font/lang/lt.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'lt', { | ||
6 | fontSize: { | ||
7 | label: 'Šrifto dydis', | ||
8 | voiceLabel: 'Šrifto dydis', | ||
9 | panelTitle: 'Šrifto dydis' | ||
10 | }, | ||
11 | label: 'Šriftas', | ||
12 | panelTitle: 'Šriftas', | ||
13 | voiceLabel: 'Šriftas' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/lv.js b/sources/plugins/font/lang/lv.js new file mode 100644 index 0000000..157db04 --- /dev/null +++ b/sources/plugins/font/lang/lv.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'lv', { | ||
6 | fontSize: { | ||
7 | label: 'Izmērs', | ||
8 | voiceLabel: 'Fonta izmeŗs', | ||
9 | panelTitle: 'Izmērs' | ||
10 | }, | ||
11 | label: 'Šrifts', | ||
12 | panelTitle: 'Šrifts', | ||
13 | voiceLabel: 'Fonts' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/mk.js b/sources/plugins/font/lang/mk.js new file mode 100644 index 0000000..e60a755 --- /dev/null +++ b/sources/plugins/font/lang/mk.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'mk', { | ||
6 | fontSize: { | ||
7 | label: 'Size', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Font Size' | ||
10 | }, | ||
11 | label: 'Font', // MISSING | ||
12 | panelTitle: 'Font Name', // MISSING | ||
13 | voiceLabel: 'Font' // MISSING | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/mn.js b/sources/plugins/font/lang/mn.js new file mode 100644 index 0000000..a91c7f9 --- /dev/null +++ b/sources/plugins/font/lang/mn.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'mn', { | ||
6 | fontSize: { | ||
7 | label: 'Хэмжээ', | ||
8 | voiceLabel: 'Үсгийн хэмжээ', | ||
9 | panelTitle: 'Үсгийн хэмжээ' | ||
10 | }, | ||
11 | label: 'Үсгийн хэлбэр', | ||
12 | panelTitle: 'Үгсийн хэлбэрийн нэр', | ||
13 | voiceLabel: 'Үгсийн хэлбэр' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ms.js b/sources/plugins/font/lang/ms.js new file mode 100644 index 0000000..5564b9a --- /dev/null +++ b/sources/plugins/font/lang/ms.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ms', { | ||
6 | fontSize: { | ||
7 | label: 'Saiz', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Saiz' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/nb.js b/sources/plugins/font/lang/nb.js new file mode 100644 index 0000000..3e3e56e --- /dev/null +++ b/sources/plugins/font/lang/nb.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'nb', { | ||
6 | fontSize: { | ||
7 | label: 'Størrelse', | ||
8 | voiceLabel: 'Skriftstørrelse', | ||
9 | panelTitle: 'Skriftstørrelse' | ||
10 | }, | ||
11 | label: 'Skrift', | ||
12 | panelTitle: 'Skrift', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/nl.js b/sources/plugins/font/lang/nl.js new file mode 100644 index 0000000..a8d819c --- /dev/null +++ b/sources/plugins/font/lang/nl.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'nl', { | ||
6 | fontSize: { | ||
7 | label: 'Lettergrootte', | ||
8 | voiceLabel: 'Lettergrootte', | ||
9 | panelTitle: 'Lettergrootte' | ||
10 | }, | ||
11 | label: 'Lettertype', | ||
12 | panelTitle: 'Lettertype', | ||
13 | voiceLabel: 'Lettertype' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/no.js b/sources/plugins/font/lang/no.js new file mode 100644 index 0000000..7378c4c --- /dev/null +++ b/sources/plugins/font/lang/no.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'no', { | ||
6 | fontSize: { | ||
7 | label: 'Størrelse', | ||
8 | voiceLabel: 'Font Størrelse', | ||
9 | panelTitle: 'Størrelse' | ||
10 | }, | ||
11 | label: 'Skrift', | ||
12 | panelTitle: 'Skrift', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/oc.js b/sources/plugins/font/lang/oc.js new file mode 100644 index 0000000..1b0eda5 --- /dev/null +++ b/sources/plugins/font/lang/oc.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'oc', { | ||
6 | fontSize: { | ||
7 | label: 'Talha', | ||
8 | voiceLabel: 'Talha de poliça', | ||
9 | panelTitle: 'Talha de poliça' | ||
10 | }, | ||
11 | label: 'Poliça', | ||
12 | panelTitle: 'Estil de poliça', | ||
13 | voiceLabel: 'Poliça' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/pl.js b/sources/plugins/font/lang/pl.js new file mode 100644 index 0000000..56fb9be --- /dev/null +++ b/sources/plugins/font/lang/pl.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'pl', { | ||
6 | fontSize: { | ||
7 | label: 'Rozmiar', | ||
8 | voiceLabel: 'Rozmiar czcionki', | ||
9 | panelTitle: 'Rozmiar' | ||
10 | }, | ||
11 | label: 'Czcionka', | ||
12 | panelTitle: 'Czcionka', | ||
13 | voiceLabel: 'Czcionka' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/pt-br.js b/sources/plugins/font/lang/pt-br.js new file mode 100644 index 0000000..e69cc0b --- /dev/null +++ b/sources/plugins/font/lang/pt-br.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'pt-br', { | ||
6 | fontSize: { | ||
7 | label: 'Tamanho', | ||
8 | voiceLabel: 'Tamanho da fonte', | ||
9 | panelTitle: 'Tamanho' | ||
10 | }, | ||
11 | label: 'Fonte', | ||
12 | panelTitle: 'Fonte', | ||
13 | voiceLabel: 'Fonte' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/pt.js b/sources/plugins/font/lang/pt.js new file mode 100644 index 0000000..4028a3d --- /dev/null +++ b/sources/plugins/font/lang/pt.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'pt', { | ||
6 | fontSize: { | ||
7 | label: 'Tamanho', | ||
8 | voiceLabel: 'Tamanho da letra', | ||
9 | panelTitle: 'Tamanho da letra' | ||
10 | }, | ||
11 | label: 'Fonte', | ||
12 | panelTitle: 'Nome do tipo de letra', | ||
13 | voiceLabel: 'Tipo de letra' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ro.js b/sources/plugins/font/lang/ro.js new file mode 100644 index 0000000..26b96de --- /dev/null +++ b/sources/plugins/font/lang/ro.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ro', { | ||
6 | fontSize: { | ||
7 | label: 'Mărime', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Mărime' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ru.js b/sources/plugins/font/lang/ru.js new file mode 100644 index 0000000..fa64da3 --- /dev/null +++ b/sources/plugins/font/lang/ru.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ru', { | ||
6 | fontSize: { | ||
7 | label: 'Размер', | ||
8 | voiceLabel: 'Размер шрифта', | ||
9 | panelTitle: 'Размер шрифта' | ||
10 | }, | ||
11 | label: 'Шрифт', | ||
12 | panelTitle: 'Шрифт', | ||
13 | voiceLabel: 'Шрифт' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/si.js b/sources/plugins/font/lang/si.js new file mode 100644 index 0000000..aa94df2 --- /dev/null +++ b/sources/plugins/font/lang/si.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'si', { | ||
6 | fontSize: { | ||
7 | label: 'විශාලත්වය', | ||
8 | voiceLabel: 'අක්ෂර විශාලත්වය', | ||
9 | panelTitle: 'අක්ෂර විශාලත්වය' | ||
10 | }, | ||
11 | label: 'අක්ෂරය', | ||
12 | panelTitle: 'අක්ෂර නාමය', | ||
13 | voiceLabel: 'අක්ෂර' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/sk.js b/sources/plugins/font/lang/sk.js new file mode 100644 index 0000000..318ae92 --- /dev/null +++ b/sources/plugins/font/lang/sk.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'sk', { | ||
6 | fontSize: { | ||
7 | label: 'Veľkosť', | ||
8 | voiceLabel: 'Veľkosť písma', | ||
9 | panelTitle: 'Veľkosť písma' | ||
10 | }, | ||
11 | label: 'Písmo', | ||
12 | panelTitle: 'Názov písma', | ||
13 | voiceLabel: 'Písmo' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/sl.js b/sources/plugins/font/lang/sl.js new file mode 100644 index 0000000..f630594 --- /dev/null +++ b/sources/plugins/font/lang/sl.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'sl', { | ||
6 | fontSize: { | ||
7 | label: 'Velikost', | ||
8 | voiceLabel: 'Velikost pisave', | ||
9 | panelTitle: 'Velikost pisave' | ||
10 | }, | ||
11 | label: 'Pisava', | ||
12 | panelTitle: 'Ime pisave', | ||
13 | voiceLabel: 'Pisava' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/sq.js b/sources/plugins/font/lang/sq.js new file mode 100644 index 0000000..035638d --- /dev/null +++ b/sources/plugins/font/lang/sq.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'sq', { | ||
6 | fontSize: { | ||
7 | label: 'Madhësia', | ||
8 | voiceLabel: 'Madhësia e Shkronjës', | ||
9 | panelTitle: 'Madhësia e Shkronjës' | ||
10 | }, | ||
11 | label: 'Shkronja', | ||
12 | panelTitle: 'Emri i Shkronjës', | ||
13 | voiceLabel: 'Shkronja' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/sr-latn.js b/sources/plugins/font/lang/sr-latn.js new file mode 100644 index 0000000..904bc29 --- /dev/null +++ b/sources/plugins/font/lang/sr-latn.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'sr-latn', { | ||
6 | fontSize: { | ||
7 | label: 'Veličina fonta', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Veličina fonta' | ||
10 | }, | ||
11 | label: 'Font', | ||
12 | panelTitle: 'Font', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/sr.js b/sources/plugins/font/lang/sr.js new file mode 100644 index 0000000..5695bc7 --- /dev/null +++ b/sources/plugins/font/lang/sr.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'sr', { | ||
6 | fontSize: { | ||
7 | label: 'Величина фонта', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Величина фонта' | ||
10 | }, | ||
11 | label: 'Фонт', | ||
12 | panelTitle: 'Фонт', | ||
13 | voiceLabel: 'Фонт' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/sv.js b/sources/plugins/font/lang/sv.js new file mode 100644 index 0000000..0df51ac --- /dev/null +++ b/sources/plugins/font/lang/sv.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'sv', { | ||
6 | fontSize: { | ||
7 | label: 'Storlek', | ||
8 | voiceLabel: 'Teckenstorlek', | ||
9 | panelTitle: 'Teckenstorlek' | ||
10 | }, | ||
11 | label: 'Typsnitt', | ||
12 | panelTitle: 'Typsnitt', | ||
13 | voiceLabel: 'Typsnitt' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/th.js b/sources/plugins/font/lang/th.js new file mode 100644 index 0000000..14ff605 --- /dev/null +++ b/sources/plugins/font/lang/th.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'th', { | ||
6 | fontSize: { | ||
7 | label: 'ขนาด', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'ขนาด' | ||
10 | }, | ||
11 | label: 'แบบอักษร', | ||
12 | panelTitle: 'แบบอักษร', | ||
13 | voiceLabel: 'แบบอักษร' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/tr.js b/sources/plugins/font/lang/tr.js new file mode 100644 index 0000000..c553275 --- /dev/null +++ b/sources/plugins/font/lang/tr.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'tr', { | ||
6 | fontSize: { | ||
7 | label: 'Boyut', | ||
8 | voiceLabel: 'Font Size', | ||
9 | panelTitle: 'Boyut' | ||
10 | }, | ||
11 | label: 'Yazı Türü', | ||
12 | panelTitle: 'Yazı Türü', | ||
13 | voiceLabel: 'Font' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/tt.js b/sources/plugins/font/lang/tt.js new file mode 100644 index 0000000..8e7e342 --- /dev/null +++ b/sources/plugins/font/lang/tt.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'tt', { | ||
6 | fontSize: { | ||
7 | label: 'Зурлык', | ||
8 | voiceLabel: 'Шрифт зурлыклары', | ||
9 | panelTitle: 'Шрифт зурлыклары' | ||
10 | }, | ||
11 | label: 'Шрифт', | ||
12 | panelTitle: 'Шрифт исеме', | ||
13 | voiceLabel: 'Шрифт' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/ug.js b/sources/plugins/font/lang/ug.js new file mode 100644 index 0000000..7a1d0b2 --- /dev/null +++ b/sources/plugins/font/lang/ug.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'ug', { | ||
6 | fontSize: { | ||
7 | label: 'چوڭلۇقى', | ||
8 | voiceLabel: 'خەت چوڭلۇقى', | ||
9 | panelTitle: 'چوڭلۇقى' | ||
10 | }, | ||
11 | label: 'خەت نۇسخا', | ||
12 | panelTitle: 'خەت نۇسخا', | ||
13 | voiceLabel: 'خەت نۇسخا' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/uk.js b/sources/plugins/font/lang/uk.js new file mode 100644 index 0000000..9fad964 --- /dev/null +++ b/sources/plugins/font/lang/uk.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'uk', { | ||
6 | fontSize: { | ||
7 | label: 'Розмір', | ||
8 | voiceLabel: 'Розмір шрифту', | ||
9 | panelTitle: 'Розмір' | ||
10 | }, | ||
11 | label: 'Шрифт', | ||
12 | panelTitle: 'Шрифт', | ||
13 | voiceLabel: 'Шрифт' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/vi.js b/sources/plugins/font/lang/vi.js new file mode 100644 index 0000000..8bbfc10 --- /dev/null +++ b/sources/plugins/font/lang/vi.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'vi', { | ||
6 | fontSize: { | ||
7 | label: 'Cỡ chữ', | ||
8 | voiceLabel: 'Kích cỡ phông', | ||
9 | panelTitle: 'Cỡ chữ' | ||
10 | }, | ||
11 | label: 'Phông', | ||
12 | panelTitle: 'Phông', | ||
13 | voiceLabel: 'Phông' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/zh-cn.js b/sources/plugins/font/lang/zh-cn.js new file mode 100644 index 0000000..6b2f327 --- /dev/null +++ b/sources/plugins/font/lang/zh-cn.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'zh-cn', { | ||
6 | fontSize: { | ||
7 | label: '大小', | ||
8 | voiceLabel: '文字大小', | ||
9 | panelTitle: '大小' | ||
10 | }, | ||
11 | label: '字体', | ||
12 | panelTitle: '字体', | ||
13 | voiceLabel: '字体' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/lang/zh.js b/sources/plugins/font/lang/zh.js new file mode 100644 index 0000000..d3ebc67 --- /dev/null +++ b/sources/plugins/font/lang/zh.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'font', 'zh', { | ||
6 | fontSize: { | ||
7 | label: '大小', | ||
8 | voiceLabel: '字型大小', | ||
9 | panelTitle: '字型大小' | ||
10 | }, | ||
11 | label: '字型', | ||
12 | panelTitle: '字型名稱', | ||
13 | voiceLabel: '字型' | ||
14 | } ); | ||
diff --git a/sources/plugins/font/plugin.js b/sources/plugins/font/plugin.js new file mode 100644 index 0000000..8794d89 --- /dev/null +++ b/sources/plugins/font/plugin.js | |||
@@ -0,0 +1,353 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | ( function() { | ||
7 | function addCombo( editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition, order ) { | ||
8 | var config = editor.config, | ||
9 | style = new CKEDITOR.style( styleDefinition ); | ||
10 | |||
11 | // Gets the list of fonts from the settings. | ||
12 | var names = entries.split( ';' ), | ||
13 | values = []; | ||
14 | |||
15 | // Create style objects for all fonts. | ||
16 | var styles = {}; | ||
17 | for ( var i = 0; i < names.length; i++ ) { | ||
18 | var parts = names[ i ]; | ||
19 | |||
20 | if ( parts ) { | ||
21 | parts = parts.split( '/' ); | ||
22 | |||
23 | var vars = {}, | ||
24 | name = names[ i ] = parts[ 0 ]; | ||
25 | |||
26 | vars[ styleType ] = values[ i ] = parts[ 1 ] || name; | ||
27 | |||
28 | styles[ name ] = new CKEDITOR.style( styleDefinition, vars ); | ||
29 | styles[ name ]._.definition.name = name; | ||
30 | } else { | ||
31 | names.splice( i--, 1 ); | ||
32 | } | ||
33 | } | ||
34 | |||
35 | editor.ui.addRichCombo( comboName, { | ||
36 | label: lang.label, | ||
37 | title: lang.panelTitle, | ||
38 | toolbar: 'styles,' + order, | ||
39 | allowedContent: style, | ||
40 | requiredContent: style, | ||
41 | contentTransformations: [ | ||
42 | [ | ||
43 | { | ||
44 | element: 'font', | ||
45 | check: 'span', | ||
46 | left: function( element ) { | ||
47 | return !!element.attributes.size || | ||
48 | !!element.attributes.align || | ||
49 | !!element.attributes.face; | ||
50 | }, | ||
51 | right: function( element ) { | ||
52 | var sizes = [ | ||
53 | '', // Non-existent size "0" | ||
54 | 'x-small', | ||
55 | 'small', | ||
56 | 'medium', | ||
57 | 'large', | ||
58 | 'x-large', | ||
59 | 'xx-large', | ||
60 | '48px' // Closest value to what size="7" might mean. | ||
61 | ]; | ||
62 | |||
63 | element.name = 'span'; | ||
64 | |||
65 | if ( element.attributes.size ) { | ||
66 | element.styles[ 'font-size' ] = sizes[ element.attributes.size ]; | ||
67 | delete element.attributes.size; | ||
68 | } | ||
69 | |||
70 | if ( element.attributes.align ) { | ||
71 | element.styles[ 'text-align' ] = element.attributes.align; | ||
72 | delete element.attributes.align; | ||
73 | } | ||
74 | |||
75 | if ( element.attributes.face ) { | ||
76 | element.styles[ 'font-family' ] = element.attributes.face; | ||
77 | delete element.attributes.face; | ||
78 | } | ||
79 | } | ||
80 | } | ||
81 | ] | ||
82 | ], | ||
83 | panel: { | ||
84 | css: [ CKEDITOR.skin.getPath( 'editor' ) ].concat( config.contentsCss ), | ||
85 | multiSelect: false, | ||
86 | attributes: { 'aria-label': lang.panelTitle } | ||
87 | }, | ||
88 | |||
89 | init: function() { | ||
90 | this.startGroup( lang.panelTitle ); | ||
91 | |||
92 | for ( var i = 0; i < names.length; i++ ) { | ||
93 | var name = names[ i ]; | ||
94 | |||
95 | // Add the tag entry to the panel list. | ||
96 | this.add( name, styles[ name ].buildPreview(), name ); | ||
97 | } | ||
98 | }, | ||
99 | |||
100 | onClick: function( value ) { | ||
101 | editor.focus(); | ||
102 | editor.fire( 'saveSnapshot' ); | ||
103 | |||
104 | var previousValue = this.getValue(), | ||
105 | style = styles[ value ]; | ||
106 | |||
107 | // When applying one style over another, first remove the previous one (#12403). | ||
108 | // NOTE: This is only a temporary fix. It will be moved to the styles system (#12687). | ||
109 | if ( previousValue && value != previousValue ) { | ||
110 | var previousStyle = styles[ previousValue ], | ||
111 | range = editor.getSelection().getRanges()[ 0 ]; | ||
112 | |||
113 | // If the range is collapsed we can't simply use the editor.removeStyle method | ||
114 | // because it will remove the entire element and we want to split it instead. | ||
115 | if ( range.collapsed ) { | ||
116 | var path = editor.elementPath(), | ||
117 | // Find the style element. | ||
118 | matching = path.contains( function( el ) { | ||
119 | return previousStyle.checkElementRemovable( el ); | ||
120 | } ); | ||
121 | |||
122 | if ( matching ) { | ||
123 | var startBoundary = range.checkBoundaryOfElement( matching, CKEDITOR.START ), | ||
124 | endBoundary = range.checkBoundaryOfElement( matching, CKEDITOR.END ), | ||
125 | node, bm; | ||
126 | |||
127 | // If we are at both boundaries it means that the element is empty. | ||
128 | // Remove it but in a way that we won't lose other empty inline elements inside it. | ||
129 | // Example: <p>x<span style="font-size:48px"><em>[]</em></span>x</p> | ||
130 | // Result: <p>x<em>[]</em>x</p> | ||
131 | if ( startBoundary && endBoundary ) { | ||
132 | bm = range.createBookmark(); | ||
133 | // Replace the element with its children (TODO element.replaceWithChildren). | ||
134 | while ( ( node = matching.getFirst() ) ) { | ||
135 | node.insertBefore( matching ); | ||
136 | } | ||
137 | matching.remove(); | ||
138 | range.moveToBookmark( bm ); | ||
139 | |||
140 | // If we are at the boundary of the style element, move out and copy nested styles/elements. | ||
141 | } else if ( startBoundary || endBoundary ) { | ||
142 | range.moveToPosition( matching, startBoundary ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ); | ||
143 | cloneSubtreeIntoRange( range, path.elements.slice(), matching ); | ||
144 | } else { | ||
145 | // Split the element and clone the elements that were in the path | ||
146 | // (between the startContainer and the matching element) | ||
147 | // into the new place. | ||
148 | range.splitElement( matching ); | ||
149 | range.moveToPosition( matching, CKEDITOR.POSITION_AFTER_END ); | ||
150 | cloneSubtreeIntoRange( range, path.elements.slice(), matching ); | ||
151 | } | ||
152 | |||
153 | editor.getSelection().selectRanges( [ range ] ); | ||
154 | } | ||
155 | } else { | ||
156 | editor.removeStyle( previousStyle ); | ||
157 | } | ||
158 | } | ||
159 | |||
160 | editor[ previousValue == value ? 'removeStyle' : 'applyStyle' ]( style ); | ||
161 | |||
162 | editor.fire( 'saveSnapshot' ); | ||
163 | }, | ||
164 | |||
165 | onRender: function() { | ||
166 | editor.on( 'selectionChange', function( ev ) { | ||
167 | var currentValue = this.getValue(); | ||
168 | |||
169 | var elementPath = ev.data.path, | ||
170 | elements = elementPath.elements; | ||
171 | |||
172 | // For each element into the elements path. | ||
173 | for ( var i = 0, element; i < elements.length; i++ ) { | ||
174 | element = elements[ i ]; | ||
175 | |||
176 | // Check if the element is removable by any of | ||
177 | // the styles. | ||
178 | for ( var value in styles ) { | ||
179 | if ( styles[ value ].checkElementMatch( element, true, editor ) ) { | ||
180 | if ( value != currentValue ) | ||
181 | this.setValue( value ); | ||
182 | return; | ||
183 | } | ||
184 | } | ||
185 | } | ||
186 | |||
187 | // If no styles match, just empty it. | ||
188 | this.setValue( '', defaultLabel ); | ||
189 | }, this ); | ||
190 | }, | ||
191 | |||
192 | refresh: function() { | ||
193 | if ( !editor.activeFilter.check( style ) ) | ||
194 | this.setState( CKEDITOR.TRISTATE_DISABLED ); | ||
195 | } | ||
196 | } ); | ||
197 | } | ||
198 | |||
199 | // Clones the subtree between subtreeStart (exclusive) and the | ||
200 | // leaf (inclusive) and inserts it into the range. | ||
201 | // | ||
202 | // @param range | ||
203 | // @param {CKEDITOR.dom.element[]} elements Elements path in the standard order: leaf -> root. | ||
204 | // @param {CKEDITOR.dom.element/null} substreeStart The start of the subtree. | ||
205 | // If null, then the leaf belongs to the subtree. | ||
206 | function cloneSubtreeIntoRange( range, elements, subtreeStart ) { | ||
207 | var current = elements.pop(); | ||
208 | if ( !current ) { | ||
209 | return; | ||
210 | } | ||
211 | // Rewind the elements array up to the subtreeStart and then start the real cloning. | ||
212 | if ( subtreeStart ) { | ||
213 | return cloneSubtreeIntoRange( range, elements, current.equals( subtreeStart ) ? null : subtreeStart ); | ||
214 | } | ||
215 | |||
216 | var clone = current.clone(); | ||
217 | range.insertNode( clone ); | ||
218 | range.moveToPosition( clone, CKEDITOR.POSITION_AFTER_START ); | ||
219 | |||
220 | cloneSubtreeIntoRange( range, elements ); | ||
221 | } | ||
222 | |||
223 | CKEDITOR.plugins.add( 'font', { | ||
224 | requires: 'richcombo', | ||
225 | // jscs:disable maximumLineLength | ||
226 | lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% | ||
227 | // jscs:enable maximumLineLength | ||
228 | init: function( editor ) { | ||
229 | var config = editor.config; | ||
230 | |||
231 | addCombo( editor, 'Font', 'family', editor.lang.font, config.font_names, config.font_defaultLabel, config.font_style, 30 ); | ||
232 | addCombo( editor, 'FontSize', 'size', editor.lang.font.fontSize, config.fontSize_sizes, config.fontSize_defaultLabel, config.fontSize_style, 40 ); | ||
233 | } | ||
234 | } ); | ||
235 | } )(); | ||
236 | |||
237 | /** | ||
238 | * The list of fonts names to be displayed in the Font combo in the toolbar. | ||
239 | * Entries are separated by semi-colons (`';'`), while it's possible to have more | ||
240 | * than one font for each entry, in the HTML way (separated by comma). | ||
241 | * | ||
242 | * A display name may be optionally defined by prefixing the entries with the | ||
243 | * name and the slash character. For example, `'Arial/Arial, Helvetica, sans-serif'` | ||
244 | * will be displayed as `'Arial'` in the list, but will be outputted as | ||
245 | * `'Arial, Helvetica, sans-serif'`. | ||
246 | * | ||
247 | * config.font_names = | ||
248 | * 'Arial/Arial, Helvetica, sans-serif;' + | ||
249 | * 'Times New Roman/Times New Roman, Times, serif;' + | ||
250 | * 'Verdana'; | ||
251 | * | ||
252 | * config.font_names = 'Arial;Times New Roman;Verdana'; | ||
253 | * | ||
254 | * @cfg {String} [font_names=see source] | ||
255 | * @member CKEDITOR.config | ||
256 | */ | ||
257 | CKEDITOR.config.font_names = 'Arial/Arial, Helvetica, sans-serif;' + | ||
258 | 'Comic Sans MS/Comic Sans MS, cursive;' + | ||
259 | 'Courier New/Courier New, Courier, monospace;' + | ||
260 | 'Georgia/Georgia, serif;' + | ||
261 | 'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' + | ||
262 | 'Tahoma/Tahoma, Geneva, sans-serif;' + | ||
263 | 'Times New Roman/Times New Roman, Times, serif;' + | ||
264 | 'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' + | ||
265 | 'Verdana/Verdana, Geneva, sans-serif'; | ||
266 | |||
267 | /** | ||
268 | * The text to be displayed in the Font combo is none of the available values | ||
269 | * matches the current cursor position or text selection. | ||
270 | * | ||
271 | * // If the default site font is Arial, we may making it more explicit to the end user. | ||
272 | * config.font_defaultLabel = 'Arial'; | ||
273 | * | ||
274 | * @cfg {String} [font_defaultLabel=''] | ||
275 | * @member CKEDITOR.config | ||
276 | */ | ||
277 | CKEDITOR.config.font_defaultLabel = ''; | ||
278 | |||
279 | /** | ||
280 | * The style definition to be used to apply the font in the text. | ||
281 | * | ||
282 | * // This is actually the default value for it. | ||
283 | * config.font_style = { | ||
284 | * element: 'span', | ||
285 | * styles: { 'font-family': '#(family)' }, | ||
286 | * overrides: [ { element: 'font', attributes: { 'face': null } } ] | ||
287 | * }; | ||
288 | * | ||
289 | * @cfg {Object} [font_style=see example] | ||
290 | * @member CKEDITOR.config | ||
291 | */ | ||
292 | CKEDITOR.config.font_style = { | ||
293 | element: 'span', | ||
294 | styles: { 'font-family': '#(family)' }, | ||
295 | overrides: [ { | ||
296 | element: 'font', attributes: { 'face': null } | ||
297 | } ] | ||
298 | }; | ||
299 | |||
300 | /** | ||
301 | * The list of fonts size to be displayed in the Font Size combo in the | ||
302 | * toolbar. Entries are separated by semi-colons (`';'`). | ||
303 | * | ||
304 | * Any kind of "CSS like" size can be used, like `'12px'`, `'2.3em'`, `'130%'`, | ||
305 | * `'larger'` or `'x-small'`. | ||
306 | * | ||
307 | * A display name may be optionally defined by prefixing the entries with the | ||
308 | * name and the slash character. For example, `'Bigger Font/14px'` will be | ||
309 | * displayed as `'Bigger Font'` in the list, but will be outputted as `'14px'`. | ||
310 | * | ||
311 | * config.fontSize_sizes = '16/16px;24/24px;48/48px;'; | ||
312 | * | ||
313 | * config.fontSize_sizes = '12px;2.3em;130%;larger;x-small'; | ||
314 | * | ||
315 | * config.fontSize_sizes = '12 Pixels/12px;Big/2.3em;30 Percent More/130%;Bigger/larger;Very Small/x-small'; | ||
316 | * | ||
317 | * @cfg {String} [fontSize_sizes=see source] | ||
318 | * @member CKEDITOR.config | ||
319 | */ | ||
320 | CKEDITOR.config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px'; | ||
321 | |||
322 | /** | ||
323 | * The text to be displayed in the Font Size combo is none of the available | ||
324 | * values matches the current cursor position or text selection. | ||
325 | * | ||
326 | * // If the default site font size is 12px, we may making it more explicit to the end user. | ||
327 | * config.fontSize_defaultLabel = '12px'; | ||
328 | * | ||
329 | * @cfg {String} [fontSize_defaultLabel=''] | ||
330 | * @member CKEDITOR.config | ||
331 | */ | ||
332 | CKEDITOR.config.fontSize_defaultLabel = ''; | ||
333 | |||
334 | /** | ||
335 | * The style definition to be used to apply the font size in the text. | ||
336 | * | ||
337 | * // This is actually the default value for it. | ||
338 | * config.fontSize_style = { | ||
339 | * element: 'span', | ||
340 | * styles: { 'font-size': '#(size)' }, | ||
341 | * overrides: [ { element: 'font', attributes: { 'size': null } } ] | ||
342 | * }; | ||
343 | * | ||
344 | * @cfg {Object} [fontSize_style=see example] | ||
345 | * @member CKEDITOR.config | ||
346 | */ | ||
347 | CKEDITOR.config.fontSize_style = { | ||
348 | element: 'span', | ||
349 | styles: { 'font-size': '#(size)' }, | ||
350 | overrides: [ { | ||
351 | element: 'font', attributes: { 'size': null } | ||
352 | } ] | ||
353 | }; | ||