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/contextmenu | |
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/contextmenu')
68 files changed, 628 insertions, 0 deletions
diff --git a/sources/plugins/contextmenu/lang/af.js b/sources/plugins/contextmenu/lang/af.js new file mode 100644 index 0000000..bf849cc --- /dev/null +++ b/sources/plugins/contextmenu/lang/af.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'af', { | ||
6 | options: 'Konteks Spyskaart-opsies' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ar.js b/sources/plugins/contextmenu/lang/ar.js new file mode 100644 index 0000000..6f4b9cd --- /dev/null +++ b/sources/plugins/contextmenu/lang/ar.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ar', { | ||
6 | options: 'خصائص قائمة السياق' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/bg.js b/sources/plugins/contextmenu/lang/bg.js new file mode 100644 index 0000000..7e37b2e --- /dev/null +++ b/sources/plugins/contextmenu/lang/bg.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'bg', { | ||
6 | options: 'Опции на контекстното меню' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/bn.js b/sources/plugins/contextmenu/lang/bn.js new file mode 100644 index 0000000..e18bb70 --- /dev/null +++ b/sources/plugins/contextmenu/lang/bn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'bn', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/bs.js b/sources/plugins/contextmenu/lang/bs.js new file mode 100644 index 0000000..22cade1 --- /dev/null +++ b/sources/plugins/contextmenu/lang/bs.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'bs', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ca.js b/sources/plugins/contextmenu/lang/ca.js new file mode 100644 index 0000000..d9c157a --- /dev/null +++ b/sources/plugins/contextmenu/lang/ca.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ca', { | ||
6 | options: 'Opcions del menú contextual' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/cs.js b/sources/plugins/contextmenu/lang/cs.js new file mode 100644 index 0000000..49ba461 --- /dev/null +++ b/sources/plugins/contextmenu/lang/cs.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'cs', { | ||
6 | options: 'Nastavení kontextové nabídky' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/cy.js b/sources/plugins/contextmenu/lang/cy.js new file mode 100644 index 0000000..2bb01d9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/cy.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'cy', { | ||
6 | options: 'Opsiynau Dewislen Cyd-destun' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/da.js b/sources/plugins/contextmenu/lang/da.js new file mode 100644 index 0000000..3e73bd8 --- /dev/null +++ b/sources/plugins/contextmenu/lang/da.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'da', { | ||
6 | options: 'Muligheder for hjælpemenu' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/de-ch.js b/sources/plugins/contextmenu/lang/de-ch.js new file mode 100644 index 0000000..606c5e5 --- /dev/null +++ b/sources/plugins/contextmenu/lang/de-ch.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'de-ch', { | ||
6 | options: 'Kontextmenüoptionen' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/de.js b/sources/plugins/contextmenu/lang/de.js new file mode 100644 index 0000000..af3d94f --- /dev/null +++ b/sources/plugins/contextmenu/lang/de.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'de', { | ||
6 | options: 'Kontextmenüoptionen' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/el.js b/sources/plugins/contextmenu/lang/el.js new file mode 100644 index 0000000..5641cc2 --- /dev/null +++ b/sources/plugins/contextmenu/lang/el.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'el', { | ||
6 | options: 'Επιλογές Αναδυόμενου Μενού' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/en-au.js b/sources/plugins/contextmenu/lang/en-au.js new file mode 100644 index 0000000..2cfb13e --- /dev/null +++ b/sources/plugins/contextmenu/lang/en-au.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'en-au', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/en-ca.js b/sources/plugins/contextmenu/lang/en-ca.js new file mode 100644 index 0000000..f5fff30 --- /dev/null +++ b/sources/plugins/contextmenu/lang/en-ca.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'en-ca', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/en-gb.js b/sources/plugins/contextmenu/lang/en-gb.js new file mode 100644 index 0000000..25b6dfa --- /dev/null +++ b/sources/plugins/contextmenu/lang/en-gb.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'en-gb', { | ||
6 | options: 'Context Menu Options' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/en.js b/sources/plugins/contextmenu/lang/en.js new file mode 100644 index 0000000..59343e3 --- /dev/null +++ b/sources/plugins/contextmenu/lang/en.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'en', { | ||
6 | options: 'Context Menu Options' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/eo.js b/sources/plugins/contextmenu/lang/eo.js new file mode 100644 index 0000000..8782e56 --- /dev/null +++ b/sources/plugins/contextmenu/lang/eo.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'eo', { | ||
6 | options: 'Opcioj de Kunteksta Menuo' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/es.js b/sources/plugins/contextmenu/lang/es.js new file mode 100644 index 0000000..7eed8ab --- /dev/null +++ b/sources/plugins/contextmenu/lang/es.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'es', { | ||
6 | options: 'Opciones del menú contextual' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/et.js b/sources/plugins/contextmenu/lang/et.js new file mode 100644 index 0000000..7e34fbb --- /dev/null +++ b/sources/plugins/contextmenu/lang/et.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'et', { | ||
6 | options: 'Kontekstimenüü valikud' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/eu.js b/sources/plugins/contextmenu/lang/eu.js new file mode 100644 index 0000000..f04ae72 --- /dev/null +++ b/sources/plugins/contextmenu/lang/eu.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'eu', { | ||
6 | options: 'Testuinguru-menuaren aukerak' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/fa.js b/sources/plugins/contextmenu/lang/fa.js new file mode 100644 index 0000000..6ba8b7c --- /dev/null +++ b/sources/plugins/contextmenu/lang/fa.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'fa', { | ||
6 | options: 'گزینههای منوی زمینه' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/fi.js b/sources/plugins/contextmenu/lang/fi.js new file mode 100644 index 0000000..920c494 --- /dev/null +++ b/sources/plugins/contextmenu/lang/fi.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'fi', { | ||
6 | options: 'Pikavalikon ominaisuudet' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/fo.js b/sources/plugins/contextmenu/lang/fo.js new file mode 100644 index 0000000..6e71076 --- /dev/null +++ b/sources/plugins/contextmenu/lang/fo.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'fo', { | ||
6 | options: 'Context Menu Options' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/fr-ca.js b/sources/plugins/contextmenu/lang/fr-ca.js new file mode 100644 index 0000000..c9ffdc1 --- /dev/null +++ b/sources/plugins/contextmenu/lang/fr-ca.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'fr-ca', { | ||
6 | options: 'Options du menu contextuel' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/fr.js b/sources/plugins/contextmenu/lang/fr.js new file mode 100644 index 0000000..9205c52 --- /dev/null +++ b/sources/plugins/contextmenu/lang/fr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'fr', { | ||
6 | options: 'Options du menu contextuel' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/gl.js b/sources/plugins/contextmenu/lang/gl.js new file mode 100644 index 0000000..92561cc --- /dev/null +++ b/sources/plugins/contextmenu/lang/gl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'gl', { | ||
6 | options: 'Opcións do menú contextual' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/gu.js b/sources/plugins/contextmenu/lang/gu.js new file mode 100644 index 0000000..f2065ee --- /dev/null +++ b/sources/plugins/contextmenu/lang/gu.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'gu', { | ||
6 | options: 'કોન્તેક્ષ્ત્ મેનુના વિકલ્પો' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/he.js b/sources/plugins/contextmenu/lang/he.js new file mode 100644 index 0000000..71d3bd9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/he.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'he', { | ||
6 | options: 'אפשרויות תפריט ההקשר' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/hi.js b/sources/plugins/contextmenu/lang/hi.js new file mode 100644 index 0000000..9181aca --- /dev/null +++ b/sources/plugins/contextmenu/lang/hi.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'hi', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/hr.js b/sources/plugins/contextmenu/lang/hr.js new file mode 100644 index 0000000..335215d --- /dev/null +++ b/sources/plugins/contextmenu/lang/hr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'hr', { | ||
6 | options: 'Opcije izbornika' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/hu.js b/sources/plugins/contextmenu/lang/hu.js new file mode 100644 index 0000000..f80d0ae --- /dev/null +++ b/sources/plugins/contextmenu/lang/hu.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'hu', { | ||
6 | options: 'Helyi menü opciók' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/id.js b/sources/plugins/contextmenu/lang/id.js new file mode 100644 index 0000000..0278f79 --- /dev/null +++ b/sources/plugins/contextmenu/lang/id.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'id', { | ||
6 | options: 'Opsi Konteks Pilihan' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/is.js b/sources/plugins/contextmenu/lang/is.js new file mode 100644 index 0000000..6d208f1 --- /dev/null +++ b/sources/plugins/contextmenu/lang/is.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'is', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/it.js b/sources/plugins/contextmenu/lang/it.js new file mode 100644 index 0000000..dc206c9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/it.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'it', { | ||
6 | options: 'Opzioni del menù contestuale' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ja.js b/sources/plugins/contextmenu/lang/ja.js new file mode 100644 index 0000000..939486f --- /dev/null +++ b/sources/plugins/contextmenu/lang/ja.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ja', { | ||
6 | options: 'コンテキストメニューオプション' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ka.js b/sources/plugins/contextmenu/lang/ka.js new file mode 100644 index 0000000..b7c553b --- /dev/null +++ b/sources/plugins/contextmenu/lang/ka.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ka', { | ||
6 | options: 'კონტექსტური მენიუს პარამეტრები' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/km.js b/sources/plugins/contextmenu/lang/km.js new file mode 100644 index 0000000..967e4fe --- /dev/null +++ b/sources/plugins/contextmenu/lang/km.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'km', { | ||
6 | options: 'ជម្រើសម៉ឺនុយបរិបទ' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ko.js b/sources/plugins/contextmenu/lang/ko.js new file mode 100644 index 0000000..8f873fe --- /dev/null +++ b/sources/plugins/contextmenu/lang/ko.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ko', { | ||
6 | options: '컨텍스트 메뉴 옵션' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ku.js b/sources/plugins/contextmenu/lang/ku.js new file mode 100644 index 0000000..f49b18b --- /dev/null +++ b/sources/plugins/contextmenu/lang/ku.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ku', { | ||
6 | options: 'هەڵبژاردەی لیستەی کلیکی دەستی ڕاست' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/lt.js b/sources/plugins/contextmenu/lang/lt.js new file mode 100644 index 0000000..e50e8a4 --- /dev/null +++ b/sources/plugins/contextmenu/lang/lt.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'lt', { | ||
6 | options: 'Kontekstinio meniu parametrai' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/lv.js b/sources/plugins/contextmenu/lang/lv.js new file mode 100644 index 0000000..fad495a --- /dev/null +++ b/sources/plugins/contextmenu/lang/lv.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'lv', { | ||
6 | options: 'Uznirstošās izvēlnes uzstādījumi' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/mk.js b/sources/plugins/contextmenu/lang/mk.js new file mode 100644 index 0000000..c00cebb --- /dev/null +++ b/sources/plugins/contextmenu/lang/mk.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'mk', { | ||
6 | options: 'Контекст-мени опции' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/mn.js b/sources/plugins/contextmenu/lang/mn.js new file mode 100644 index 0000000..0745938 --- /dev/null +++ b/sources/plugins/contextmenu/lang/mn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'mn', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ms.js b/sources/plugins/contextmenu/lang/ms.js new file mode 100644 index 0000000..870cbac --- /dev/null +++ b/sources/plugins/contextmenu/lang/ms.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ms', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/nb.js b/sources/plugins/contextmenu/lang/nb.js new file mode 100644 index 0000000..cc31945 --- /dev/null +++ b/sources/plugins/contextmenu/lang/nb.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'nb', { | ||
6 | options: 'Alternativer for høyreklikkmeny' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/nl.js b/sources/plugins/contextmenu/lang/nl.js new file mode 100644 index 0000000..baa8eb2 --- /dev/null +++ b/sources/plugins/contextmenu/lang/nl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'nl', { | ||
6 | options: 'Contextmenu opties' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/no.js b/sources/plugins/contextmenu/lang/no.js new file mode 100644 index 0000000..8885d40 --- /dev/null +++ b/sources/plugins/contextmenu/lang/no.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'no', { | ||
6 | options: 'Alternativer for høyreklikkmeny' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/pl.js b/sources/plugins/contextmenu/lang/pl.js new file mode 100644 index 0000000..47de98d --- /dev/null +++ b/sources/plugins/contextmenu/lang/pl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'pl', { | ||
6 | options: 'Opcje menu kontekstowego' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/pt-br.js b/sources/plugins/contextmenu/lang/pt-br.js new file mode 100644 index 0000000..8cf3255 --- /dev/null +++ b/sources/plugins/contextmenu/lang/pt-br.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'pt-br', { | ||
6 | options: 'Opções Menu de Contexto' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/pt.js b/sources/plugins/contextmenu/lang/pt.js new file mode 100644 index 0000000..31c027f --- /dev/null +++ b/sources/plugins/contextmenu/lang/pt.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'pt', { | ||
6 | options: 'Menu de opções de contexto' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ro.js b/sources/plugins/contextmenu/lang/ro.js new file mode 100644 index 0000000..b9c0077 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ro.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ro', { | ||
6 | options: 'Opțiuni Meniu Contextual' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ru.js b/sources/plugins/contextmenu/lang/ru.js new file mode 100644 index 0000000..330afbe --- /dev/null +++ b/sources/plugins/contextmenu/lang/ru.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ru', { | ||
6 | options: 'Параметры контекстного меню' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/si.js b/sources/plugins/contextmenu/lang/si.js new file mode 100644 index 0000000..8b3eda0 --- /dev/null +++ b/sources/plugins/contextmenu/lang/si.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'si', { | ||
6 | options: 'අනතර්ග ලේඛණ විකල්ප' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/sk.js b/sources/plugins/contextmenu/lang/sk.js new file mode 100644 index 0000000..34d64ac --- /dev/null +++ b/sources/plugins/contextmenu/lang/sk.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'sk', { | ||
6 | options: 'Možnosti kontextového menu' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/sl.js b/sources/plugins/contextmenu/lang/sl.js new file mode 100644 index 0000000..e823bb6 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sl.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'sl', { | ||
6 | options: 'Možnosti Kontekstnega Menija' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/sq.js b/sources/plugins/contextmenu/lang/sq.js new file mode 100644 index 0000000..e1d40dc --- /dev/null +++ b/sources/plugins/contextmenu/lang/sq.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'sq', { | ||
6 | options: 'Mundësitë e Menysë së Kontekstit' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/sr-latn.js b/sources/plugins/contextmenu/lang/sr-latn.js new file mode 100644 index 0000000..a63e783 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sr-latn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'sr-latn', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/sr.js b/sources/plugins/contextmenu/lang/sr.js new file mode 100644 index 0000000..ec79a0c --- /dev/null +++ b/sources/plugins/contextmenu/lang/sr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'sr', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/sv.js b/sources/plugins/contextmenu/lang/sv.js new file mode 100644 index 0000000..69fa7b9 --- /dev/null +++ b/sources/plugins/contextmenu/lang/sv.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'sv', { | ||
6 | options: 'Context Menu Options' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/th.js b/sources/plugins/contextmenu/lang/th.js new file mode 100644 index 0000000..c17f20f --- /dev/null +++ b/sources/plugins/contextmenu/lang/th.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'th', { | ||
6 | options: 'Context Menu Options' // MISSING | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/tr.js b/sources/plugins/contextmenu/lang/tr.js new file mode 100644 index 0000000..c31e6f3 --- /dev/null +++ b/sources/plugins/contextmenu/lang/tr.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'tr', { | ||
6 | options: 'İçerik Menüsü Seçenekleri' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/tt.js b/sources/plugins/contextmenu/lang/tt.js new file mode 100644 index 0000000..514a35f --- /dev/null +++ b/sources/plugins/contextmenu/lang/tt.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'tt', { | ||
6 | options: 'Контекст меню үзлекләре' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/ug.js b/sources/plugins/contextmenu/lang/ug.js new file mode 100644 index 0000000..b52e259 --- /dev/null +++ b/sources/plugins/contextmenu/lang/ug.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'ug', { | ||
6 | options: 'قىسقا يول تىزىملىك تاللانمىسى' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/uk.js b/sources/plugins/contextmenu/lang/uk.js new file mode 100644 index 0000000..97b514a --- /dev/null +++ b/sources/plugins/contextmenu/lang/uk.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'uk', { | ||
6 | options: 'Опції контекстного меню' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/vi.js b/sources/plugins/contextmenu/lang/vi.js new file mode 100644 index 0000000..91fc97c --- /dev/null +++ b/sources/plugins/contextmenu/lang/vi.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'vi', { | ||
6 | options: 'Tùy chọn menu bổ xung' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/zh-cn.js b/sources/plugins/contextmenu/lang/zh-cn.js new file mode 100644 index 0000000..9ee2213 --- /dev/null +++ b/sources/plugins/contextmenu/lang/zh-cn.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'zh-cn', { | ||
6 | options: '快捷菜单选项' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/lang/zh.js b/sources/plugins/contextmenu/lang/zh.js new file mode 100644 index 0000000..b451c7f --- /dev/null +++ b/sources/plugins/contextmenu/lang/zh.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'contextmenu', 'zh', { | ||
6 | options: '內容功能表選項' | ||
7 | } ); | ||
diff --git a/sources/plugins/contextmenu/plugin.js b/sources/plugins/contextmenu/plugin.js new file mode 100644 index 0000000..09d7f25 --- /dev/null +++ b/sources/plugins/contextmenu/plugin.js | |||
@@ -0,0 +1,159 @@ | |||
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.add( 'contextmenu', { | ||
7 | requires: 'menu', | ||
8 | |||
9 | // jscs:disable maximumLineLength | ||
10 | lang: 'af,ar,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,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% | ||
11 | // jscs:enable maximumLineLength | ||
12 | |||
13 | // Make sure the base class (CKEDITOR.menu) is loaded before it (#3318). | ||
14 | onLoad: function() { | ||
15 | /** | ||
16 | * Class replacing the non-configurable native context menu with a configurable CKEditor's equivalent. | ||
17 | * | ||
18 | * @class | ||
19 | * @extends CKEDITOR.menu | ||
20 | */ | ||
21 | CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass( { | ||
22 | base: CKEDITOR.menu, | ||
23 | |||
24 | /** | ||
25 | * Creates the CKEDITOR.plugins.contextMenu class instance. | ||
26 | * | ||
27 | * @constructor | ||
28 | * @param {CKEDITOR.editor} editor | ||
29 | */ | ||
30 | $: function( editor ) { | ||
31 | this.base.call( this, editor, { | ||
32 | panel: { | ||
33 | className: 'cke_menu_panel', | ||
34 | attributes: { | ||
35 | 'aria-label': editor.lang.contextmenu.options | ||
36 | } | ||
37 | } | ||
38 | } ); | ||
39 | }, | ||
40 | |||
41 | proto: { | ||
42 | /** | ||
43 | * Starts watching on native context menu triggers (<kbd>Option</kbd> key, right click) on the given element. | ||
44 | * | ||
45 | * @param {CKEDITOR.dom.element} element | ||
46 | * @param {Boolean} [nativeContextMenuOnCtrl] Whether to open native context menu if the | ||
47 | * <kbd>Ctrl</kbd> key is held on opening the context menu. See {@link CKEDITOR.config#browserContextMenuOnCtrl}. | ||
48 | */ | ||
49 | addTarget: function( element, nativeContextMenuOnCtrl ) { | ||
50 | element.on( 'contextmenu', function( event ) { | ||
51 | var domEvent = event.data, | ||
52 | isCtrlKeyDown = | ||
53 | // Safari on Windows always show 'ctrlKey' as true in 'contextmenu' event, | ||
54 | // which make this property unreliable. (#4826) | ||
55 | ( CKEDITOR.env.webkit ? holdCtrlKey : ( CKEDITOR.env.mac ? domEvent.$.metaKey : domEvent.$.ctrlKey ) ); | ||
56 | |||
57 | if ( nativeContextMenuOnCtrl && isCtrlKeyDown ) | ||
58 | return; | ||
59 | |||
60 | // Cancel the browser context menu. | ||
61 | domEvent.preventDefault(); | ||
62 | |||
63 | // Fix selection when non-editable element in Webkit/Blink (Mac) (#11306). | ||
64 | if ( CKEDITOR.env.mac && CKEDITOR.env.webkit ) { | ||
65 | var editor = this.editor, | ||
66 | contentEditableParent = new CKEDITOR.dom.elementPath( domEvent.getTarget(), editor.editable() ).contains( function( el ) { | ||
67 | // Return when non-editable or nested editable element is found. | ||
68 | return el.hasAttribute( 'contenteditable' ); | ||
69 | }, true ); // Exclude editor's editable. | ||
70 | |||
71 | // Fake selection for non-editables only (to exclude nested editables). | ||
72 | if ( contentEditableParent && contentEditableParent.getAttribute( 'contenteditable' ) == 'false' ) | ||
73 | editor.getSelection().fake( contentEditableParent ); | ||
74 | } | ||
75 | |||
76 | var doc = domEvent.getTarget().getDocument(), | ||
77 | offsetParent = domEvent.getTarget().getDocument().getDocumentElement(), | ||
78 | fromFrame = !doc.equals( CKEDITOR.document ), | ||
79 | scroll = doc.getWindow().getScrollPosition(), | ||
80 | offsetX = fromFrame ? domEvent.$.clientX : domEvent.$.pageX || scroll.x + domEvent.$.clientX, | ||
81 | offsetY = fromFrame ? domEvent.$.clientY : domEvent.$.pageY || scroll.y + domEvent.$.clientY; | ||
82 | |||
83 | CKEDITOR.tools.setTimeout( function() { | ||
84 | this.open( offsetParent, null, offsetX, offsetY ); | ||
85 | |||
86 | // IE needs a short while to allow selection change before opening menu. (#7908) | ||
87 | }, CKEDITOR.env.ie ? 200 : 0, this ); | ||
88 | }, this ); | ||
89 | |||
90 | if ( CKEDITOR.env.webkit ) { | ||
91 | var holdCtrlKey, | ||
92 | onKeyDown = function( event ) { | ||
93 | holdCtrlKey = CKEDITOR.env.mac ? event.data.$.metaKey : event.data.$.ctrlKey; | ||
94 | }, | ||
95 | resetOnKeyUp = function() { | ||
96 | holdCtrlKey = 0; | ||
97 | }; | ||
98 | |||
99 | element.on( 'keydown', onKeyDown ); | ||
100 | element.on( 'keyup', resetOnKeyUp ); | ||
101 | element.on( 'contextmenu', resetOnKeyUp ); | ||
102 | } | ||
103 | }, | ||
104 | |||
105 | /** | ||
106 | * Opens the context menu in the given location. See the {@link CKEDITOR.menu#show} method. | ||
107 | * | ||
108 | * @param {CKEDITOR.dom.element} offsetParent | ||
109 | * @param {Number} [corner] | ||
110 | * @param {Number} [offsetX] | ||
111 | * @param {Number} [offsetY] | ||
112 | */ | ||
113 | open: function( offsetParent, corner, offsetX, offsetY ) { | ||
114 | this.editor.focus(); | ||
115 | offsetParent = offsetParent || CKEDITOR.document.getDocumentElement(); | ||
116 | |||
117 | // #9362: Force selection check to update commands' states in the new context. | ||
118 | this.editor.selectionChange( 1 ); | ||
119 | |||
120 | this.show( offsetParent, corner, offsetX, offsetY ); | ||
121 | } | ||
122 | } | ||
123 | } ); | ||
124 | }, | ||
125 | |||
126 | beforeInit: function( editor ) { | ||
127 | /** | ||
128 | * @readonly | ||
129 | * @property {CKEDITOR.plugins.contextMenu} contextMenu | ||
130 | * @member CKEDITOR.editor | ||
131 | */ | ||
132 | var contextMenu = editor.contextMenu = new CKEDITOR.plugins.contextMenu( editor ); | ||
133 | |||
134 | editor.on( 'contentDom', function() { | ||
135 | contextMenu.addTarget( editor.editable(), editor.config.browserContextMenuOnCtrl !== false ); | ||
136 | } ); | ||
137 | |||
138 | editor.addCommand( 'contextMenu', { | ||
139 | exec: function() { | ||
140 | editor.contextMenu.open( editor.document.getBody() ); | ||
141 | } | ||
142 | } ); | ||
143 | |||
144 | editor.setKeystroke( CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ); | ||
145 | editor.setKeystroke( CKEDITOR.CTRL + CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ); | ||
146 | } | ||
147 | } ); | ||
148 | |||
149 | /** | ||
150 | * Whether to show the browser native context menu when the <kbd>Ctrl</kbd> or | ||
151 | * <kbd>Meta</kbd> (Mac) key is pressed on opening the context menu with the | ||
152 | * right mouse button click or the <kbd>Menu</kbd> key. | ||
153 | * | ||
154 | * config.browserContextMenuOnCtrl = false; | ||
155 | * | ||
156 | * @since 3.0.2 | ||
157 | * @cfg {Boolean} [browserContextMenuOnCtrl=true] | ||
158 | * @member CKEDITOR.config | ||
159 | */ | ||