diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-02-19 23:38:52 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-02-19 23:38:52 +0100 |
commit | 3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5 (patch) | |
tree | a4f77655fe55b79606e7d3416504686a1ab8b058 /sources/plugins/button | |
download | piedsjaloux-ckeditor-component-3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5.tar.gz piedsjaloux-ckeditor-component-3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5.tar.zst piedsjaloux-ckeditor-component-3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5.zip |
Initial commit4.5.7
Diffstat (limited to 'sources/plugins/button')
46 files changed, 737 insertions, 0 deletions
diff --git a/sources/plugins/button/lang/af.js b/sources/plugins/button/lang/af.js new file mode 100644 index 0000000..af03793 --- /dev/null +++ b/sources/plugins/button/lang/af.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'af', { | ||
7 | selectedLabel: '%1 uitgekies' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ar.js b/sources/plugins/button/lang/ar.js new file mode 100644 index 0000000..28f4346 --- /dev/null +++ b/sources/plugins/button/lang/ar.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ar', { | ||
7 | selectedLabel: '%1 (محدد)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/bg.js b/sources/plugins/button/lang/bg.js new file mode 100644 index 0000000..dfe5be1 --- /dev/null +++ b/sources/plugins/button/lang/bg.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'bg', { | ||
7 | selectedLabel: '%1 (Избрано)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ca.js b/sources/plugins/button/lang/ca.js new file mode 100644 index 0000000..2feb710 --- /dev/null +++ b/sources/plugins/button/lang/ca.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ca', { | ||
7 | selectedLabel: '%1 (Seleccionat)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/cs.js b/sources/plugins/button/lang/cs.js new file mode 100644 index 0000000..01f4a86 --- /dev/null +++ b/sources/plugins/button/lang/cs.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'cs', { | ||
7 | selectedLabel: '%1 (Vybráno)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/da.js b/sources/plugins/button/lang/da.js new file mode 100644 index 0000000..021201f --- /dev/null +++ b/sources/plugins/button/lang/da.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'da', { | ||
7 | selectedLabel: '%1 (Valgt)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/de-ch.js b/sources/plugins/button/lang/de-ch.js new file mode 100644 index 0000000..680cc20 --- /dev/null +++ b/sources/plugins/button/lang/de-ch.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'de-ch', { | ||
7 | selectedLabel: '%1 (Ausgewählt)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/de.js b/sources/plugins/button/lang/de.js new file mode 100644 index 0000000..d31afaa --- /dev/null +++ b/sources/plugins/button/lang/de.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'de', { | ||
7 | selectedLabel: '%1 (Ausgewählt)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/el.js b/sources/plugins/button/lang/el.js new file mode 100644 index 0000000..84e630c --- /dev/null +++ b/sources/plugins/button/lang/el.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'el', { | ||
7 | selectedLabel: '%1 (Επιλεγμένο)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/en-gb.js b/sources/plugins/button/lang/en-gb.js new file mode 100644 index 0000000..b4060d3 --- /dev/null +++ b/sources/plugins/button/lang/en-gb.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'en-gb', { | ||
7 | selectedLabel: '%1 (Selected)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/en.js b/sources/plugins/button/lang/en.js new file mode 100644 index 0000000..b0b4807 --- /dev/null +++ b/sources/plugins/button/lang/en.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'en', { | ||
7 | selectedLabel: '%1 (Selected)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/eo.js b/sources/plugins/button/lang/eo.js new file mode 100644 index 0000000..733c960 --- /dev/null +++ b/sources/plugins/button/lang/eo.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'eo', { | ||
7 | selectedLabel: '%1 (Selektita)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/es.js b/sources/plugins/button/lang/es.js new file mode 100644 index 0000000..8b4695b --- /dev/null +++ b/sources/plugins/button/lang/es.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'es', { | ||
7 | selectedLabel: '%1 (Seleccionado)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/eu.js b/sources/plugins/button/lang/eu.js new file mode 100644 index 0000000..fd60b16 --- /dev/null +++ b/sources/plugins/button/lang/eu.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'eu', { | ||
7 | selectedLabel: '%1 (hautatuta)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/fa.js b/sources/plugins/button/lang/fa.js new file mode 100644 index 0000000..8e923b0 --- /dev/null +++ b/sources/plugins/button/lang/fa.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'fa', { | ||
7 | selectedLabel: '%1 (انتخاب شده)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/fi.js b/sources/plugins/button/lang/fi.js new file mode 100644 index 0000000..2668a8d --- /dev/null +++ b/sources/plugins/button/lang/fi.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'fi', { | ||
7 | selectedLabel: '%1 (Valittu)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/fr.js b/sources/plugins/button/lang/fr.js new file mode 100644 index 0000000..1039c90 --- /dev/null +++ b/sources/plugins/button/lang/fr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'fr', { | ||
7 | selectedLabel: '%1 (Sélectionné)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/gl.js b/sources/plugins/button/lang/gl.js new file mode 100644 index 0000000..e73ea65 --- /dev/null +++ b/sources/plugins/button/lang/gl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'gl', { | ||
7 | selectedLabel: '%1 (seleccionado)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/he.js b/sources/plugins/button/lang/he.js new file mode 100644 index 0000000..8890cf9 --- /dev/null +++ b/sources/plugins/button/lang/he.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'he', { | ||
7 | selectedLabel: '1% (סומן)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/hu.js b/sources/plugins/button/lang/hu.js new file mode 100644 index 0000000..9dc42a5 --- /dev/null +++ b/sources/plugins/button/lang/hu.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'hu', { | ||
7 | selectedLabel: '%1 (Kiválasztva)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/id.js b/sources/plugins/button/lang/id.js new file mode 100644 index 0000000..52726a8 --- /dev/null +++ b/sources/plugins/button/lang/id.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'id', { | ||
7 | selectedLabel: '%1(Dipilih)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/it.js b/sources/plugins/button/lang/it.js new file mode 100644 index 0000000..0b28b8c --- /dev/null +++ b/sources/plugins/button/lang/it.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'it', { | ||
7 | selectedLabel: '%1 (selezionato)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ja.js b/sources/plugins/button/lang/ja.js new file mode 100644 index 0000000..559d08c --- /dev/null +++ b/sources/plugins/button/lang/ja.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ja', { | ||
7 | selectedLabel: '%1 (選択中)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/km.js b/sources/plugins/button/lang/km.js new file mode 100644 index 0000000..ecfc774 --- /dev/null +++ b/sources/plugins/button/lang/km.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'km', { | ||
7 | selectedLabel: '%1 (បានជ្រើសរើស)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ko.js b/sources/plugins/button/lang/ko.js new file mode 100644 index 0000000..2e2cc61 --- /dev/null +++ b/sources/plugins/button/lang/ko.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ko', { | ||
7 | selectedLabel: '%1 (선택됨)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ku.js b/sources/plugins/button/lang/ku.js new file mode 100644 index 0000000..b794e23 --- /dev/null +++ b/sources/plugins/button/lang/ku.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ku', { | ||
7 | selectedLabel: '%1 (هەڵبژێردراو)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/lt.js b/sources/plugins/button/lang/lt.js new file mode 100644 index 0000000..e17e9e5 --- /dev/null +++ b/sources/plugins/button/lang/lt.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'lt', { | ||
7 | selectedLabel: '%1 (Pasirinkta)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/nb.js b/sources/plugins/button/lang/nb.js new file mode 100644 index 0000000..b91a823 --- /dev/null +++ b/sources/plugins/button/lang/nb.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'nb', { | ||
7 | selectedLabel: '%1 (Valgt)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/nl.js b/sources/plugins/button/lang/nl.js new file mode 100644 index 0000000..0654cec --- /dev/null +++ b/sources/plugins/button/lang/nl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'nl', { | ||
7 | selectedLabel: '%1 (Geselecteerd)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/pl.js b/sources/plugins/button/lang/pl.js new file mode 100644 index 0000000..bc980d0 --- /dev/null +++ b/sources/plugins/button/lang/pl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'pl', { | ||
7 | selectedLabel: '%1 (Wybrany)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/pt-br.js b/sources/plugins/button/lang/pt-br.js new file mode 100644 index 0000000..f1cd7c4 --- /dev/null +++ b/sources/plugins/button/lang/pt-br.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'pt-br', { | ||
7 | selectedLabel: '%1 (Selecionado)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/pt.js b/sources/plugins/button/lang/pt.js new file mode 100644 index 0000000..adc8251 --- /dev/null +++ b/sources/plugins/button/lang/pt.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'pt', { | ||
7 | selectedLabel: '%1 (Selecionado)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ro.js b/sources/plugins/button/lang/ro.js new file mode 100644 index 0000000..c70153c --- /dev/null +++ b/sources/plugins/button/lang/ro.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ro', { | ||
7 | selectedLabel: '%1 (Selectat)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ru.js b/sources/plugins/button/lang/ru.js new file mode 100644 index 0000000..06ee190 --- /dev/null +++ b/sources/plugins/button/lang/ru.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ru', { | ||
7 | selectedLabel: '%1 (Выбрано)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/sk.js b/sources/plugins/button/lang/sk.js new file mode 100644 index 0000000..adbadf2 --- /dev/null +++ b/sources/plugins/button/lang/sk.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'sk', { | ||
7 | selectedLabel: '%1 (Vybrané)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/sl.js b/sources/plugins/button/lang/sl.js new file mode 100644 index 0000000..85e5cc2 --- /dev/null +++ b/sources/plugins/button/lang/sl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'sl', { | ||
7 | selectedLabel: '%1 (Izbrano)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/sq.js b/sources/plugins/button/lang/sq.js new file mode 100644 index 0000000..1690634 --- /dev/null +++ b/sources/plugins/button/lang/sq.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'sq', { | ||
7 | selectedLabel: '%1 (Përzgjedhur)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/sv.js b/sources/plugins/button/lang/sv.js new file mode 100644 index 0000000..db15526 --- /dev/null +++ b/sources/plugins/button/lang/sv.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'sv', { | ||
7 | selectedLabel: '%1 (Vald)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/tr.js b/sources/plugins/button/lang/tr.js new file mode 100644 index 0000000..a87bb12 --- /dev/null +++ b/sources/plugins/button/lang/tr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'tr', { | ||
7 | selectedLabel: '%1 (Seçilmiş)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/tt.js b/sources/plugins/button/lang/tt.js new file mode 100644 index 0000000..79044c6 --- /dev/null +++ b/sources/plugins/button/lang/tt.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'tt', { | ||
7 | selectedLabel: '%1 (Сайланган)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/ug.js b/sources/plugins/button/lang/ug.js new file mode 100644 index 0000000..fe30252 --- /dev/null +++ b/sources/plugins/button/lang/ug.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'ug', { | ||
7 | selectedLabel: '%1 (تاللاندى)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/uk.js b/sources/plugins/button/lang/uk.js new file mode 100644 index 0000000..a40cf8f --- /dev/null +++ b/sources/plugins/button/lang/uk.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'uk', { | ||
7 | selectedLabel: '%1 (Вибрано)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/vi.js b/sources/plugins/button/lang/vi.js new file mode 100644 index 0000000..a3ea973 --- /dev/null +++ b/sources/plugins/button/lang/vi.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'vi', { | ||
7 | selectedLabel: '%1 (Đã chọn)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/zh-cn.js b/sources/plugins/button/lang/zh-cn.js new file mode 100644 index 0000000..1271943 --- /dev/null +++ b/sources/plugins/button/lang/zh-cn.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'zh-cn', { | ||
7 | selectedLabel: '已选中 %1 项' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/zh.js b/sources/plugins/button/lang/zh.js new file mode 100644 index 0000000..5fee74f --- /dev/null +++ b/sources/plugins/button/lang/zh.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'zh', { | ||
7 | selectedLabel: '%1 (已選取)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/plugin.js b/sources/plugins/button/plugin.js new file mode 100644 index 0000000..0ce75c6 --- /dev/null +++ b/sources/plugins/button/plugin.js | |||
@@ -0,0 +1,377 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | ( function() { | ||
7 | var template = '<a id="{id}"' + | ||
8 | ' class="cke_button cke_button__{name} cke_button_{state} {cls}"' + | ||
9 | ( CKEDITOR.env.gecko && !CKEDITOR.env.hc ? '' : ' href="javascript:void(\'{titleJs}\')"' ) + | ||
10 | ' title="{title}"' + | ||
11 | ' tabindex="-1"' + | ||
12 | ' hidefocus="true"' + | ||
13 | ' role="button"' + | ||
14 | ' aria-labelledby="{id}_label"' + | ||
15 | ' aria-haspopup="{hasArrow}"' + | ||
16 | ' aria-disabled="{ariaDisabled}"'; | ||
17 | |||
18 | // Some browsers don't cancel key events in the keydown but in the | ||
19 | // keypress. | ||
20 | // TODO: Check if really needed. | ||
21 | if ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) | ||
22 | template += ' onkeypress="return false;"'; | ||
23 | |||
24 | // With Firefox, we need to force the button to redraw, otherwise it | ||
25 | // will remain in the focus state. | ||
26 | if ( CKEDITOR.env.gecko ) | ||
27 | template += ' onblur="this.style.cssText = this.style.cssText;"'; | ||
28 | |||
29 | template += ' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);"' + | ||
30 | ' onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" ' + | ||
31 | ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 | ||
32 | '="CKEDITOR.tools.callFunction({clickFn},this);return false;">' + | ||
33 | '<span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'; | ||
34 | |||
35 | |||
36 | template += '> </span>' + | ||
37 | '<span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>' + | ||
38 | '{arrowHtml}' + | ||
39 | '</a>'; | ||
40 | |||
41 | var templateArrow = '<span class="cke_button_arrow">' + | ||
42 | // BLACK DOWN-POINTING TRIANGLE | ||
43 | ( CKEDITOR.env.hc ? '▼' : '' ) + | ||
44 | '</span>'; | ||
45 | |||
46 | var btnArrowTpl = CKEDITOR.addTemplate( 'buttonArrow', templateArrow ), | ||
47 | btnTpl = CKEDITOR.addTemplate( 'button', template ); | ||
48 | |||
49 | CKEDITOR.plugins.add( 'button', { | ||
50 | lang: 'af,ar,bg,ca,cs,da,de,de-ch,el,en,en-gb,eo,es,eu,fa,fi,fr,gl,he,hu,id,it,ja,km,ko,ku,lt,nb,nl,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% | ||
51 | beforeInit: function( editor ) { | ||
52 | editor.ui.addHandler( CKEDITOR.UI_BUTTON, CKEDITOR.ui.button.handler ); | ||
53 | } | ||
54 | } ); | ||
55 | |||
56 | /** | ||
57 | * Button UI element. | ||
58 | * | ||
59 | * @readonly | ||
60 | * @property {String} [='button'] | ||
61 | * @member CKEDITOR | ||
62 | */ | ||
63 | CKEDITOR.UI_BUTTON = 'button'; | ||
64 | |||
65 | /** | ||
66 | * Represents a button UI element. This class should not be called directly. To | ||
67 | * create new buttons use {@link CKEDITOR.ui#addButton} instead. | ||
68 | * | ||
69 | * @class | ||
70 | * @constructor Creates a button class instance. | ||
71 | * @param {Object} definition The button definition. | ||
72 | */ | ||
73 | CKEDITOR.ui.button = function( definition ) { | ||
74 | CKEDITOR.tools.extend( this, definition, | ||
75 | // Set defaults. | ||
76 | { | ||
77 | title: definition.label, | ||
78 | click: definition.click || | ||
79 | function( editor ) { | ||
80 | editor.execCommand( definition.command ); | ||
81 | } | ||
82 | } ); | ||
83 | |||
84 | this._ = {}; | ||
85 | }; | ||
86 | |||
87 | /** | ||
88 | * Represents the button handler object. | ||
89 | * | ||
90 | * @class | ||
91 | * @singleton | ||
92 | * @extends CKEDITOR.ui.handlerDefinition | ||
93 | */ | ||
94 | CKEDITOR.ui.button.handler = { | ||
95 | /** | ||
96 | * Transforms a button definition in a {@link CKEDITOR.ui.button} instance. | ||
97 | * | ||
98 | * @member CKEDITOR.ui.button.handler | ||
99 | * @param {Object} definition | ||
100 | * @returns {CKEDITOR.ui.button} | ||
101 | */ | ||
102 | create: function( definition ) { | ||
103 | return new CKEDITOR.ui.button( definition ); | ||
104 | } | ||
105 | }; | ||
106 | |||
107 | /** @class CKEDITOR.ui.button */ | ||
108 | CKEDITOR.ui.button.prototype = { | ||
109 | /** | ||
110 | * Renders the button. | ||
111 | * | ||
112 | * @param {CKEDITOR.editor} editor The editor instance which this button is | ||
113 | * to be used by. | ||
114 | * @param {Array} output The output array to which the HTML code related to | ||
115 | * this button should be appended. | ||
116 | */ | ||
117 | render: function( editor, output ) { | ||
118 | function updateState() { | ||
119 | // "this" is a CKEDITOR.ui.button instance. | ||
120 | var mode = editor.mode; | ||
121 | |||
122 | if ( mode ) { | ||
123 | // Restore saved button state. | ||
124 | var state = this.modes[ mode ] ? modeStates[ mode ] !== undefined ? modeStates[ mode ] : CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; | ||
125 | |||
126 | state = editor.readOnly && !this.readOnly ? CKEDITOR.TRISTATE_DISABLED : state; | ||
127 | |||
128 | this.setState( state ); | ||
129 | |||
130 | // Let plugin to disable button. | ||
131 | if ( this.refresh ) | ||
132 | this.refresh(); | ||
133 | } | ||
134 | } | ||
135 | |||
136 | var env = CKEDITOR.env, | ||
137 | id = this._.id = CKEDITOR.tools.getNextId(), | ||
138 | stateName = '', | ||
139 | command = this.command, | ||
140 | // Get the command name. | ||
141 | clickFn; | ||
142 | |||
143 | this._.editor = editor; | ||
144 | |||
145 | var instance = { | ||
146 | id: id, | ||
147 | button: this, | ||
148 | editor: editor, | ||
149 | focus: function() { | ||
150 | var element = CKEDITOR.document.getById( id ); | ||
151 | element.focus(); | ||
152 | }, | ||
153 | execute: function() { | ||
154 | this.button.click( editor ); | ||
155 | }, | ||
156 | attach: function( editor ) { | ||
157 | this.button.attach( editor ); | ||
158 | } | ||
159 | }; | ||
160 | |||
161 | var keydownFn = CKEDITOR.tools.addFunction( function( ev ) { | ||
162 | if ( instance.onkey ) { | ||
163 | ev = new CKEDITOR.dom.event( ev ); | ||
164 | return ( instance.onkey( instance, ev.getKeystroke() ) !== false ); | ||
165 | } | ||
166 | } ); | ||
167 | |||
168 | var focusFn = CKEDITOR.tools.addFunction( function( ev ) { | ||
169 | var retVal; | ||
170 | |||
171 | if ( instance.onfocus ) | ||
172 | retVal = ( instance.onfocus( instance, new CKEDITOR.dom.event( ev ) ) !== false ); | ||
173 | |||
174 | return retVal; | ||
175 | } ); | ||
176 | |||
177 | var selLocked = 0; | ||
178 | |||
179 | instance.clickFn = clickFn = CKEDITOR.tools.addFunction( function() { | ||
180 | |||
181 | // Restore locked selection in Opera. | ||
182 | if ( selLocked ) { | ||
183 | editor.unlockSelection( 1 ); | ||
184 | selLocked = 0; | ||
185 | } | ||
186 | instance.execute(); | ||
187 | |||
188 | // Fixed iOS focus issue when your press disabled button (#12381). | ||
189 | if ( env.iOS ) { | ||
190 | editor.focus(); | ||
191 | } | ||
192 | } ); | ||
193 | |||
194 | |||
195 | // Indicate a mode sensitive button. | ||
196 | if ( this.modes ) { | ||
197 | var modeStates = {}; | ||
198 | |||
199 | editor.on( 'beforeModeUnload', function() { | ||
200 | if ( editor.mode && this._.state != CKEDITOR.TRISTATE_DISABLED ) | ||
201 | modeStates[ editor.mode ] = this._.state; | ||
202 | }, this ); | ||
203 | |||
204 | // Update status when activeFilter, mode or readOnly changes. | ||
205 | editor.on( 'activeFilterChange', updateState, this ); | ||
206 | editor.on( 'mode', updateState, this ); | ||
207 | // If this button is sensitive to readOnly state, update it accordingly. | ||
208 | !this.readOnly && editor.on( 'readOnly', updateState, this ); | ||
209 | |||
210 | } else if ( command ) { | ||
211 | // Get the command instance. | ||
212 | command = editor.getCommand( command ); | ||
213 | |||
214 | if ( command ) { | ||
215 | command.on( 'state', function() { | ||
216 | this.setState( command.state ); | ||
217 | }, this ); | ||
218 | |||
219 | stateName += ( command.state == CKEDITOR.TRISTATE_ON ? 'on' : command.state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : 'off' ); | ||
220 | } | ||
221 | } | ||
222 | |||
223 | // For button that has text-direction awareness on selection path. | ||
224 | if ( this.directional ) { | ||
225 | editor.on( 'contentDirChanged', function( evt ) { | ||
226 | var el = CKEDITOR.document.getById( this._.id ), | ||
227 | icon = el.getFirst(); | ||
228 | |||
229 | var pathDir = evt.data; | ||
230 | |||
231 | // Make a minor direction change to become style-able for the skin icon. | ||
232 | if ( pathDir != editor.lang.dir ) | ||
233 | el.addClass( 'cke_' + pathDir ); | ||
234 | else | ||
235 | el.removeClass( 'cke_ltr' ).removeClass( 'cke_rtl' ); | ||
236 | |||
237 | // Inline style update for the plugin icon. | ||
238 | icon.setAttribute( 'style', CKEDITOR.skin.getIconStyle( iconName, pathDir == 'rtl', this.icon, this.iconOffset ) ); | ||
239 | }, this ); | ||
240 | } | ||
241 | |||
242 | if ( !command ) | ||
243 | stateName += 'off'; | ||
244 | |||
245 | var name = this.name || this.command, | ||
246 | iconName = name; | ||
247 | |||
248 | // Check if we're pointing to an icon defined by another command. (#9555) | ||
249 | if ( this.icon && !( /\./ ).test( this.icon ) ) { | ||
250 | iconName = this.icon; | ||
251 | this.icon = null; | ||
252 | } | ||
253 | |||
254 | var params = { | ||
255 | id: id, | ||
256 | name: name, | ||
257 | iconName: iconName, | ||
258 | label: this.label, | ||
259 | cls: this.className || '', | ||
260 | state: stateName, | ||
261 | ariaDisabled: stateName == 'disabled' ? 'true' : 'false', | ||
262 | title: this.title, | ||
263 | titleJs: env.gecko && !env.hc ? '' : ( this.title || '' ).replace( "'", '' ), | ||
264 | hasArrow: this.hasArrow ? 'true' : 'false', | ||
265 | keydownFn: keydownFn, | ||
266 | focusFn: focusFn, | ||
267 | clickFn: clickFn, | ||
268 | style: CKEDITOR.skin.getIconStyle( iconName, ( editor.lang.dir == 'rtl' ), this.icon, this.iconOffset ), | ||
269 | arrowHtml: this.hasArrow ? btnArrowTpl.output() : '' | ||
270 | }; | ||
271 | |||
272 | btnTpl.output( params, output ); | ||
273 | |||
274 | if ( this.onRender ) | ||
275 | this.onRender(); | ||
276 | |||
277 | return instance; | ||
278 | }, | ||
279 | |||
280 | /** | ||
281 | * Sets the button state. | ||
282 | * | ||
283 | * @param {Number} state Indicates the button state. One of {@link CKEDITOR#TRISTATE_ON}, | ||
284 | * {@link CKEDITOR#TRISTATE_OFF}, or {@link CKEDITOR#TRISTATE_DISABLED}. | ||
285 | */ | ||
286 | setState: function( state ) { | ||
287 | if ( this._.state == state ) | ||
288 | return false; | ||
289 | |||
290 | this._.state = state; | ||
291 | |||
292 | var element = CKEDITOR.document.getById( this._.id ); | ||
293 | |||
294 | if ( element ) { | ||
295 | element.setState( state, 'cke_button' ); | ||
296 | |||
297 | state == CKEDITOR.TRISTATE_DISABLED ? | ||
298 | element.setAttribute( 'aria-disabled', true ) : | ||
299 | element.removeAttribute( 'aria-disabled' ); | ||
300 | |||
301 | if ( !this.hasArrow ) { | ||
302 | // Note: aria-pressed attribute should not be added to menuButton instances. (#11331) | ||
303 | state == CKEDITOR.TRISTATE_ON ? | ||
304 | element.setAttribute( 'aria-pressed', true ) : | ||
305 | element.removeAttribute( 'aria-pressed' ); | ||
306 | } else { | ||
307 | var newLabel = state == CKEDITOR.TRISTATE_ON ? | ||
308 | this._.editor.lang.button.selectedLabel.replace( /%1/g, this.label ) : this.label; | ||
309 | CKEDITOR.document.getById( this._.id + '_label' ).setText( newLabel ); | ||
310 | } | ||
311 | |||
312 | return true; | ||
313 | } else { | ||
314 | return false; | ||
315 | } | ||
316 | }, | ||
317 | |||
318 | /** | ||
319 | * Gets the button state. | ||
320 | * | ||
321 | * @returns {Number} The button state. One of {@link CKEDITOR#TRISTATE_ON}, | ||
322 | * {@link CKEDITOR#TRISTATE_OFF}, or {@link CKEDITOR#TRISTATE_DISABLED}. | ||
323 | */ | ||
324 | getState: function() { | ||
325 | return this._.state; | ||
326 | }, | ||
327 | |||
328 | /** | ||
329 | * Returns this button's {@link CKEDITOR.feature} instance. | ||
330 | * | ||
331 | * It may be this button instance if it has at least one of | ||
332 | * `allowedContent` and `requiredContent` properties. Otherwise, | ||
333 | * if a command is bound to this button by the `command` property, then | ||
334 | * that command will be returned. | ||
335 | * | ||
336 | * This method implements the {@link CKEDITOR.feature#toFeature} interface method. | ||
337 | * | ||
338 | * @since 4.1 | ||
339 | * @param {CKEDITOR.editor} Editor instance. | ||
340 | * @returns {CKEDITOR.feature} The feature. | ||
341 | */ | ||
342 | toFeature: function( editor ) { | ||
343 | if ( this._.feature ) | ||
344 | return this._.feature; | ||
345 | |||
346 | var feature = this; | ||
347 | |||
348 | // If button isn't a feature, return command if is bound. | ||
349 | if ( !this.allowedContent && !this.requiredContent && this.command ) | ||
350 | feature = editor.getCommand( this.command ) || feature; | ||
351 | |||
352 | return this._.feature = feature; | ||
353 | } | ||
354 | }; | ||
355 | |||
356 | /** | ||
357 | * Adds a button definition to the UI elements list. | ||
358 | * | ||
359 | * editorInstance.ui.addButton( 'MyBold', { | ||
360 | * label: 'My Bold', | ||
361 | * command: 'bold', | ||
362 | * toolbar: 'basicstyles,1' | ||
363 | * } ); | ||
364 | * | ||
365 | * @member CKEDITOR.ui | ||
366 | * @param {String} name The button name. | ||
367 | * @param {Object} definition The button definition. | ||
368 | * @param {String} definition.label The textual part of the button (if visible) and its tooltip. | ||
369 | * @param {String} definition.command The command to be executed once the button is activated. | ||
370 | * @param {String} definition.toolbar The {@link CKEDITOR.config#toolbarGroups toolbar group} into which | ||
371 | * the button will be added. An optional index value (separated by a comma) determines the button position within the group. | ||
372 | */ | ||
373 | CKEDITOR.ui.prototype.addButton = function( name, definition ) { | ||
374 | this.add( name, CKEDITOR.UI_BUTTON, definition ); | ||
375 | }; | ||
376 | |||
377 | } )(); | ||