summaryrefslogtreecommitdiff
path: root/plugins/justify
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2014-06-07 07:57:56 +0100
committerlsces <lester@lsces.co.uk>2014-06-07 07:57:56 +0100
commit6a7c5b2653fc4883efd209db8874e9e180111a36 (patch)
tree81a32d6df9a3f38d6594c3cb335756eff6997c50 /plugins/justify
parent37c5c3d711169a4b63c1ee1924dd873c46f6998a (diff)
downloadckeditor-6a7c5b2653fc4883efd209db8874e9e180111a36.tar.gz
ckeditor-6a7c5b2653fc4883efd209db8874e9e180111a36.tar.bz2
ckeditor-6a7c5b2653fc4883efd209db8874e9e180111a36.zip
Upgrade to version 4.3 - remove older files
Diffstat (limited to 'plugins/justify')
-rw-r--r--plugins/justify/icons/justifyblock.pngbin495 -> 0 bytes
-rw-r--r--plugins/justify/icons/justifycenter.pngbin621 -> 0 bytes
-rw-r--r--plugins/justify/icons/justifyleft.pngbin558 -> 0 bytes
-rw-r--r--plugins/justify/icons/justifyright.pngbin554 -> 0 bytes
-rw-r--r--plugins/justify/lang/af.js10
-rw-r--r--plugins/justify/lang/ar.js10
-rw-r--r--plugins/justify/lang/bg.js10
-rw-r--r--plugins/justify/lang/bn.js10
-rw-r--r--plugins/justify/lang/bs.js10
-rw-r--r--plugins/justify/lang/ca.js10
-rw-r--r--plugins/justify/lang/cs.js10
-rw-r--r--plugins/justify/lang/cy.js10
-rw-r--r--plugins/justify/lang/da.js10
-rw-r--r--plugins/justify/lang/de.js10
-rw-r--r--plugins/justify/lang/el.js10
-rw-r--r--plugins/justify/lang/en-au.js10
-rw-r--r--plugins/justify/lang/en-ca.js10
-rw-r--r--plugins/justify/lang/en-gb.js10
-rw-r--r--plugins/justify/lang/en.js10
-rw-r--r--plugins/justify/lang/eo.js10
-rw-r--r--plugins/justify/lang/es.js10
-rw-r--r--plugins/justify/lang/et.js10
-rw-r--r--plugins/justify/lang/eu.js10
-rw-r--r--plugins/justify/lang/fa.js10
-rw-r--r--plugins/justify/lang/fi.js10
-rw-r--r--plugins/justify/lang/fo.js10
-rw-r--r--plugins/justify/lang/fr-ca.js10
-rw-r--r--plugins/justify/lang/fr.js10
-rw-r--r--plugins/justify/lang/gl.js10
-rw-r--r--plugins/justify/lang/gu.js10
-rw-r--r--plugins/justify/lang/he.js10
-rw-r--r--plugins/justify/lang/hi.js10
-rw-r--r--plugins/justify/lang/hr.js10
-rw-r--r--plugins/justify/lang/hu.js10
-rw-r--r--plugins/justify/lang/is.js10
-rw-r--r--plugins/justify/lang/it.js10
-rw-r--r--plugins/justify/lang/ja.js10
-rw-r--r--plugins/justify/lang/ka.js10
-rw-r--r--plugins/justify/lang/km.js10
-rw-r--r--plugins/justify/lang/ko.js10
-rw-r--r--plugins/justify/lang/ku.js10
-rw-r--r--plugins/justify/lang/lt.js10
-rw-r--r--plugins/justify/lang/lv.js10
-rw-r--r--plugins/justify/lang/mk.js10
-rw-r--r--plugins/justify/lang/mn.js10
-rw-r--r--plugins/justify/lang/ms.js10
-rw-r--r--plugins/justify/lang/nb.js10
-rw-r--r--plugins/justify/lang/nl.js10
-rw-r--r--plugins/justify/lang/no.js10
-rw-r--r--plugins/justify/lang/pl.js10
-rw-r--r--plugins/justify/lang/pt-br.js10
-rw-r--r--plugins/justify/lang/pt.js10
-rw-r--r--plugins/justify/lang/ro.js10
-rw-r--r--plugins/justify/lang/ru.js10
-rw-r--r--plugins/justify/lang/si.js10
-rw-r--r--plugins/justify/lang/sk.js10
-rw-r--r--plugins/justify/lang/sl.js10
-rw-r--r--plugins/justify/lang/sq.js10
-rw-r--r--plugins/justify/lang/sr-latn.js10
-rw-r--r--plugins/justify/lang/sr.js10
-rw-r--r--plugins/justify/lang/sv.js10
-rw-r--r--plugins/justify/lang/th.js10
-rw-r--r--plugins/justify/lang/tr.js10
-rw-r--r--plugins/justify/lang/ug.js10
-rw-r--r--plugins/justify/lang/uk.js10
-rw-r--r--plugins/justify/lang/vi.js10
-rw-r--r--plugins/justify/lang/zh-cn.js10
-rw-r--r--plugins/justify/lang/zh.js10
-rw-r--r--plugins/justify/plugin.js238
69 files changed, 0 insertions, 878 deletions
diff --git a/plugins/justify/icons/justifyblock.png b/plugins/justify/icons/justifyblock.png
deleted file mode 100644
index a22b5ec..0000000
--- a/plugins/justify/icons/justifyblock.png
+++ /dev/null
Binary files differ
diff --git a/plugins/justify/icons/justifycenter.png b/plugins/justify/icons/justifycenter.png
deleted file mode 100644
index 854a272..0000000
--- a/plugins/justify/icons/justifycenter.png
+++ /dev/null
Binary files differ
diff --git a/plugins/justify/icons/justifyleft.png b/plugins/justify/icons/justifyleft.png
deleted file mode 100644
index 7d48bab..0000000
--- a/plugins/justify/icons/justifyleft.png
+++ /dev/null
Binary files differ
diff --git a/plugins/justify/icons/justifyright.png b/plugins/justify/icons/justifyright.png
deleted file mode 100644
index ba220ee..0000000
--- a/plugins/justify/icons/justifyright.png
+++ /dev/null
Binary files differ
diff --git a/plugins/justify/lang/af.js b/plugins/justify/lang/af.js
deleted file mode 100644
index 8ab5a58..0000000
--- a/plugins/justify/lang/af.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'af', {
- block: 'Uitvul',
- center: 'Sentreer',
- left: 'Links oplyn',
- right: 'Regs oplyn'
-});
diff --git a/plugins/justify/lang/ar.js b/plugins/justify/lang/ar.js
deleted file mode 100644
index 5531022..0000000
--- a/plugins/justify/lang/ar.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ar', {
- block: 'ضبط',
- center: 'توسيط',
- left: 'محاذاة إلى اليسار',
- right: 'محاذاة إلى اليمين'
-});
diff --git a/plugins/justify/lang/bg.js b/plugins/justify/lang/bg.js
deleted file mode 100644
index 44580b5..0000000
--- a/plugins/justify/lang/bg.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'bg', {
- block: 'Двустранно подравняване',
- center: 'Център',
- left: 'Подравни в ляво',
- right: 'Подравни в дясно'
-});
diff --git a/plugins/justify/lang/bn.js b/plugins/justify/lang/bn.js
deleted file mode 100644
index 0e28606..0000000
--- a/plugins/justify/lang/bn.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'bn', {
- block: 'ব্লক জাস্টিফাই',
- center: 'মাঝ বরাবর ঘেষা',
- left: 'বা দিকে ঘেঁষা',
- right: 'ডান দিকে ঘেঁষা'
-});
diff --git a/plugins/justify/lang/bs.js b/plugins/justify/lang/bs.js
deleted file mode 100644
index 683c4d8..0000000
--- a/plugins/justify/lang/bs.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'bs', {
- block: 'Puno poravnanje',
- center: 'Centralno poravnanje',
- left: 'Lijevo poravnanje',
- right: 'Desno poravnanje'
-});
diff --git a/plugins/justify/lang/ca.js b/plugins/justify/lang/ca.js
deleted file mode 100644
index 7497ee9..0000000
--- a/plugins/justify/lang/ca.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ca', {
- block: 'Justificat',
- center: 'Centrat',
- left: 'Alinea a l\'esquerra',
- right: 'Alinea a la dreta'
-});
diff --git a/plugins/justify/lang/cs.js b/plugins/justify/lang/cs.js
deleted file mode 100644
index 8134d46..0000000
--- a/plugins/justify/lang/cs.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'cs', {
- block: 'Zarovnat do bloku',
- center: 'Zarovnat na střed',
- left: 'Zarovnat vlevo',
- right: 'Zarovnat vpravo'
-});
diff --git a/plugins/justify/lang/cy.js b/plugins/justify/lang/cy.js
deleted file mode 100644
index 106e6f3..0000000
--- a/plugins/justify/lang/cy.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'cy', {
- block: 'Aliniad Bloc',
- center: 'Alinio i\'r Canol',
- left: 'Alinio i\'r Chwith',
- right: 'Alinio i\'r Dde'
-});
diff --git a/plugins/justify/lang/da.js b/plugins/justify/lang/da.js
deleted file mode 100644
index 8c4bbbc..0000000
--- a/plugins/justify/lang/da.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'da', {
- block: 'Lige margener',
- center: 'Centreret',
- left: 'Venstrestillet',
- right: 'Højrestillet'
-});
diff --git a/plugins/justify/lang/de.js b/plugins/justify/lang/de.js
deleted file mode 100644
index e730163..0000000
--- a/plugins/justify/lang/de.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'de', {
- block: 'Blocksatz',
- center: 'Zentriert',
- left: 'Linksbündig',
- right: 'Rechtsbündig'
-});
diff --git a/plugins/justify/lang/el.js b/plugins/justify/lang/el.js
deleted file mode 100644
index e34f627..0000000
--- a/plugins/justify/lang/el.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'el', {
- block: 'Πλήρης Στοίχιση',
- center: 'Στοίχιση στο Κέντρο',
- left: 'Στοίχιση Αριστερά',
- right: 'Στοίχιση Δεξιά'
-});
diff --git a/plugins/justify/lang/en-au.js b/plugins/justify/lang/en-au.js
deleted file mode 100644
index e97c90a..0000000
--- a/plugins/justify/lang/en-au.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'en-au', {
- block: 'Justify',
- center: 'Centre',
- left: 'Align Left',
- right: 'Align Right'
-});
diff --git a/plugins/justify/lang/en-ca.js b/plugins/justify/lang/en-ca.js
deleted file mode 100644
index 436a26e..0000000
--- a/plugins/justify/lang/en-ca.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'en-ca', {
- block: 'Justify',
- center: 'Centre',
- left: 'Align Left',
- right: 'Align Right'
-});
diff --git a/plugins/justify/lang/en-gb.js b/plugins/justify/lang/en-gb.js
deleted file mode 100644
index 8332268..0000000
--- a/plugins/justify/lang/en-gb.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'en-gb', {
- block: 'Justify',
- center: 'Centre',
- left: 'Align Left',
- right: 'Align Right'
-});
diff --git a/plugins/justify/lang/en.js b/plugins/justify/lang/en.js
deleted file mode 100644
index 04114ea..0000000
--- a/plugins/justify/lang/en.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'en', {
- block: 'Justify',
- center: 'Center',
- left: 'Align Left',
- right: 'Align Right'
-});
diff --git a/plugins/justify/lang/eo.js b/plugins/justify/lang/eo.js
deleted file mode 100644
index 0459073..0000000
--- a/plugins/justify/lang/eo.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'eo', {
- block: 'Ĝisrandigi Ambaŭflanke',
- center: 'Centrigi',
- left: 'Ĝisrandigi maldekstren',
- right: 'Ĝisrandigi dekstren'
-});
diff --git a/plugins/justify/lang/es.js b/plugins/justify/lang/es.js
deleted file mode 100644
index a219a43..0000000
--- a/plugins/justify/lang/es.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'es', {
- block: 'Justificado',
- center: 'Centrar',
- left: 'Alinear a Izquierda',
- right: 'Alinear a Derecha'
-});
diff --git a/plugins/justify/lang/et.js b/plugins/justify/lang/et.js
deleted file mode 100644
index 9810691..0000000
--- a/plugins/justify/lang/et.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'et', {
- block: 'Rööpjoondus',
- center: 'Keskjoondus',
- left: 'Vasakjoondus',
- right: 'Paremjoondus'
-});
diff --git a/plugins/justify/lang/eu.js b/plugins/justify/lang/eu.js
deleted file mode 100644
index 32a3293..0000000
--- a/plugins/justify/lang/eu.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'eu', {
- block: 'Justifikatu',
- center: 'Lerrokatu Erdian',
- left: 'Lerrokatu Ezkerrean',
- right: 'Lerrokatu Eskuman'
-});
diff --git a/plugins/justify/lang/fa.js b/plugins/justify/lang/fa.js
deleted file mode 100644
index d7d4faf..0000000
--- a/plugins/justify/lang/fa.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'fa', {
- block: 'بلوک چین',
- center: 'میان چین',
- left: 'چپ چین',
- right: 'راست چین'
-});
diff --git a/plugins/justify/lang/fi.js b/plugins/justify/lang/fi.js
deleted file mode 100644
index 54b6dbf..0000000
--- a/plugins/justify/lang/fi.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'fi', {
- block: 'Tasaa molemmat reunat',
- center: 'Keskitä',
- left: 'Tasaa vasemmat reunat',
- right: 'Tasaa oikeat reunat'
-});
diff --git a/plugins/justify/lang/fo.js b/plugins/justify/lang/fo.js
deleted file mode 100644
index 9109cbd..0000000
--- a/plugins/justify/lang/fo.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'fo', {
- block: 'Javnir tekstkantar',
- center: 'Miðsett',
- left: 'Vinstrasett',
- right: 'Høgrasett'
-});
diff --git a/plugins/justify/lang/fr-ca.js b/plugins/justify/lang/fr-ca.js
deleted file mode 100644
index 8661c70..0000000
--- a/plugins/justify/lang/fr-ca.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'fr-ca', {
- block: 'Justifié',
- center: 'Centré',
- left: 'Aligner à gauche',
- right: 'Aligner à Droite'
-});
diff --git a/plugins/justify/lang/fr.js b/plugins/justify/lang/fr.js
deleted file mode 100644
index a1cf28d..0000000
--- a/plugins/justify/lang/fr.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'fr', {
- block: 'Justifier',
- center: 'Centrer',
- left: 'Aligner à gauche',
- right: 'Aligner à droite'
-});
diff --git a/plugins/justify/lang/gl.js b/plugins/justify/lang/gl.js
deleted file mode 100644
index 039c0e3..0000000
--- a/plugins/justify/lang/gl.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'gl', {
- block: 'Xustificado',
- center: 'Centrado',
- left: 'Aliñar á esquerda',
- right: 'Aliñar á dereita'
-});
diff --git a/plugins/justify/lang/gu.js b/plugins/justify/lang/gu.js
deleted file mode 100644
index 2d3bbd8..0000000
--- a/plugins/justify/lang/gu.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'gu', {
- block: 'બ્લૉક, અંતરાય જસ્ટિફાઇ',
- center: 'સંકેંદ્રણ/સેંટરિંગ',
- left: 'ડાબી બાજુએ/બાજુ તરફ',
- right: 'જમણી બાજુએ/બાજુ તરફ'
-});
diff --git a/plugins/justify/lang/he.js b/plugins/justify/lang/he.js
deleted file mode 100644
index 63efd33..0000000
--- a/plugins/justify/lang/he.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'he', {
- block: 'יישור לשוליים',
- center: 'מרכוז',
- left: 'יישור לשמאל',
- right: 'יישור לימין'
-});
diff --git a/plugins/justify/lang/hi.js b/plugins/justify/lang/hi.js
deleted file mode 100644
index e5188fe..0000000
--- a/plugins/justify/lang/hi.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'hi', {
- block: 'ब्लॉक जस्टीफ़ाई',
- center: 'बीच में',
- left: 'बायीं तरफ',
- right: 'दायीं तरफ'
-});
diff --git a/plugins/justify/lang/hr.js b/plugins/justify/lang/hr.js
deleted file mode 100644
index d5e071f..0000000
--- a/plugins/justify/lang/hr.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'hr', {
- block: 'Blok poravnanje',
- center: 'Središnje poravnanje',
- left: 'Lijevo poravnanje',
- right: 'Desno poravnanje'
-});
diff --git a/plugins/justify/lang/hu.js b/plugins/justify/lang/hu.js
deleted file mode 100644
index 0d2caa6..0000000
--- a/plugins/justify/lang/hu.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'hu', {
- block: 'Sorkizárt',
- center: 'Középre',
- left: 'Balra',
- right: 'Jobbra'
-});
diff --git a/plugins/justify/lang/is.js b/plugins/justify/lang/is.js
deleted file mode 100644
index 9ff5f3e..0000000
--- a/plugins/justify/lang/is.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'is', {
- block: 'Jafna báðum megin',
- center: 'Miðja texta',
- left: 'Vinstrijöfnun',
- right: 'Hægrijöfnun'
-});
diff --git a/plugins/justify/lang/it.js b/plugins/justify/lang/it.js
deleted file mode 100644
index 8f4f20a..0000000
--- a/plugins/justify/lang/it.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'it', {
- block: 'Giustifica',
- center: 'Centra',
- left: 'Allinea a sinistra',
- right: 'Allinea a destra'
-});
diff --git a/plugins/justify/lang/ja.js b/plugins/justify/lang/ja.js
deleted file mode 100644
index 76af14e..0000000
--- a/plugins/justify/lang/ja.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ja', {
- block: '両端揃え',
- center: '中央揃え',
- left: '左揃え',
- right: '右揃え'
-});
diff --git a/plugins/justify/lang/ka.js b/plugins/justify/lang/ka.js
deleted file mode 100644
index e2f1691..0000000
--- a/plugins/justify/lang/ka.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ka', {
- block: 'გადასწორება',
- center: 'შუაში სწორება',
- left: 'მარცხნივ სწორება',
- right: 'მარჯვნივ სწორება'
-});
diff --git a/plugins/justify/lang/km.js b/plugins/justify/lang/km.js
deleted file mode 100644
index 9477ede..0000000
--- a/plugins/justify/lang/km.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'km', {
- block: 'តំរឹមសងខាង',
- center: 'តំរឹមកណ្តាល',
- left: 'តំរឹមឆ្វេង',
- right: 'តំរឹមស្តាំ'
-});
diff --git a/plugins/justify/lang/ko.js b/plugins/justify/lang/ko.js
deleted file mode 100644
index f65c8fa..0000000
--- a/plugins/justify/lang/ko.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ko', {
- block: '양쪽 맞춤',
- center: '가운데 정렬',
- left: '왼쪽 정렬',
- right: '오른쪽 정렬'
-});
diff --git a/plugins/justify/lang/ku.js b/plugins/justify/lang/ku.js
deleted file mode 100644
index 670b8da..0000000
--- a/plugins/justify/lang/ku.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ku', {
- block: 'هاوستوونی',
- center: 'ناوەڕاست',
- left: 'بەهێڵ کردنی چەپ',
- right: 'بەهێڵ کردنی ڕاست'
-});
diff --git a/plugins/justify/lang/lt.js b/plugins/justify/lang/lt.js
deleted file mode 100644
index eaaa4f1..0000000
--- a/plugins/justify/lang/lt.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'lt', {
- block: 'Lygiuoti abi puses',
- center: 'Centruoti',
- left: 'Lygiuoti kairę',
- right: 'Lygiuoti dešinę'
-});
diff --git a/plugins/justify/lang/lv.js b/plugins/justify/lang/lv.js
deleted file mode 100644
index 3b58e5a..0000000
--- a/plugins/justify/lang/lv.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'lv', {
- block: 'Izlīdzināt malas',
- center: 'Izlīdzināt pret centru',
- left: 'Izlīdzināt pa kreisi',
- right: 'Izlīdzināt pa labi'
-});
diff --git a/plugins/justify/lang/mk.js b/plugins/justify/lang/mk.js
deleted file mode 100644
index 7efb399..0000000
--- a/plugins/justify/lang/mk.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'mk', {
- block: 'Justify', // MISSING
- center: 'Center', // MISSING
- left: 'Align Left', // MISSING
- right: 'Align Right' // MISSING
-});
diff --git a/plugins/justify/lang/mn.js b/plugins/justify/lang/mn.js
deleted file mode 100644
index 6036d24..0000000
--- a/plugins/justify/lang/mn.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'mn', {
- block: 'Тэгшлэх',
- center: 'Голлуулах',
- left: 'Зүүн талд тулгах',
- right: 'Баруун талд тулгах'
-});
diff --git a/plugins/justify/lang/ms.js b/plugins/justify/lang/ms.js
deleted file mode 100644
index 20675cc..0000000
--- a/plugins/justify/lang/ms.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ms', {
- block: 'Jajaran Blok',
- center: 'Jajaran Tengah',
- left: 'Jajaran Kiri',
- right: 'Jajaran Kanan'
-});
diff --git a/plugins/justify/lang/nb.js b/plugins/justify/lang/nb.js
deleted file mode 100644
index 4a1bed4..0000000
--- a/plugins/justify/lang/nb.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'nb', {
- block: 'Blokkjuster',
- center: 'Midtstill',
- left: 'Venstrejuster',
- right: 'Høyrejuster'
-});
diff --git a/plugins/justify/lang/nl.js b/plugins/justify/lang/nl.js
deleted file mode 100644
index b696e5f..0000000
--- a/plugins/justify/lang/nl.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'nl', {
- block: 'Uitvullen',
- center: 'Centreren',
- left: 'Links uitlijnen',
- right: 'Rechts uitlijnen'
-});
diff --git a/plugins/justify/lang/no.js b/plugins/justify/lang/no.js
deleted file mode 100644
index 154c3d1..0000000
--- a/plugins/justify/lang/no.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'no', {
- block: 'Blokkjuster',
- center: 'Midtstill',
- left: 'Venstrejuster',
- right: 'Høyrejuster'
-});
diff --git a/plugins/justify/lang/pl.js b/plugins/justify/lang/pl.js
deleted file mode 100644
index 91e3643..0000000
--- a/plugins/justify/lang/pl.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'pl', {
- block: 'Wyjustuj',
- center: 'Wyśrodkuj',
- left: 'Wyrównaj do lewej',
- right: 'Wyrównaj do prawej'
-});
diff --git a/plugins/justify/lang/pt-br.js b/plugins/justify/lang/pt-br.js
deleted file mode 100644
index e0c2e7a..0000000
--- a/plugins/justify/lang/pt-br.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'pt-br', {
- block: 'Justificado',
- center: 'Centralizar',
- left: 'Alinhar Esquerda',
- right: 'Alinhar Direita'
-});
diff --git a/plugins/justify/lang/pt.js b/plugins/justify/lang/pt.js
deleted file mode 100644
index 01190eb..0000000
--- a/plugins/justify/lang/pt.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'pt', {
- block: 'Justificado',
- center: 'Alinhar ao Centro',
- left: 'Alinhar à Esquerda',
- right: 'Alinhar à Direita'
-});
diff --git a/plugins/justify/lang/ro.js b/plugins/justify/lang/ro.js
deleted file mode 100644
index e209a17..0000000
--- a/plugins/justify/lang/ro.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ro', {
- block: 'Aliniere în bloc (Block Justify)',
- center: 'Aliniere centrală',
- left: 'Aliniere la stânga',
- right: 'Aliniere la dreapta'
-});
diff --git a/plugins/justify/lang/ru.js b/plugins/justify/lang/ru.js
deleted file mode 100644
index e00e1dd..0000000
--- a/plugins/justify/lang/ru.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ru', {
- block: 'По ширине',
- center: 'По центру',
- left: 'По левому краю',
- right: 'По правому краю'
-});
diff --git a/plugins/justify/lang/si.js b/plugins/justify/lang/si.js
deleted file mode 100644
index 1a2c5c1..0000000
--- a/plugins/justify/lang/si.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'si', {
- block: 'Justify', // MISSING
- center: 'මධ්‍ය',
- left: 'Align Left', // MISSING
- right: 'Align Right' // MISSING
-});
diff --git a/plugins/justify/lang/sk.js b/plugins/justify/lang/sk.js
deleted file mode 100644
index 39a7d9f..0000000
--- a/plugins/justify/lang/sk.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'sk', {
- block: 'Zarovnať do bloku',
- center: 'Zarovnať na stred',
- left: 'Zarovnať vľavo',
- right: 'Zarovnať vpravo'
-});
diff --git a/plugins/justify/lang/sl.js b/plugins/justify/lang/sl.js
deleted file mode 100644
index 98b9c19..0000000
--- a/plugins/justify/lang/sl.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'sl', {
- block: 'Obojestranska poravnava',
- center: 'Sredinska poravnava',
- left: 'Leva poravnava',
- right: 'Desna poravnava'
-});
diff --git a/plugins/justify/lang/sq.js b/plugins/justify/lang/sq.js
deleted file mode 100644
index abdf72c..0000000
--- a/plugins/justify/lang/sq.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'sq', {
- block: 'Zgjero',
- center: 'Qendër',
- left: 'Rreshto majtas',
- right: 'Rreshto Djathtas'
-});
diff --git a/plugins/justify/lang/sr-latn.js b/plugins/justify/lang/sr-latn.js
deleted file mode 100644
index 88363d5..0000000
--- a/plugins/justify/lang/sr-latn.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'sr-latn', {
- block: 'Obostrano ravnanje',
- center: 'Centriran tekst',
- left: 'Levo ravnanje',
- right: 'Desno ravnanje'
-});
diff --git a/plugins/justify/lang/sr.js b/plugins/justify/lang/sr.js
deleted file mode 100644
index ccbb719..0000000
--- a/plugins/justify/lang/sr.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'sr', {
- block: 'Обострано равнање',
- center: 'Центриран текст',
- left: 'Лево равнање',
- right: 'Десно равнање'
-});
diff --git a/plugins/justify/lang/sv.js b/plugins/justify/lang/sv.js
deleted file mode 100644
index a1652ed..0000000
--- a/plugins/justify/lang/sv.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'sv', {
- block: 'Justera till marginaler',
- center: 'Centrera',
- left: 'Vänsterjustera',
- right: 'Högerjustera'
-});
diff --git a/plugins/justify/lang/th.js b/plugins/justify/lang/th.js
deleted file mode 100644
index 7454982..0000000
--- a/plugins/justify/lang/th.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'th', {
- block: 'จัดพอดีหน้ากระดาษ',
- center: 'จัดกึ่งกลาง',
- left: 'จัดชิดซ้าย',
- right: 'จัดชิดขวา'
-});
diff --git a/plugins/justify/lang/tr.js b/plugins/justify/lang/tr.js
deleted file mode 100644
index 7e3af47..0000000
--- a/plugins/justify/lang/tr.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'tr', {
- block: 'İki Kenara Yaslanmış',
- center: 'Ortalanmış',
- left: 'Sola Dayalı',
- right: 'Sağa Dayalı'
-});
diff --git a/plugins/justify/lang/ug.js b/plugins/justify/lang/ug.js
deleted file mode 100644
index e9244bd..0000000
--- a/plugins/justify/lang/ug.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'ug', {
- block: 'ئىككى تەرەپتىن توغرىلا',
- center: 'ئوتتۇرىغا توغرىلا',
- left: 'سولغا توغرىلا',
- right: 'ئوڭغا توغرىلا'
-});
diff --git a/plugins/justify/lang/uk.js b/plugins/justify/lang/uk.js
deleted file mode 100644
index cdc8b88..0000000
--- a/plugins/justify/lang/uk.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'uk', {
- block: 'По ширині',
- center: 'По центру',
- left: 'По лівому краю',
- right: 'По правому краю'
-});
diff --git a/plugins/justify/lang/vi.js b/plugins/justify/lang/vi.js
deleted file mode 100644
index 8043811..0000000
--- a/plugins/justify/lang/vi.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'vi', {
- block: 'Canh đều',
- center: 'Canh giữa',
- left: 'Canh trái',
- right: 'Canh phải'
-});
diff --git a/plugins/justify/lang/zh-cn.js b/plugins/justify/lang/zh-cn.js
deleted file mode 100644
index 981e4ab..0000000
--- a/plugins/justify/lang/zh-cn.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'zh-cn', {
- block: '两端对齐',
- center: '居中',
- left: '左对齐',
- right: '右对齐'
-});
diff --git a/plugins/justify/lang/zh.js b/plugins/justify/lang/zh.js
deleted file mode 100644
index e42a95e..0000000
--- a/plugins/justify/lang/zh.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-CKEDITOR.plugins.setLang( 'justify', 'zh', {
- block: '左右對齊',
- center: '置中',
- left: '靠左對齊',
- right: '靠右對齊'
-});
diff --git a/plugins/justify/plugin.js b/plugins/justify/plugin.js
deleted file mode 100644
index f30c27b..0000000
--- a/plugins/justify/plugin.js
+++ /dev/null
@@ -1,238 +0,0 @@
-/**
- * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.html or http://ckeditor.com/license
- */
-
-/**
- * @fileOverview Justify commands.
- */
-
-(function() {
- function getAlignment( element, useComputedState ) {
- useComputedState = useComputedState === undefined || useComputedState;
-
- var align;
- if ( useComputedState )
- align = element.getComputedStyle( 'text-align' );
- else {
- while ( !element.hasAttribute || !( element.hasAttribute( 'align' ) || element.getStyle( 'text-align' ) ) ) {
- var parent = element.getParent();
- if ( !parent )
- break;
- element = parent;
- }
- align = element.getStyle( 'text-align' ) || element.getAttribute( 'align' ) || '';
- }
-
- // Sometimes computed values doesn't tell.
- align && ( align = align.replace( /(?:-(?:moz|webkit)-)?(?:start|auto)/i, '' ) );
-
- !align && useComputedState && ( align = element.getComputedStyle( 'direction' ) == 'rtl' ? 'right' : 'left' );
-
- return align;
- }
-
- function justifyCommand( editor, name, value ) {
- this.editor = editor;
- this.name = name;
- this.value = value;
- this.context = 'p';
-
- var classes = editor.config.justifyClasses,
- blockTag = editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div';
-
- if ( classes ) {
- switch ( value ) {
- case 'left':
- this.cssClassName = classes[ 0 ];
- break;
- case 'center':
- this.cssClassName = classes[ 1 ];
- break;
- case 'right':
- this.cssClassName = classes[ 2 ];
- break;
- case 'justify':
- this.cssClassName = classes[ 3 ];
- break;
- }
-
- this.cssClassRegex = new RegExp( '(?:^|\\s+)(?:' + classes.join( '|' ) + ')(?=$|\\s)' );
- this.requiredContent = blockTag + '(' + this.cssClassName + ')';
- }
- else {
- this.requiredContent = blockTag + '{text-align}';
- }
-
- this.allowedContent = {
- 'caption div h1 h2 h3 h4 h5 h6 p pre td th li': {
- // Do not add elements, but only text-align style if element is validated by other rule.
- propertiesOnly: true,
- styles: this.cssClassName ? null : 'text-align',
- classes: this.cssClassName || null
- }
- };
-
- // In enter mode BR we need to allow here for div, because when non other
- // feature allows div justify is the only plugin that uses it.
- if ( editor.config.enterMode == CKEDITOR.ENTER_BR )
- this.allowedContent.div = true;
- }
-
- function onDirChanged( e ) {
- var editor = e.editor;
-
- var range = editor.createRange();
- range.setStartBefore( e.data.node );
- range.setEndAfter( e.data.node );
-
- var walker = new CKEDITOR.dom.walker( range ),
- node;
-
- while ( ( node = walker.next() ) ) {
- if ( node.type == CKEDITOR.NODE_ELEMENT ) {
- // A child with the defined dir is to be ignored.
- if ( !node.equals( e.data.node ) && node.getDirection() ) {
- range.setStartAfter( node );
- walker = new CKEDITOR.dom.walker( range );
- continue;
- }
-
- // Switch the alignment.
- var classes = editor.config.justifyClasses;
- if ( classes ) {
- // The left align class.
- if ( node.hasClass( classes[ 0 ] ) ) {
- node.removeClass( classes[ 0 ] );
- node.addClass( classes[ 2 ] );
- }
- // The right align class.
- else if ( node.hasClass( classes[ 2 ] ) ) {
- node.removeClass( classes[ 2 ] );
- node.addClass( classes[ 0 ] );
- }
- }
-
- // Always switch CSS margins.
- var style = 'text-align';
- var align = node.getStyle( style );
-
- if ( align == 'left' )
- node.setStyle( style, 'right' );
- else if ( align == 'right' )
- node.setStyle( style, 'left' );
- }
- }
- }
-
- justifyCommand.prototype = {
- exec: function( editor ) {
- var selection = editor.getSelection(),
- enterMode = editor.config.enterMode;
-
- if ( !selection )
- return;
-
- var bookmarks = selection.createBookmarks(),
- ranges = selection.getRanges( true );
-
- var cssClassName = this.cssClassName,
- iterator, block;
-
- var useComputedState = editor.config.useComputedState;
- useComputedState = useComputedState === undefined || useComputedState;
-
- for ( var i = ranges.length - 1; i >= 0; i-- ) {
- iterator = ranges[ i ].createIterator();
- iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR;
-
- while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) ) {
- block.removeAttribute( 'align' );
- block.removeStyle( 'text-align' );
-
- // Remove any of the alignment classes from the className.
- var className = cssClassName && ( block.$.className = CKEDITOR.tools.ltrim( block.$.className.replace( this.cssClassRegex, '' ) ) );
-
- var apply = ( this.state == CKEDITOR.TRISTATE_OFF ) && ( !useComputedState || ( getAlignment( block, true ) != this.value ) );
-
- if ( cssClassName ) {
- // Append the desired class name.
- if ( apply )
- block.addClass( cssClassName );
- else if ( !className )
- block.removeAttribute( 'class' );
- } else if ( apply )
- block.setStyle( 'text-align', this.value );
- }
-
- }
-
- editor.focus();
- editor.forceNextSelectionCheck();
- selection.selectBookmarks( bookmarks );
- },
-
- refresh: function( editor, path ) {
- var firstBlock = path.block || path.blockLimit;
-
- this.setState( firstBlock.getName() != 'body' && getAlignment( firstBlock, this.editor.config.useComputedState ) == this.value ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
- }
- };
-
- CKEDITOR.plugins.add( 'justify', {
- 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,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,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
- icons: 'justifyblock,justifycenter,justifyleft,justifyright', // %REMOVE_LINE_CORE%
- init: function( editor ) {
- if ( editor.blockless )
- return;
-
- var left = new justifyCommand( editor, 'justifyleft', 'left' ),
- center = new justifyCommand( editor, 'justifycenter', 'center' ),
- right = new justifyCommand( editor, 'justifyright', 'right' ),
- justify = new justifyCommand( editor, 'justifyblock', 'justify' );
-
- editor.addCommand( 'justifyleft', left );
- editor.addCommand( 'justifycenter', center );
- editor.addCommand( 'justifyright', right );
- editor.addCommand( 'justifyblock', justify );
-
- if ( editor.ui.addButton ) {
- editor.ui.addButton( 'JustifyLeft', {
- label: editor.lang.justify.left,
- command: 'justifyleft',
- toolbar: 'align,10'
- });
- editor.ui.addButton( 'JustifyCenter', {
- label: editor.lang.justify.center,
- command: 'justifycenter',
- toolbar: 'align,20'
- });
- editor.ui.addButton( 'JustifyRight', {
- label: editor.lang.justify.right,
- command: 'justifyright',
- toolbar: 'align,30'
- });
- editor.ui.addButton( 'JustifyBlock', {
- label: editor.lang.justify.block,
- command: 'justifyblock',
- toolbar: 'align,40'
- });
- }
-
- editor.on( 'dirChanged', onDirChanged );
- }
- });
-})();
-
-/**
- * List of classes to use for aligning the contents. If it's `null`, no classes will be used
- * and instead the corresponding CSS values will be used.
- *
- * The array should contain 4 members, in the following order: left, center, right, justify.
- *
- * // Use the classes 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify'
- * config.justifyClasses = [ 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' ];
- *
- * @cfg {Array} [justifyClasses=null]
- * @member CKEDITOR.config
- */