From 3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 19 Feb 2016 23:38:52 +0100 Subject: Initial commit --- sources/plugins/elementspath/lang/af.js | 8 + sources/plugins/elementspath/lang/ar.js | 8 + sources/plugins/elementspath/lang/bg.js | 8 + sources/plugins/elementspath/lang/bn.js | 8 + sources/plugins/elementspath/lang/bs.js | 8 + sources/plugins/elementspath/lang/ca.js | 8 + sources/plugins/elementspath/lang/cs.js | 8 + sources/plugins/elementspath/lang/cy.js | 8 + sources/plugins/elementspath/lang/da.js | 8 + sources/plugins/elementspath/lang/de-ch.js | 8 + sources/plugins/elementspath/lang/de.js | 8 + sources/plugins/elementspath/lang/el.js | 8 + sources/plugins/elementspath/lang/en-au.js | 8 + sources/plugins/elementspath/lang/en-ca.js | 8 + sources/plugins/elementspath/lang/en-gb.js | 8 + sources/plugins/elementspath/lang/en.js | 8 + sources/plugins/elementspath/lang/eo.js | 8 + sources/plugins/elementspath/lang/es.js | 8 + sources/plugins/elementspath/lang/et.js | 8 + sources/plugins/elementspath/lang/eu.js | 8 + sources/plugins/elementspath/lang/fa.js | 8 + sources/plugins/elementspath/lang/fi.js | 8 + sources/plugins/elementspath/lang/fo.js | 8 + sources/plugins/elementspath/lang/fr-ca.js | 8 + sources/plugins/elementspath/lang/fr.js | 8 + sources/plugins/elementspath/lang/gl.js | 8 + sources/plugins/elementspath/lang/gu.js | 8 + sources/plugins/elementspath/lang/he.js | 8 + sources/plugins/elementspath/lang/hi.js | 8 + sources/plugins/elementspath/lang/hr.js | 8 + sources/plugins/elementspath/lang/hu.js | 8 + sources/plugins/elementspath/lang/is.js | 8 + sources/plugins/elementspath/lang/it.js | 8 + sources/plugins/elementspath/lang/ja.js | 8 + sources/plugins/elementspath/lang/ka.js | 8 + sources/plugins/elementspath/lang/km.js | 8 + sources/plugins/elementspath/lang/ko.js | 8 + sources/plugins/elementspath/lang/ku.js | 8 + sources/plugins/elementspath/lang/lt.js | 8 + sources/plugins/elementspath/lang/lv.js | 8 + sources/plugins/elementspath/lang/mk.js | 8 + sources/plugins/elementspath/lang/mn.js | 8 + sources/plugins/elementspath/lang/ms.js | 8 + sources/plugins/elementspath/lang/nb.js | 8 + sources/plugins/elementspath/lang/nl.js | 8 + sources/plugins/elementspath/lang/no.js | 8 + sources/plugins/elementspath/lang/pl.js | 8 + sources/plugins/elementspath/lang/pt-br.js | 8 + sources/plugins/elementspath/lang/pt.js | 8 + sources/plugins/elementspath/lang/ro.js | 8 + sources/plugins/elementspath/lang/ru.js | 8 + sources/plugins/elementspath/lang/si.js | 8 + sources/plugins/elementspath/lang/sk.js | 8 + sources/plugins/elementspath/lang/sl.js | 8 + sources/plugins/elementspath/lang/sq.js | 8 + sources/plugins/elementspath/lang/sr-latn.js | 8 + sources/plugins/elementspath/lang/sr.js | 8 + sources/plugins/elementspath/lang/sv.js | 8 + sources/plugins/elementspath/lang/th.js | 8 + sources/plugins/elementspath/lang/tr.js | 8 + sources/plugins/elementspath/lang/tt.js | 8 + sources/plugins/elementspath/lang/ug.js | 8 + sources/plugins/elementspath/lang/uk.js | 8 + sources/plugins/elementspath/lang/vi.js | 8 + sources/plugins/elementspath/lang/zh-cn.js | 8 + sources/plugins/elementspath/lang/zh.js | 8 + sources/plugins/elementspath/plugin.js | 235 +++++++++++++++++++++++++++ 67 files changed, 763 insertions(+) create mode 100644 sources/plugins/elementspath/lang/af.js create mode 100644 sources/plugins/elementspath/lang/ar.js create mode 100644 sources/plugins/elementspath/lang/bg.js create mode 100644 sources/plugins/elementspath/lang/bn.js create mode 100644 sources/plugins/elementspath/lang/bs.js create mode 100644 sources/plugins/elementspath/lang/ca.js create mode 100644 sources/plugins/elementspath/lang/cs.js create mode 100644 sources/plugins/elementspath/lang/cy.js create mode 100644 sources/plugins/elementspath/lang/da.js create mode 100644 sources/plugins/elementspath/lang/de-ch.js create mode 100644 sources/plugins/elementspath/lang/de.js create mode 100644 sources/plugins/elementspath/lang/el.js create mode 100644 sources/plugins/elementspath/lang/en-au.js create mode 100644 sources/plugins/elementspath/lang/en-ca.js create mode 100644 sources/plugins/elementspath/lang/en-gb.js create mode 100644 sources/plugins/elementspath/lang/en.js create mode 100644 sources/plugins/elementspath/lang/eo.js create mode 100644 sources/plugins/elementspath/lang/es.js create mode 100644 sources/plugins/elementspath/lang/et.js create mode 100644 sources/plugins/elementspath/lang/eu.js create mode 100644 sources/plugins/elementspath/lang/fa.js create mode 100644 sources/plugins/elementspath/lang/fi.js create mode 100644 sources/plugins/elementspath/lang/fo.js create mode 100644 sources/plugins/elementspath/lang/fr-ca.js create mode 100644 sources/plugins/elementspath/lang/fr.js create mode 100644 sources/plugins/elementspath/lang/gl.js create mode 100644 sources/plugins/elementspath/lang/gu.js create mode 100644 sources/plugins/elementspath/lang/he.js create mode 100644 sources/plugins/elementspath/lang/hi.js create mode 100644 sources/plugins/elementspath/lang/hr.js create mode 100644 sources/plugins/elementspath/lang/hu.js create mode 100644 sources/plugins/elementspath/lang/is.js create mode 100644 sources/plugins/elementspath/lang/it.js create mode 100644 sources/plugins/elementspath/lang/ja.js create mode 100644 sources/plugins/elementspath/lang/ka.js create mode 100644 sources/plugins/elementspath/lang/km.js create mode 100644 sources/plugins/elementspath/lang/ko.js create mode 100644 sources/plugins/elementspath/lang/ku.js create mode 100644 sources/plugins/elementspath/lang/lt.js create mode 100644 sources/plugins/elementspath/lang/lv.js create mode 100644 sources/plugins/elementspath/lang/mk.js create mode 100644 sources/plugins/elementspath/lang/mn.js create mode 100644 sources/plugins/elementspath/lang/ms.js create mode 100644 sources/plugins/elementspath/lang/nb.js create mode 100644 sources/plugins/elementspath/lang/nl.js create mode 100644 sources/plugins/elementspath/lang/no.js create mode 100644 sources/plugins/elementspath/lang/pl.js create mode 100644 sources/plugins/elementspath/lang/pt-br.js create mode 100644 sources/plugins/elementspath/lang/pt.js create mode 100644 sources/plugins/elementspath/lang/ro.js create mode 100644 sources/plugins/elementspath/lang/ru.js create mode 100644 sources/plugins/elementspath/lang/si.js create mode 100644 sources/plugins/elementspath/lang/sk.js create mode 100644 sources/plugins/elementspath/lang/sl.js create mode 100644 sources/plugins/elementspath/lang/sq.js create mode 100644 sources/plugins/elementspath/lang/sr-latn.js create mode 100644 sources/plugins/elementspath/lang/sr.js create mode 100644 sources/plugins/elementspath/lang/sv.js create mode 100644 sources/plugins/elementspath/lang/th.js create mode 100644 sources/plugins/elementspath/lang/tr.js create mode 100644 sources/plugins/elementspath/lang/tt.js create mode 100644 sources/plugins/elementspath/lang/ug.js create mode 100644 sources/plugins/elementspath/lang/uk.js create mode 100644 sources/plugins/elementspath/lang/vi.js create mode 100644 sources/plugins/elementspath/lang/zh-cn.js create mode 100644 sources/plugins/elementspath/lang/zh.js create mode 100644 sources/plugins/elementspath/plugin.js (limited to 'sources/plugins/elementspath') 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'af', { + eleLabel: 'Elemente-pad', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ar', { + eleLabel: 'مسار العنصر', + eleTitle: 'عنصر 1%' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'bg', { + eleLabel: 'Път за елементите', + eleTitle: '%1 елемент' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'bn', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'bs', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ca', { + eleLabel: 'Ruta dels elements', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'cs', { + eleLabel: 'Cesta objektu', + eleTitle: '%1 objekt' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'cy', { + eleLabel: 'Llwybr elfennau', + eleTitle: 'Elfen %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'da', { + eleLabel: 'Sti på element', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'de-ch', { + eleLabel: 'Elementepfad', + eleTitle: '%1 Element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'de', { + eleLabel: 'Elementepfad', + eleTitle: '%1 Element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'el', { + eleLabel: 'Διαδρομή Στοιχείων', + eleTitle: 'Στοιχείο %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'en-au', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'en-ca', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'en-gb', { + eleLabel: 'Elements path', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'en', { + eleLabel: 'Elements path', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'eo', { + eleLabel: 'Vojo al Elementoj', + eleTitle: '%1 elementoj' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'es', { + eleLabel: 'Ruta de los elementos', + eleTitle: '%1 elemento' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'et', { + eleLabel: 'Elementide asukoht', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'eu', { + eleLabel: 'Elementuen bidea', + eleTitle: '%1 elementua' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'fa', { + eleLabel: 'مسیر عناصر', + eleTitle: '%1 عنصر' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'fi', { + eleLabel: 'Elementin polku', + eleTitle: '%1 elementti' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'fo', { + eleLabel: 'Slóð til elementir', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'fr-ca', { + eleLabel: 'Chemin d\'éléments', + eleTitle: 'element %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'fr', { + eleLabel: 'Elements path', + eleTitle: '%1 éléments' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'gl', { + eleLabel: 'Ruta dos elementos', + eleTitle: 'Elemento %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'gu', { + eleLabel: 'એલીમેન્ટ્સ નો ', + eleTitle: 'એલીમેન્ટ %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'he', { + eleLabel: 'עץ האלמנטים', + eleTitle: '%1 אלמנט' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'hi', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'hr', { + eleLabel: 'Putanja elemenata', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'hu', { + eleLabel: 'Elem utak', + eleTitle: '%1 elem' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'is', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'it', { + eleLabel: 'Percorso degli elementi', + eleTitle: '%1 elemento' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ja', { + eleLabel: '要素パス', + eleTitle: '%1 要素' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ka', { + eleLabel: 'ელემეტის გზა', + eleTitle: '%1 ელემენტი' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'km', { + eleLabel: 'ទីតាំង​ធាតុ', + eleTitle: 'ធាតុ %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ko', { + eleLabel: '요소 경로', + eleTitle: '%1 요소' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ku', { + eleLabel: 'ڕێڕەوی توخمەکان', + eleTitle: '%1 توخم' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'lt', { + eleLabel: 'Elemento kelias', + eleTitle: '%1 elementas' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'lv', { + eleLabel: 'Elementa ceļš', + eleTitle: '%1 elements' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'mk', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'mn', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ms', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'nb', { + eleLabel: 'Element-sti', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'nl', { + eleLabel: 'Elementenpad', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'no', { + eleLabel: 'Element-sti', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'pl', { + eleLabel: 'Ścieżka elementów', + eleTitle: 'element %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'pt-br', { + eleLabel: 'Caminho dos Elementos', + eleTitle: 'Elemento %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'pt', { + eleLabel: 'Caminho dos elementos', + eleTitle: 'Elemento %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ro', { + eleLabel: 'Calea elementelor', + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ru', { + eleLabel: 'Путь элементов', + eleTitle: 'Элемент %1' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'si', { + eleLabel: 'මුලද්‍රව්‍ය මාර්ගය', + eleTitle: '%1 මුල' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'sk', { + eleLabel: 'Cesta prvkov', + eleTitle: '%1 prvok' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'sl', { + eleLabel: 'Pot elementov', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'sq', { + eleLabel: 'Rruga e elementeve', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'sr-latn', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'sr', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'sv', { + eleLabel: 'Elementets sökväg', + eleTitle: '%1 element' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'th', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 element' // MISSING +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'tr', { + eleLabel: 'Elementlerin yolu', + eleTitle: '%1 elementi' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'tt', { + eleLabel: 'Elements path', // MISSING + eleTitle: '%1 элемент' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'ug', { + eleLabel: 'ئېلېمېنت يولى', + eleTitle: '%1 ئېلېمېنت' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'uk', { + eleLabel: 'Шлях', + eleTitle: '%1 елемент' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'vi', { + eleLabel: 'Nhãn thành phần', + eleTitle: '%1 thành phần' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'zh-cn', { + eleLabel: '元素路径', + eleTitle: '%1 元素' +} ); 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 @@ +/* +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'elementspath', 'zh', { + eleLabel: '元件路徑', + eleTitle: '%1 個元件' +} ); 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 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview The "elementspath" plugin. It shows all elements in the DOM + * parent tree relative to the current selection in the editing area. + */ + +( function() { + var commands = { + toolbarFocus: { + editorFocus: false, + readOnly: 1, + exec: function( editor ) { + var idBase = editor._.elementsPath.idBase; + var element = CKEDITOR.document.getById( idBase + '0' ); + + // Make the first button focus accessible for IE. (#3417) + // Adobe AIR instead need while of delay. + element && element.focus( CKEDITOR.env.ie || CKEDITOR.env.air ); + } + } + }; + + var emptyHtml = ' '; + + var extra = ''; + + // Some browsers don't cancel key events in the keydown but in the + // keypress. + // TODO: Check if really needed. + if ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) + extra += ' onkeypress="return false;"'; + + // With Firefox, we need to force the button to redraw, otherwise it + // will remain in the focus state. + if ( CKEDITOR.env.gecko ) + extra += ' onblur="this.style.cssText = this.style.cssText;"'; + + var pathItemTpl = CKEDITOR.addTemplate( 'pathItem', '' + + '{text}' + + '' ); + + CKEDITOR.plugins.add( 'elementspath', { + // jscs:disable maximumLineLength + 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% + // jscs:enable maximumLineLength + init: function( editor ) { + editor._.elementsPath = { + idBase: 'cke_elementspath_' + CKEDITOR.tools.getNextNumber() + '_', + filters: [] + }; + + editor.on( 'uiSpace', function( event ) { + if ( event.data.space == 'bottom' ) + initElementsPath( editor, event.data ); + } ); + } + } ); + + function initElementsPath( editor, bottomSpaceData ) { + var spaceId = editor.ui.spaceId( 'path' ), + spaceElement, + getSpaceElement = function() { + if ( !spaceElement ) + spaceElement = CKEDITOR.document.getById( spaceId ); + return spaceElement; + }, + elementsPath = editor._.elementsPath, + idBase = elementsPath.idBase; + + bottomSpaceData.html += '' + editor.lang.elementspath.eleLabel + '' + + '' + emptyHtml + ''; + + // Register the ui element to the focus manager. + editor.on( 'uiReady', function() { + var element = editor.ui.space( 'path' ); + element && editor.focusManager.add( element, 1 ); + } ); + + function onClick( elementIndex ) { + var element = elementsPath.list[ elementIndex ]; + if ( element.equals( editor.editable() ) || element.getAttribute( 'contenteditable' ) == 'true' ) { + var range = editor.createRange(); + range.selectNodeContents( element ); + range.select(); + } else { + editor.getSelection().selectElement( element ); + } + + // It is important to focus() *after* the above selection + // manipulation, otherwise Firefox will have troubles. #10119 + editor.focus(); + } + + elementsPath.onClick = onClick; + + var onClickHanlder = CKEDITOR.tools.addFunction( onClick ), + onKeyDownHandler = CKEDITOR.tools.addFunction( function( elementIndex, ev ) { + var idBase = elementsPath.idBase, + element; + + ev = new CKEDITOR.dom.event( ev ); + + var rtl = editor.lang.dir == 'rtl'; + switch ( ev.getKeystroke() ) { + case rtl ? 39 : 37: // LEFT-ARROW + case 9: // TAB + element = CKEDITOR.document.getById( idBase + ( elementIndex + 1 ) ); + if ( !element ) + element = CKEDITOR.document.getById( idBase + '0' ); + element.focus(); + return false; + + case rtl ? 37 : 39: // RIGHT-ARROW + case CKEDITOR.SHIFT + 9: // SHIFT + TAB + element = CKEDITOR.document.getById( idBase + ( elementIndex - 1 ) ); + if ( !element ) + element = CKEDITOR.document.getById( idBase + ( elementsPath.list.length - 1 ) ); + element.focus(); + return false; + + case 27: // ESC + editor.focus(); + return false; + + case 13: // ENTER // Opera + case 32: // SPACE + onClick( elementIndex ); + return false; + } + return true; + } ); + + editor.on( 'selectionChange', function() { + var html = [], + elementsList = elementsPath.list = [], + namesList = [], + filters = elementsPath.filters, + isContentEditable = true, + + // Use elementPath to consider children of editable only (#11124). + elementsChain = editor.elementPath().elements, + name; + + // Starts iteration from body element, skipping html. + for ( var j = elementsChain.length; j--; ) { + var element = elementsChain[ j ], + ignore = 0; + + if ( element.data( 'cke-display-name' ) ) + name = element.data( 'cke-display-name' ); + else if ( element.data( 'cke-real-element-type' ) ) + name = element.data( 'cke-real-element-type' ); + else + name = element.getName(); + + isContentEditable = element.hasAttribute( 'contenteditable' ) ? + element.getAttribute( 'contenteditable' ) == 'true' : isContentEditable; + + // If elem is non-contenteditable, and it's not specifying contenteditable + // attribute - then elem should be ignored. + if ( !isContentEditable && !element.hasAttribute( 'contenteditable' ) ) + ignore = 1; + + for ( var i = 0; i < filters.length; i++ ) { + var ret = filters[ i ]( element, name ); + if ( ret === false ) { + ignore = 1; + break; + } + name = ret || name; + } + + if ( !ignore ) { + elementsList.unshift( element ); + namesList.unshift( name ); + } + } + + for ( var iterationLimit = elementsList.length, index = 0; index < iterationLimit; index++ ) { + name = namesList[ index ]; + var label = editor.lang.elementspath.eleTitle.replace( /%1/, name ), + item = pathItemTpl.output( { + id: idBase + index, + label: label, + text: name, + jsTitle: 'javascript:void(\'' + name + '\')', // jshint ignore:line + index: index, + keyDownFn: onKeyDownHandler, + clickFn: onClickHanlder + } ); + + html.unshift( item ); + } + + var space = getSpaceElement(); + space.setHtml( html.join( '' ) + emptyHtml ); + editor.fire( 'elementsPathUpdate', { space: space } ); + } ); + + function empty() { + spaceElement && spaceElement.setHtml( emptyHtml ); + delete elementsPath.list; + } + + editor.on( 'readOnly', empty ); + editor.on( 'contentDomUnload', empty ); + + editor.addCommand( 'elementsPathFocus', commands.toolbarFocus ); + editor.setKeystroke( CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ); + } +} )(); + +/** + * Fired when the contents of the elementsPath are changed. + * + * @event elementsPathUpdate + * @member CKEDITOR.editor + * @param {CKEDITOR.editor} editor This editor instance. + * @param data + * @param {CKEDITOR.dom.element} data.space The elementsPath container. + */ -- cgit v1.2.3