aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/elementspath
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/elementspath')
-rw-r--r--sources/plugins/elementspath/lang/af.js8
-rw-r--r--sources/plugins/elementspath/lang/ar.js8
-rw-r--r--sources/plugins/elementspath/lang/bg.js8
-rw-r--r--sources/plugins/elementspath/lang/bn.js8
-rw-r--r--sources/plugins/elementspath/lang/bs.js8
-rw-r--r--sources/plugins/elementspath/lang/ca.js8
-rw-r--r--sources/plugins/elementspath/lang/cs.js8
-rw-r--r--sources/plugins/elementspath/lang/cy.js8
-rw-r--r--sources/plugins/elementspath/lang/da.js8
-rw-r--r--sources/plugins/elementspath/lang/de-ch.js8
-rw-r--r--sources/plugins/elementspath/lang/de.js8
-rw-r--r--sources/plugins/elementspath/lang/el.js8
-rw-r--r--sources/plugins/elementspath/lang/en-au.js8
-rw-r--r--sources/plugins/elementspath/lang/en-ca.js8
-rw-r--r--sources/plugins/elementspath/lang/en-gb.js8
-rw-r--r--sources/plugins/elementspath/lang/en.js8
-rw-r--r--sources/plugins/elementspath/lang/eo.js8
-rw-r--r--sources/plugins/elementspath/lang/es.js8
-rw-r--r--sources/plugins/elementspath/lang/et.js8
-rw-r--r--sources/plugins/elementspath/lang/eu.js8
-rw-r--r--sources/plugins/elementspath/lang/fa.js8
-rw-r--r--sources/plugins/elementspath/lang/fi.js8
-rw-r--r--sources/plugins/elementspath/lang/fo.js8
-rw-r--r--sources/plugins/elementspath/lang/fr-ca.js8
-rw-r--r--sources/plugins/elementspath/lang/fr.js8
-rw-r--r--sources/plugins/elementspath/lang/gl.js8
-rw-r--r--sources/plugins/elementspath/lang/gu.js8
-rw-r--r--sources/plugins/elementspath/lang/he.js8
-rw-r--r--sources/plugins/elementspath/lang/hi.js8
-rw-r--r--sources/plugins/elementspath/lang/hr.js8
-rw-r--r--sources/plugins/elementspath/lang/hu.js8
-rw-r--r--sources/plugins/elementspath/lang/is.js8
-rw-r--r--sources/plugins/elementspath/lang/it.js8
-rw-r--r--sources/plugins/elementspath/lang/ja.js8
-rw-r--r--sources/plugins/elementspath/lang/ka.js8
-rw-r--r--sources/plugins/elementspath/lang/km.js8
-rw-r--r--sources/plugins/elementspath/lang/ko.js8
-rw-r--r--sources/plugins/elementspath/lang/ku.js8
-rw-r--r--sources/plugins/elementspath/lang/lt.js8
-rw-r--r--sources/plugins/elementspath/lang/lv.js8
-rw-r--r--sources/plugins/elementspath/lang/mk.js8
-rw-r--r--sources/plugins/elementspath/lang/mn.js8
-rw-r--r--sources/plugins/elementspath/lang/ms.js8
-rw-r--r--sources/plugins/elementspath/lang/nb.js8
-rw-r--r--sources/plugins/elementspath/lang/nl.js8
-rw-r--r--sources/plugins/elementspath/lang/no.js8
-rw-r--r--sources/plugins/elementspath/lang/pl.js8
-rw-r--r--sources/plugins/elementspath/lang/pt-br.js8
-rw-r--r--sources/plugins/elementspath/lang/pt.js8
-rw-r--r--sources/plugins/elementspath/lang/ro.js8
-rw-r--r--sources/plugins/elementspath/lang/ru.js8
-rw-r--r--sources/plugins/elementspath/lang/si.js8
-rw-r--r--sources/plugins/elementspath/lang/sk.js8
-rw-r--r--sources/plugins/elementspath/lang/sl.js8
-rw-r--r--sources/plugins/elementspath/lang/sq.js8
-rw-r--r--sources/plugins/elementspath/lang/sr-latn.js8
-rw-r--r--sources/plugins/elementspath/lang/sr.js8
-rw-r--r--sources/plugins/elementspath/lang/sv.js8
-rw-r--r--sources/plugins/elementspath/lang/th.js8
-rw-r--r--sources/plugins/elementspath/lang/tr.js8
-rw-r--r--sources/plugins/elementspath/lang/tt.js8
-rw-r--r--sources/plugins/elementspath/lang/ug.js8
-rw-r--r--sources/plugins/elementspath/lang/uk.js8
-rw-r--r--sources/plugins/elementspath/lang/vi.js8
-rw-r--r--sources/plugins/elementspath/lang/zh-cn.js8
-rw-r--r--sources/plugins/elementspath/lang/zh.js8
-rw-r--r--sources/plugins/elementspath/plugin.js235
67 files changed, 763 insertions, 0 deletions
diff --git a/sources/plugins/elementspath/lang/af.js b/sources/plugins/elementspath/lang/af.js
new file mode 100644
index 0000000..7d83e85
--- /dev/null
+++ b/sources/plugins/elementspath/lang/af.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'af', {
6 eleLabel: 'Elemente-pad',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/ar.js b/sources/plugins/elementspath/lang/ar.js
new file mode 100644
index 0000000..f00047c
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ar.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ar', {
6 eleLabel: 'مسار العنصر',
7 eleTitle: 'عنصر 1%'
8} );
diff --git a/sources/plugins/elementspath/lang/bg.js b/sources/plugins/elementspath/lang/bg.js
new file mode 100644
index 0000000..5631407
--- /dev/null
+++ b/sources/plugins/elementspath/lang/bg.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'bg', {
6 eleLabel: 'Път за елементите',
7 eleTitle: '%1 елемент'
8} );
diff --git a/sources/plugins/elementspath/lang/bn.js b/sources/plugins/elementspath/lang/bn.js
new file mode 100644
index 0000000..a332dca
--- /dev/null
+++ b/sources/plugins/elementspath/lang/bn.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'bn', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/bs.js b/sources/plugins/elementspath/lang/bs.js
new file mode 100644
index 0000000..6fc622a
--- /dev/null
+++ b/sources/plugins/elementspath/lang/bs.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'bs', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/ca.js b/sources/plugins/elementspath/lang/ca.js
new file mode 100644
index 0000000..4f964cf
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ca.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ca', {
6 eleLabel: 'Ruta dels elements',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/cs.js b/sources/plugins/elementspath/lang/cs.js
new file mode 100644
index 0000000..da06354
--- /dev/null
+++ b/sources/plugins/elementspath/lang/cs.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'cs', {
6 eleLabel: 'Cesta objektu',
7 eleTitle: '%1 objekt'
8} );
diff --git a/sources/plugins/elementspath/lang/cy.js b/sources/plugins/elementspath/lang/cy.js
new file mode 100644
index 0000000..05f5885
--- /dev/null
+++ b/sources/plugins/elementspath/lang/cy.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'cy', {
6 eleLabel: 'Llwybr elfennau',
7 eleTitle: 'Elfen %1'
8} );
diff --git a/sources/plugins/elementspath/lang/da.js b/sources/plugins/elementspath/lang/da.js
new file mode 100644
index 0000000..8c68da7
--- /dev/null
+++ b/sources/plugins/elementspath/lang/da.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'da', {
6 eleLabel: 'Sti på element',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/de-ch.js b/sources/plugins/elementspath/lang/de-ch.js
new file mode 100644
index 0000000..dc440b1
--- /dev/null
+++ b/sources/plugins/elementspath/lang/de-ch.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'de-ch', {
6 eleLabel: 'Elementepfad',
7 eleTitle: '%1 Element'
8} );
diff --git a/sources/plugins/elementspath/lang/de.js b/sources/plugins/elementspath/lang/de.js
new file mode 100644
index 0000000..0c898ef
--- /dev/null
+++ b/sources/plugins/elementspath/lang/de.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'de', {
6 eleLabel: 'Elementepfad',
7 eleTitle: '%1 Element'
8} );
diff --git a/sources/plugins/elementspath/lang/el.js b/sources/plugins/elementspath/lang/el.js
new file mode 100644
index 0000000..5106bd8
--- /dev/null
+++ b/sources/plugins/elementspath/lang/el.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'el', {
6 eleLabel: 'Διαδρομή Στοιχείων',
7 eleTitle: 'Στοιχείο %1'
8} );
diff --git a/sources/plugins/elementspath/lang/en-au.js b/sources/plugins/elementspath/lang/en-au.js
new file mode 100644
index 0000000..fc9a3aa
--- /dev/null
+++ b/sources/plugins/elementspath/lang/en-au.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'en-au', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/en-ca.js b/sources/plugins/elementspath/lang/en-ca.js
new file mode 100644
index 0000000..894d985
--- /dev/null
+++ b/sources/plugins/elementspath/lang/en-ca.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'en-ca', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/en-gb.js b/sources/plugins/elementspath/lang/en-gb.js
new file mode 100644
index 0000000..f172fc0
--- /dev/null
+++ b/sources/plugins/elementspath/lang/en-gb.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'en-gb', {
6 eleLabel: 'Elements path',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/en.js b/sources/plugins/elementspath/lang/en.js
new file mode 100644
index 0000000..135c895
--- /dev/null
+++ b/sources/plugins/elementspath/lang/en.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'en', {
6 eleLabel: 'Elements path',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/eo.js b/sources/plugins/elementspath/lang/eo.js
new file mode 100644
index 0000000..5df75e9
--- /dev/null
+++ b/sources/plugins/elementspath/lang/eo.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'eo', {
6 eleLabel: 'Vojo al Elementoj',
7 eleTitle: '%1 elementoj'
8} );
diff --git a/sources/plugins/elementspath/lang/es.js b/sources/plugins/elementspath/lang/es.js
new file mode 100644
index 0000000..3953de4
--- /dev/null
+++ b/sources/plugins/elementspath/lang/es.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'es', {
6 eleLabel: 'Ruta de los elementos',
7 eleTitle: '%1 elemento'
8} );
diff --git a/sources/plugins/elementspath/lang/et.js b/sources/plugins/elementspath/lang/et.js
new file mode 100644
index 0000000..be7f786
--- /dev/null
+++ b/sources/plugins/elementspath/lang/et.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'et', {
6 eleLabel: 'Elementide asukoht',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/eu.js b/sources/plugins/elementspath/lang/eu.js
new file mode 100644
index 0000000..06a7041
--- /dev/null
+++ b/sources/plugins/elementspath/lang/eu.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'eu', {
6 eleLabel: 'Elementuen bidea',
7 eleTitle: '%1 elementua'
8} );
diff --git a/sources/plugins/elementspath/lang/fa.js b/sources/plugins/elementspath/lang/fa.js
new file mode 100644
index 0000000..72b4b11
--- /dev/null
+++ b/sources/plugins/elementspath/lang/fa.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'fa', {
6 eleLabel: 'مسیر عناصر',
7 eleTitle: '%1 عنصر'
8} );
diff --git a/sources/plugins/elementspath/lang/fi.js b/sources/plugins/elementspath/lang/fi.js
new file mode 100644
index 0000000..5a175b5
--- /dev/null
+++ b/sources/plugins/elementspath/lang/fi.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'fi', {
6 eleLabel: 'Elementin polku',
7 eleTitle: '%1 elementti'
8} );
diff --git a/sources/plugins/elementspath/lang/fo.js b/sources/plugins/elementspath/lang/fo.js
new file mode 100644
index 0000000..a9feb77
--- /dev/null
+++ b/sources/plugins/elementspath/lang/fo.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'fo', {
6 eleLabel: 'Slóð til elementir',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/fr-ca.js b/sources/plugins/elementspath/lang/fr-ca.js
new file mode 100644
index 0000000..0f3d209
--- /dev/null
+++ b/sources/plugins/elementspath/lang/fr-ca.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'fr-ca', {
6 eleLabel: 'Chemin d\'éléments',
7 eleTitle: 'element %1'
8} );
diff --git a/sources/plugins/elementspath/lang/fr.js b/sources/plugins/elementspath/lang/fr.js
new file mode 100644
index 0000000..8cd9b1a
--- /dev/null
+++ b/sources/plugins/elementspath/lang/fr.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'fr', {
6 eleLabel: 'Elements path',
7 eleTitle: '%1 éléments'
8} );
diff --git a/sources/plugins/elementspath/lang/gl.js b/sources/plugins/elementspath/lang/gl.js
new file mode 100644
index 0000000..827325b
--- /dev/null
+++ b/sources/plugins/elementspath/lang/gl.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'gl', {
6 eleLabel: 'Ruta dos elementos',
7 eleTitle: 'Elemento %1'
8} );
diff --git a/sources/plugins/elementspath/lang/gu.js b/sources/plugins/elementspath/lang/gu.js
new file mode 100644
index 0000000..ffdfb3d
--- /dev/null
+++ b/sources/plugins/elementspath/lang/gu.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'gu', {
6 eleLabel: 'એલીમેન્ટ્સ નો ',
7 eleTitle: 'એલીમેન્ટ %1'
8} );
diff --git a/sources/plugins/elementspath/lang/he.js b/sources/plugins/elementspath/lang/he.js
new file mode 100644
index 0000000..19ec76e
--- /dev/null
+++ b/sources/plugins/elementspath/lang/he.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'he', {
6 eleLabel: 'עץ האלמנטים',
7 eleTitle: '%1 אלמנט'
8} );
diff --git a/sources/plugins/elementspath/lang/hi.js b/sources/plugins/elementspath/lang/hi.js
new file mode 100644
index 0000000..6f89d6d
--- /dev/null
+++ b/sources/plugins/elementspath/lang/hi.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'hi', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/hr.js b/sources/plugins/elementspath/lang/hr.js
new file mode 100644
index 0000000..6d07ae5
--- /dev/null
+++ b/sources/plugins/elementspath/lang/hr.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'hr', {
6 eleLabel: 'Putanja elemenata',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/hu.js b/sources/plugins/elementspath/lang/hu.js
new file mode 100644
index 0000000..62152ce
--- /dev/null
+++ b/sources/plugins/elementspath/lang/hu.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'hu', {
6 eleLabel: 'Elem utak',
7 eleTitle: '%1 elem'
8} );
diff --git a/sources/plugins/elementspath/lang/is.js b/sources/plugins/elementspath/lang/is.js
new file mode 100644
index 0000000..ef8abad
--- /dev/null
+++ b/sources/plugins/elementspath/lang/is.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'is', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/it.js b/sources/plugins/elementspath/lang/it.js
new file mode 100644
index 0000000..966ae05
--- /dev/null
+++ b/sources/plugins/elementspath/lang/it.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'it', {
6 eleLabel: 'Percorso degli elementi',
7 eleTitle: '%1 elemento'
8} );
diff --git a/sources/plugins/elementspath/lang/ja.js b/sources/plugins/elementspath/lang/ja.js
new file mode 100644
index 0000000..60fc4cd
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ja.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ja', {
6 eleLabel: '要素パス',
7 eleTitle: '%1 要素'
8} );
diff --git a/sources/plugins/elementspath/lang/ka.js b/sources/plugins/elementspath/lang/ka.js
new file mode 100644
index 0000000..901f95f
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ka.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ka', {
6 eleLabel: 'ელემეტის გზა',
7 eleTitle: '%1 ელემენტი'
8} );
diff --git a/sources/plugins/elementspath/lang/km.js b/sources/plugins/elementspath/lang/km.js
new file mode 100644
index 0000000..d8cf78c
--- /dev/null
+++ b/sources/plugins/elementspath/lang/km.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'km', {
6 eleLabel: 'ទីតាំង​ធាតុ',
7 eleTitle: 'ធាតុ %1'
8} );
diff --git a/sources/plugins/elementspath/lang/ko.js b/sources/plugins/elementspath/lang/ko.js
new file mode 100644
index 0000000..77d399f
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ko.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ko', {
6 eleLabel: '요소 경로',
7 eleTitle: '%1 요소'
8} );
diff --git a/sources/plugins/elementspath/lang/ku.js b/sources/plugins/elementspath/lang/ku.js
new file mode 100644
index 0000000..7461fdf
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ku.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ku', {
6 eleLabel: 'ڕێڕەوی توخمەکان',
7 eleTitle: '%1 توخم'
8} );
diff --git a/sources/plugins/elementspath/lang/lt.js b/sources/plugins/elementspath/lang/lt.js
new file mode 100644
index 0000000..266a8e6
--- /dev/null
+++ b/sources/plugins/elementspath/lang/lt.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'lt', {
6 eleLabel: 'Elemento kelias',
7 eleTitle: '%1 elementas'
8} );
diff --git a/sources/plugins/elementspath/lang/lv.js b/sources/plugins/elementspath/lang/lv.js
new file mode 100644
index 0000000..e4b5681
--- /dev/null
+++ b/sources/plugins/elementspath/lang/lv.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'lv', {
6 eleLabel: 'Elementa ceļš',
7 eleTitle: '%1 elements'
8} );
diff --git a/sources/plugins/elementspath/lang/mk.js b/sources/plugins/elementspath/lang/mk.js
new file mode 100644
index 0000000..6bf992b
--- /dev/null
+++ b/sources/plugins/elementspath/lang/mk.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'mk', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/mn.js b/sources/plugins/elementspath/lang/mn.js
new file mode 100644
index 0000000..95ff819
--- /dev/null
+++ b/sources/plugins/elementspath/lang/mn.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'mn', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/ms.js b/sources/plugins/elementspath/lang/ms.js
new file mode 100644
index 0000000..9220621
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ms.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ms', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/nb.js b/sources/plugins/elementspath/lang/nb.js
new file mode 100644
index 0000000..6972c02
--- /dev/null
+++ b/sources/plugins/elementspath/lang/nb.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'nb', {
6 eleLabel: 'Element-sti',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/nl.js b/sources/plugins/elementspath/lang/nl.js
new file mode 100644
index 0000000..559d3b6
--- /dev/null
+++ b/sources/plugins/elementspath/lang/nl.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'nl', {
6 eleLabel: 'Elementenpad',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/no.js b/sources/plugins/elementspath/lang/no.js
new file mode 100644
index 0000000..a3e2a84
--- /dev/null
+++ b/sources/plugins/elementspath/lang/no.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'no', {
6 eleLabel: 'Element-sti',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/pl.js b/sources/plugins/elementspath/lang/pl.js
new file mode 100644
index 0000000..f477bd1
--- /dev/null
+++ b/sources/plugins/elementspath/lang/pl.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'pl', {
6 eleLabel: 'Ścieżka elementów',
7 eleTitle: 'element %1'
8} );
diff --git a/sources/plugins/elementspath/lang/pt-br.js b/sources/plugins/elementspath/lang/pt-br.js
new file mode 100644
index 0000000..0cccfea
--- /dev/null
+++ b/sources/plugins/elementspath/lang/pt-br.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'pt-br', {
6 eleLabel: 'Caminho dos Elementos',
7 eleTitle: 'Elemento %1'
8} );
diff --git a/sources/plugins/elementspath/lang/pt.js b/sources/plugins/elementspath/lang/pt.js
new file mode 100644
index 0000000..6b79d0f
--- /dev/null
+++ b/sources/plugins/elementspath/lang/pt.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'pt', {
6 eleLabel: 'Caminho dos elementos',
7 eleTitle: 'Elemento %1'
8} );
diff --git a/sources/plugins/elementspath/lang/ro.js b/sources/plugins/elementspath/lang/ro.js
new file mode 100644
index 0000000..c11f4de
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ro.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ro', {
6 eleLabel: 'Calea elementelor',
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/ru.js b/sources/plugins/elementspath/lang/ru.js
new file mode 100644
index 0000000..3e1bd71
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ru.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ru', {
6 eleLabel: 'Путь элементов',
7 eleTitle: 'Элемент %1'
8} );
diff --git a/sources/plugins/elementspath/lang/si.js b/sources/plugins/elementspath/lang/si.js
new file mode 100644
index 0000000..8a5c180
--- /dev/null
+++ b/sources/plugins/elementspath/lang/si.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'si', {
6 eleLabel: 'මුලද්‍රව්‍ය මාර්ගය',
7 eleTitle: '%1 මුල'
8} );
diff --git a/sources/plugins/elementspath/lang/sk.js b/sources/plugins/elementspath/lang/sk.js
new file mode 100644
index 0000000..f4b82f6
--- /dev/null
+++ b/sources/plugins/elementspath/lang/sk.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'sk', {
6 eleLabel: 'Cesta prvkov',
7 eleTitle: '%1 prvok'
8} );
diff --git a/sources/plugins/elementspath/lang/sl.js b/sources/plugins/elementspath/lang/sl.js
new file mode 100644
index 0000000..8888344
--- /dev/null
+++ b/sources/plugins/elementspath/lang/sl.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'sl', {
6 eleLabel: 'Pot elementov',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/sq.js b/sources/plugins/elementspath/lang/sq.js
new file mode 100644
index 0000000..ad0faf3
--- /dev/null
+++ b/sources/plugins/elementspath/lang/sq.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'sq', {
6 eleLabel: 'Rruga e elementeve',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/sr-latn.js b/sources/plugins/elementspath/lang/sr-latn.js
new file mode 100644
index 0000000..4558023
--- /dev/null
+++ b/sources/plugins/elementspath/lang/sr-latn.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'sr-latn', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/sr.js b/sources/plugins/elementspath/lang/sr.js
new file mode 100644
index 0000000..b27edf6
--- /dev/null
+++ b/sources/plugins/elementspath/lang/sr.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'sr', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/sv.js b/sources/plugins/elementspath/lang/sv.js
new file mode 100644
index 0000000..bfe4fde
--- /dev/null
+++ b/sources/plugins/elementspath/lang/sv.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'sv', {
6 eleLabel: 'Elementets sökväg',
7 eleTitle: '%1 element'
8} );
diff --git a/sources/plugins/elementspath/lang/th.js b/sources/plugins/elementspath/lang/th.js
new file mode 100644
index 0000000..a57021b
--- /dev/null
+++ b/sources/plugins/elementspath/lang/th.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'th', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 element' // MISSING
8} );
diff --git a/sources/plugins/elementspath/lang/tr.js b/sources/plugins/elementspath/lang/tr.js
new file mode 100644
index 0000000..d0c48bd
--- /dev/null
+++ b/sources/plugins/elementspath/lang/tr.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'tr', {
6 eleLabel: 'Elementlerin yolu',
7 eleTitle: '%1 elementi'
8} );
diff --git a/sources/plugins/elementspath/lang/tt.js b/sources/plugins/elementspath/lang/tt.js
new file mode 100644
index 0000000..ccc908b
--- /dev/null
+++ b/sources/plugins/elementspath/lang/tt.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'tt', {
6 eleLabel: 'Elements path', // MISSING
7 eleTitle: '%1 элемент'
8} );
diff --git a/sources/plugins/elementspath/lang/ug.js b/sources/plugins/elementspath/lang/ug.js
new file mode 100644
index 0000000..9d1b2f1
--- /dev/null
+++ b/sources/plugins/elementspath/lang/ug.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'ug', {
6 eleLabel: 'ئېلېمېنت يولى',
7 eleTitle: '%1 ئېلېمېنت'
8} );
diff --git a/sources/plugins/elementspath/lang/uk.js b/sources/plugins/elementspath/lang/uk.js
new file mode 100644
index 0000000..b0eb692
--- /dev/null
+++ b/sources/plugins/elementspath/lang/uk.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'uk', {
6 eleLabel: 'Шлях',
7 eleTitle: '%1 елемент'
8} );
diff --git a/sources/plugins/elementspath/lang/vi.js b/sources/plugins/elementspath/lang/vi.js
new file mode 100644
index 0000000..d3a938b
--- /dev/null
+++ b/sources/plugins/elementspath/lang/vi.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'vi', {
6 eleLabel: 'Nhãn thành phần',
7 eleTitle: '%1 thành phần'
8} );
diff --git a/sources/plugins/elementspath/lang/zh-cn.js b/sources/plugins/elementspath/lang/zh-cn.js
new file mode 100644
index 0000000..4e7c836
--- /dev/null
+++ b/sources/plugins/elementspath/lang/zh-cn.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'zh-cn', {
6 eleLabel: '元素路径',
7 eleTitle: '%1 元素'
8} );
diff --git a/sources/plugins/elementspath/lang/zh.js b/sources/plugins/elementspath/lang/zh.js
new file mode 100644
index 0000000..4a968da
--- /dev/null
+++ b/sources/plugins/elementspath/lang/zh.js
@@ -0,0 +1,8 @@
1/*
2Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'elementspath', 'zh', {
6 eleLabel: '元件路徑',
7 eleTitle: '%1 個元件'
8} );
diff --git a/sources/plugins/elementspath/plugin.js b/sources/plugins/elementspath/plugin.js
new file mode 100644
index 0000000..fd02d70
--- /dev/null
+++ b/sources/plugins/elementspath/plugin.js
@@ -0,0 +1,235 @@
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/**
7 * @fileOverview The "elementspath" plugin. It shows all elements in the DOM
8 * parent tree relative to the current selection in the editing area.
9 */
10
11( function() {
12 var commands = {
13 toolbarFocus: {
14 editorFocus: false,
15 readOnly: 1,
16 exec: function( editor ) {
17 var idBase = editor._.elementsPath.idBase;
18 var element = CKEDITOR.document.getById( idBase + '0' );
19
20 // Make the first button focus accessible for IE. (#3417)
21 // Adobe AIR instead need while of delay.
22 element && element.focus( CKEDITOR.env.ie || CKEDITOR.env.air );
23 }
24 }
25 };
26
27 var emptyHtml = '<span class="cke_path_empty">&nbsp;</span>';
28
29 var extra = '';
30
31 // Some browsers don't cancel key events in the keydown but in the
32 // keypress.
33 // TODO: Check if really needed.
34 if ( CKEDITOR.env.gecko && CKEDITOR.env.mac )
35 extra += ' onkeypress="return false;"';
36
37 // With Firefox, we need to force the button to redraw, otherwise it
38 // will remain in the focus state.
39 if ( CKEDITOR.env.gecko )
40 extra += ' onblur="this.style.cssText = this.style.cssText;"';
41
42 var pathItemTpl = CKEDITOR.addTemplate( 'pathItem', '<a' +
43 ' id="{id}"' +
44 ' href="{jsTitle}"' +
45 ' tabindex="-1"' +
46 ' class="cke_path_item"' +
47 ' title="{label}"' +
48 extra +
49 ' hidefocus="true" ' +
50 ' onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );"' +
51 ' onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;"' +
52 ' role="button" aria-label="{label}">' +
53 '{text}' +
54 '</a>' );
55
56 CKEDITOR.plugins.add( 'elementspath', {
57 // jscs:disable maximumLineLength
58 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,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%
59 // jscs:enable maximumLineLength
60 init: function( editor ) {
61 editor._.elementsPath = {
62 idBase: 'cke_elementspath_' + CKEDITOR.tools.getNextNumber() + '_',
63 filters: []
64 };
65
66 editor.on( 'uiSpace', function( event ) {
67 if ( event.data.space == 'bottom' )
68 initElementsPath( editor, event.data );
69 } );
70 }
71 } );
72
73 function initElementsPath( editor, bottomSpaceData ) {
74 var spaceId = editor.ui.spaceId( 'path' ),
75 spaceElement,
76 getSpaceElement = function() {
77 if ( !spaceElement )
78 spaceElement = CKEDITOR.document.getById( spaceId );
79 return spaceElement;
80 },
81 elementsPath = editor._.elementsPath,
82 idBase = elementsPath.idBase;
83
84 bottomSpaceData.html += '<span id="' + spaceId + '_label" class="cke_voice_label">' + editor.lang.elementspath.eleLabel + '</span>' +
85 '<span id="' + spaceId + '" class="cke_path" role="group" aria-labelledby="' + spaceId + '_label">' + emptyHtml + '</span>';
86
87 // Register the ui element to the focus manager.
88 editor.on( 'uiReady', function() {
89 var element = editor.ui.space( 'path' );
90 element && editor.focusManager.add( element, 1 );
91 } );
92
93 function onClick( elementIndex ) {
94 var element = elementsPath.list[ elementIndex ];
95 if ( element.equals( editor.editable() ) || element.getAttribute( 'contenteditable' ) == 'true' ) {
96 var range = editor.createRange();
97 range.selectNodeContents( element );
98 range.select();
99 } else {
100 editor.getSelection().selectElement( element );
101 }
102
103 // It is important to focus() *after* the above selection
104 // manipulation, otherwise Firefox will have troubles. #10119
105 editor.focus();
106 }
107
108 elementsPath.onClick = onClick;
109
110 var onClickHanlder = CKEDITOR.tools.addFunction( onClick ),
111 onKeyDownHandler = CKEDITOR.tools.addFunction( function( elementIndex, ev ) {
112 var idBase = elementsPath.idBase,
113 element;
114
115 ev = new CKEDITOR.dom.event( ev );
116
117 var rtl = editor.lang.dir == 'rtl';
118 switch ( ev.getKeystroke() ) {
119 case rtl ? 39 : 37: // LEFT-ARROW
120 case 9: // TAB
121 element = CKEDITOR.document.getById( idBase + ( elementIndex + 1 ) );
122 if ( !element )
123 element = CKEDITOR.document.getById( idBase + '0' );
124 element.focus();
125 return false;
126
127 case rtl ? 37 : 39: // RIGHT-ARROW
128 case CKEDITOR.SHIFT + 9: // SHIFT + TAB
129 element = CKEDITOR.document.getById( idBase + ( elementIndex - 1 ) );
130 if ( !element )
131 element = CKEDITOR.document.getById( idBase + ( elementsPath.list.length - 1 ) );
132 element.focus();
133 return false;
134
135 case 27: // ESC
136 editor.focus();
137 return false;
138
139 case 13: // ENTER // Opera
140 case 32: // SPACE
141 onClick( elementIndex );
142 return false;
143 }
144 return true;
145 } );
146
147 editor.on( 'selectionChange', function() {
148 var html = [],
149 elementsList = elementsPath.list = [],
150 namesList = [],
151 filters = elementsPath.filters,
152 isContentEditable = true,
153
154 // Use elementPath to consider children of editable only (#11124).
155 elementsChain = editor.elementPath().elements,
156 name;
157
158 // Starts iteration from body element, skipping html.
159 for ( var j = elementsChain.length; j--; ) {
160 var element = elementsChain[ j ],
161 ignore = 0;
162
163 if ( element.data( 'cke-display-name' ) )
164 name = element.data( 'cke-display-name' );
165 else if ( element.data( 'cke-real-element-type' ) )
166 name = element.data( 'cke-real-element-type' );
167 else
168 name = element.getName();
169
170 isContentEditable = element.hasAttribute( 'contenteditable' ) ?
171 element.getAttribute( 'contenteditable' ) == 'true' : isContentEditable;
172
173 // If elem is non-contenteditable, and it's not specifying contenteditable
174 // attribute - then elem should be ignored.
175 if ( !isContentEditable && !element.hasAttribute( 'contenteditable' ) )
176 ignore = 1;
177
178 for ( var i = 0; i < filters.length; i++ ) {
179 var ret = filters[ i ]( element, name );
180 if ( ret === false ) {
181 ignore = 1;
182 break;
183 }
184 name = ret || name;
185 }
186
187 if ( !ignore ) {
188 elementsList.unshift( element );
189 namesList.unshift( name );
190 }
191 }
192
193 for ( var iterationLimit = elementsList.length, index = 0; index < iterationLimit; index++ ) {
194 name = namesList[ index ];
195 var label = editor.lang.elementspath.eleTitle.replace( /%1/, name ),
196 item = pathItemTpl.output( {
197 id: idBase + index,
198 label: label,
199 text: name,
200 jsTitle: 'javascript:void(\'' + name + '\')', // jshint ignore:line
201 index: index,
202 keyDownFn: onKeyDownHandler,
203 clickFn: onClickHanlder
204 } );
205
206 html.unshift( item );
207 }
208
209 var space = getSpaceElement();
210 space.setHtml( html.join( '' ) + emptyHtml );
211 editor.fire( 'elementsPathUpdate', { space: space } );
212 } );
213
214 function empty() {
215 spaceElement && spaceElement.setHtml( emptyHtml );
216 delete elementsPath.list;
217 }
218
219 editor.on( 'readOnly', empty );
220 editor.on( 'contentDomUnload', empty );
221
222 editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );
223 editor.setKeystroke( CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' );
224 }
225} )();
226
227/**
228 * Fired when the contents of the elementsPath are changed.
229 *
230 * @event elementsPathUpdate
231 * @member CKEDITOR.editor
232 * @param {CKEDITOR.editor} editor This editor instance.
233 * @param data
234 * @param {CKEDITOR.dom.element} data.space The elementsPath container.
235 */