aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/contextmenu
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/contextmenu')
-rw-r--r--sources/plugins/contextmenu/lang/af.js7
-rw-r--r--sources/plugins/contextmenu/lang/ar.js7
-rw-r--r--sources/plugins/contextmenu/lang/bg.js7
-rw-r--r--sources/plugins/contextmenu/lang/bn.js7
-rw-r--r--sources/plugins/contextmenu/lang/bs.js7
-rw-r--r--sources/plugins/contextmenu/lang/ca.js7
-rw-r--r--sources/plugins/contextmenu/lang/cs.js7
-rw-r--r--sources/plugins/contextmenu/lang/cy.js7
-rw-r--r--sources/plugins/contextmenu/lang/da.js7
-rw-r--r--sources/plugins/contextmenu/lang/de.js7
-rw-r--r--sources/plugins/contextmenu/lang/el.js7
-rw-r--r--sources/plugins/contextmenu/lang/en-au.js7
-rw-r--r--sources/plugins/contextmenu/lang/en-ca.js7
-rw-r--r--sources/plugins/contextmenu/lang/en-gb.js7
-rw-r--r--sources/plugins/contextmenu/lang/en.js7
-rw-r--r--sources/plugins/contextmenu/lang/eo.js7
-rw-r--r--sources/plugins/contextmenu/lang/es.js7
-rw-r--r--sources/plugins/contextmenu/lang/et.js7
-rw-r--r--sources/plugins/contextmenu/lang/eu.js7
-rw-r--r--sources/plugins/contextmenu/lang/fa.js7
-rw-r--r--sources/plugins/contextmenu/lang/fi.js7
-rw-r--r--sources/plugins/contextmenu/lang/fo.js7
-rw-r--r--sources/plugins/contextmenu/lang/fr-ca.js7
-rw-r--r--sources/plugins/contextmenu/lang/fr.js7
-rw-r--r--sources/plugins/contextmenu/lang/gl.js7
-rw-r--r--sources/plugins/contextmenu/lang/gu.js7
-rw-r--r--sources/plugins/contextmenu/lang/he.js7
-rw-r--r--sources/plugins/contextmenu/lang/hi.js7
-rw-r--r--sources/plugins/contextmenu/lang/hr.js7
-rw-r--r--sources/plugins/contextmenu/lang/hu.js7
-rw-r--r--sources/plugins/contextmenu/lang/id.js7
-rw-r--r--sources/plugins/contextmenu/lang/is.js7
-rw-r--r--sources/plugins/contextmenu/lang/it.js7
-rw-r--r--sources/plugins/contextmenu/lang/ja.js7
-rw-r--r--sources/plugins/contextmenu/lang/ka.js7
-rw-r--r--sources/plugins/contextmenu/lang/km.js7
-rw-r--r--sources/plugins/contextmenu/lang/ko.js7
-rw-r--r--sources/plugins/contextmenu/lang/ku.js7
-rw-r--r--sources/plugins/contextmenu/lang/lt.js7
-rw-r--r--sources/plugins/contextmenu/lang/lv.js7
-rw-r--r--sources/plugins/contextmenu/lang/mk.js7
-rw-r--r--sources/plugins/contextmenu/lang/mn.js7
-rw-r--r--sources/plugins/contextmenu/lang/ms.js7
-rw-r--r--sources/plugins/contextmenu/lang/nb.js7
-rw-r--r--sources/plugins/contextmenu/lang/nl.js7
-rw-r--r--sources/plugins/contextmenu/lang/no.js7
-rw-r--r--sources/plugins/contextmenu/lang/pl.js7
-rw-r--r--sources/plugins/contextmenu/lang/pt-br.js7
-rw-r--r--sources/plugins/contextmenu/lang/pt.js7
-rw-r--r--sources/plugins/contextmenu/lang/ro.js7
-rw-r--r--sources/plugins/contextmenu/lang/ru.js7
-rw-r--r--sources/plugins/contextmenu/lang/si.js7
-rw-r--r--sources/plugins/contextmenu/lang/sk.js7
-rw-r--r--sources/plugins/contextmenu/lang/sl.js7
-rw-r--r--sources/plugins/contextmenu/lang/sq.js7
-rw-r--r--sources/plugins/contextmenu/lang/sr-latn.js7
-rw-r--r--sources/plugins/contextmenu/lang/sr.js7
-rw-r--r--sources/plugins/contextmenu/lang/sv.js7
-rw-r--r--sources/plugins/contextmenu/lang/th.js7
-rw-r--r--sources/plugins/contextmenu/lang/tr.js7
-rw-r--r--sources/plugins/contextmenu/lang/tt.js7
-rw-r--r--sources/plugins/contextmenu/lang/ug.js7
-rw-r--r--sources/plugins/contextmenu/lang/uk.js7
-rw-r--r--sources/plugins/contextmenu/lang/vi.js7
-rw-r--r--sources/plugins/contextmenu/lang/zh-cn.js7
-rw-r--r--sources/plugins/contextmenu/lang/zh.js7
-rw-r--r--sources/plugins/contextmenu/plugin.js159
67 files changed, 621 insertions, 0 deletions
diff --git a/sources/plugins/contextmenu/lang/af.js b/sources/plugins/contextmenu/lang/af.js
new file mode 100644
index 00000000..c2cc63a8
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/af.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..cb6b0974
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ar.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..2c4bc028
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/bg.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..ff643525
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/bn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..3267caf5
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/bs.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..b6da83d9
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ca.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..63a0c8d0
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/cs.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..e01fb613
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/cy.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..aa637367
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/da.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'contextmenu', 'da', {
6 options: 'Muligheder for hjælpemenu'
7} );
diff --git a/sources/plugins/contextmenu/lang/de.js b/sources/plugins/contextmenu/lang/de.js
new file mode 100644
index 00000000..f9cfb44e
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/de.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..16bf519c
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/el.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..756dac5d
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/en-au.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..61160a0c
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/en-ca.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..64b81d07
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/en-gb.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..25522bd7
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/en.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..86c0bf31
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/eo.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..91bebfa9
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/es.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..2ff62fea
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/et.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..1f9aac01
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/eu.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..c83db4fd
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/fa.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..cfd3759e
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/fi.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..1f62a56b
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/fo.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..d9220201
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/fr-ca.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..2ecfabe8
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/fr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..5ee15528
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/gl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..6ad6a358
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/gu.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..e3e9d044
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/he.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..f5317a97
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/hi.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..d9b47761
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/hr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..8a23cd90
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/hu.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..4b54a87f
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/id.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..cb5d8a96
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/is.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..602dd30e
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/it.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..131cadf8
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ja.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..9398fcb9
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ka.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..5e29edca
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/km.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..f8dbc304
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ko.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..9da10a07
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ku.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..1927f68e
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/lt.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..44271af9
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/lv.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..6540c9cc
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/mk.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'contextmenu', 'mk', {
6 options: 'Context Menu Options' // MISSING
7} );
diff --git a/sources/plugins/contextmenu/lang/mn.js b/sources/plugins/contextmenu/lang/mn.js
new file mode 100644
index 00000000..effdcdd2
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/mn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..f5c2f413
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ms.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..dcdcb514
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/nb.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..e8be1dcb
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/nl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..4818b9a6
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/no.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..4f40a9be
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/pl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..9a53a148
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/pt-br.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..9e4cb095
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/pt.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..5d58b996
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ro.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..e53098a2
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ru.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..96687455
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/si.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..81bdfc46
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/sk.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..a9b96c13
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/sl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..95bd4564
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/sq.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..42dac9f1
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/sr-latn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..a3f61a8d
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/sr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..2f141586
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/sv.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..9c51d1c9
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/th.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..adc7c037
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/tr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..992e8938
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/tt.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..05926920
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/ug.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..cda18f62
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/uk.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..79c6cd65
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/vi.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..ace5a341
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/zh-cn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..db18ee53
--- /dev/null
+++ b/sources/plugins/contextmenu/lang/zh.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.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 00000000..111e1383
--- /dev/null
+++ b/sources/plugins/contextmenu/plugin.js
@@ -0,0 +1,159 @@
1/**
2 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6CKEDITOR.plugins.add( 'contextmenu', {
7 requires: 'menu',
8
9 // jscs:disable maximumLineLength
10 lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,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 */