From 317f8f8f0651488f226b5280a8f036c7c135c639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 4 Dec 2017 17:54:04 +0100 Subject: Add oembed --- .../plugins/justify/icons/hidpi/justifyblock.png | Bin 882 -> 533 bytes .../plugins/justify/icons/hidpi/justifycenter.png | Bin 1142 -> 576 bytes .../plugins/justify/icons/hidpi/justifyleft.png | Bin 1042 -> 569 bytes .../plugins/justify/icons/hidpi/justifyright.png | Bin 1048 -> 549 bytes sources/plugins/justify/icons/justifyblock.png | Bin 496 -> 315 bytes sources/plugins/justify/icons/justifycenter.png | Bin 609 -> 564 bytes sources/plugins/justify/icons/justifyleft.png | Bin 558 -> 342 bytes sources/plugins/justify/icons/justifyright.png | Bin 554 -> 348 bytes sources/plugins/justify/lang/af.js | 2 +- sources/plugins/justify/lang/ar.js | 2 +- sources/plugins/justify/lang/az.js | 10 +++++ sources/plugins/justify/lang/bg.js | 2 +- sources/plugins/justify/lang/bn.js | 4 +- sources/plugins/justify/lang/bs.js | 2 +- sources/plugins/justify/lang/ca.js | 2 +- sources/plugins/justify/lang/cs.js | 2 +- sources/plugins/justify/lang/cy.js | 2 +- sources/plugins/justify/lang/da.js | 2 +- sources/plugins/justify/lang/de-ch.js | 2 +- sources/plugins/justify/lang/de.js | 2 +- sources/plugins/justify/lang/el.js | 2 +- sources/plugins/justify/lang/en-au.js | 2 +- sources/plugins/justify/lang/en-ca.js | 2 +- sources/plugins/justify/lang/en-gb.js | 2 +- sources/plugins/justify/lang/en.js | 2 +- sources/plugins/justify/lang/eo.js | 2 +- sources/plugins/justify/lang/es-mx.js | 10 +++++ sources/plugins/justify/lang/es.js | 2 +- sources/plugins/justify/lang/et.js | 2 +- sources/plugins/justify/lang/eu.js | 2 +- sources/plugins/justify/lang/fa.js | 2 +- sources/plugins/justify/lang/fi.js | 2 +- sources/plugins/justify/lang/fo.js | 2 +- sources/plugins/justify/lang/fr-ca.js | 2 +- sources/plugins/justify/lang/fr.js | 2 +- sources/plugins/justify/lang/gl.js | 2 +- sources/plugins/justify/lang/gu.js | 2 +- sources/plugins/justify/lang/he.js | 2 +- sources/plugins/justify/lang/hi.js | 2 +- sources/plugins/justify/lang/hr.js | 2 +- sources/plugins/justify/lang/hu.js | 2 +- sources/plugins/justify/lang/id.js | 2 +- sources/plugins/justify/lang/is.js | 2 +- sources/plugins/justify/lang/it.js | 2 +- sources/plugins/justify/lang/ja.js | 2 +- sources/plugins/justify/lang/ka.js | 2 +- sources/plugins/justify/lang/km.js | 2 +- sources/plugins/justify/lang/ko.js | 2 +- sources/plugins/justify/lang/ku.js | 2 +- sources/plugins/justify/lang/lt.js | 2 +- sources/plugins/justify/lang/lv.js | 2 +- sources/plugins/justify/lang/mk.js | 2 +- sources/plugins/justify/lang/mn.js | 2 +- sources/plugins/justify/lang/ms.js | 2 +- sources/plugins/justify/lang/nb.js | 2 +- sources/plugins/justify/lang/nl.js | 2 +- sources/plugins/justify/lang/no.js | 2 +- sources/plugins/justify/lang/oc.js | 10 +++++ sources/plugins/justify/lang/pl.js | 2 +- sources/plugins/justify/lang/pt-br.js | 2 +- sources/plugins/justify/lang/pt.js | 4 +- sources/plugins/justify/lang/ro.js | 2 +- sources/plugins/justify/lang/ru.js | 2 +- sources/plugins/justify/lang/si.js | 2 +- sources/plugins/justify/lang/sk.js | 2 +- sources/plugins/justify/lang/sl.js | 2 +- sources/plugins/justify/lang/sq.js | 2 +- sources/plugins/justify/lang/sr-latn.js | 2 +- sources/plugins/justify/lang/sr.js | 2 +- sources/plugins/justify/lang/sv.js | 2 +- sources/plugins/justify/lang/th.js | 2 +- sources/plugins/justify/lang/tr.js | 2 +- sources/plugins/justify/lang/tt.js | 2 +- sources/plugins/justify/lang/ug.js | 2 +- sources/plugins/justify/lang/uk.js | 2 +- sources/plugins/justify/lang/vi.js | 2 +- sources/plugins/justify/lang/zh-cn.js | 2 +- sources/plugins/justify/lang/zh.js | 2 +- sources/plugins/justify/plugin.js | 43 ++++++++++++++++----- 79 files changed, 133 insertions(+), 78 deletions(-) create mode 100644 sources/plugins/justify/lang/az.js create mode 100644 sources/plugins/justify/lang/es-mx.js create mode 100644 sources/plugins/justify/lang/oc.js (limited to 'sources/plugins/justify') diff --git a/sources/plugins/justify/icons/hidpi/justifyblock.png b/sources/plugins/justify/icons/hidpi/justifyblock.png index 7209fd4..5c0cf43 100644 Binary files a/sources/plugins/justify/icons/hidpi/justifyblock.png and b/sources/plugins/justify/icons/hidpi/justifyblock.png differ diff --git a/sources/plugins/justify/icons/hidpi/justifycenter.png b/sources/plugins/justify/icons/hidpi/justifycenter.png index 365e320..fd751be 100644 Binary files a/sources/plugins/justify/icons/hidpi/justifycenter.png and b/sources/plugins/justify/icons/hidpi/justifycenter.png differ diff --git a/sources/plugins/justify/icons/hidpi/justifyleft.png b/sources/plugins/justify/icons/hidpi/justifyleft.png index 75308c1..a109ad3 100644 Binary files a/sources/plugins/justify/icons/hidpi/justifyleft.png and b/sources/plugins/justify/icons/hidpi/justifyleft.png differ diff --git a/sources/plugins/justify/icons/hidpi/justifyright.png b/sources/plugins/justify/icons/hidpi/justifyright.png index de7c3d4..5125d56 100644 Binary files a/sources/plugins/justify/icons/hidpi/justifyright.png and b/sources/plugins/justify/icons/hidpi/justifyright.png differ diff --git a/sources/plugins/justify/icons/justifyblock.png b/sources/plugins/justify/icons/justifyblock.png index a507be1..ffe0620 100644 Binary files a/sources/plugins/justify/icons/justifyblock.png and b/sources/plugins/justify/icons/justifyblock.png differ diff --git a/sources/plugins/justify/icons/justifycenter.png b/sources/plugins/justify/icons/justifycenter.png index f758bc4..8b5b40f 100644 Binary files a/sources/plugins/justify/icons/justifycenter.png and b/sources/plugins/justify/icons/justifycenter.png differ diff --git a/sources/plugins/justify/icons/justifyleft.png b/sources/plugins/justify/icons/justifyleft.png index 542ddee..a60d079 100644 Binary files a/sources/plugins/justify/icons/justifyleft.png and b/sources/plugins/justify/icons/justifyleft.png differ diff --git a/sources/plugins/justify/icons/justifyright.png b/sources/plugins/justify/icons/justifyright.png index 71a983c..21de814 100644 Binary files a/sources/plugins/justify/icons/justifyright.png and b/sources/plugins/justify/icons/justifyright.png differ diff --git a/sources/plugins/justify/lang/af.js b/sources/plugins/justify/lang/af.js index d9b468d..9f5c303 100644 --- a/sources/plugins/justify/lang/af.js +++ b/sources/plugins/justify/lang/af.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'af', { diff --git a/sources/plugins/justify/lang/ar.js b/sources/plugins/justify/lang/ar.js index 4db5875..6c414be 100644 --- a/sources/plugins/justify/lang/ar.js +++ b/sources/plugins/justify/lang/ar.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ar', { diff --git a/sources/plugins/justify/lang/az.js b/sources/plugins/justify/lang/az.js new file mode 100644 index 0000000..9360568 --- /dev/null +++ b/sources/plugins/justify/lang/az.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'justify', 'az', { + block: 'Eninə görə', + center: 'Mərkəz', + left: 'Soldan düzləndir', + right: 'Sağdan düzləndir' +} ); diff --git a/sources/plugins/justify/lang/bg.js b/sources/plugins/justify/lang/bg.js index 7a2841c..1724947 100644 --- a/sources/plugins/justify/lang/bg.js +++ b/sources/plugins/justify/lang/bg.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'bg', { diff --git a/sources/plugins/justify/lang/bn.js b/sources/plugins/justify/lang/bn.js index 77d5827..002a633 100644 --- a/sources/plugins/justify/lang/bn.js +++ b/sources/plugins/justify/lang/bn.js @@ -1,9 +1,9 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'bn', { - block: 'ব্লক জাস্টিফাই', + block: 'যাচাই করি', center: 'মাঝ বরাবর ঘেষা', left: 'বা দিকে ঘেঁষা', right: 'ডান দিকে ঘেঁষা' diff --git a/sources/plugins/justify/lang/bs.js b/sources/plugins/justify/lang/bs.js index 1412437..0fbedfc 100644 --- a/sources/plugins/justify/lang/bs.js +++ b/sources/plugins/justify/lang/bs.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'bs', { diff --git a/sources/plugins/justify/lang/ca.js b/sources/plugins/justify/lang/ca.js index 02c3858..afb7adb 100644 --- a/sources/plugins/justify/lang/ca.js +++ b/sources/plugins/justify/lang/ca.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ca', { diff --git a/sources/plugins/justify/lang/cs.js b/sources/plugins/justify/lang/cs.js index d5f263f..467ae6f 100644 --- a/sources/plugins/justify/lang/cs.js +++ b/sources/plugins/justify/lang/cs.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'cs', { diff --git a/sources/plugins/justify/lang/cy.js b/sources/plugins/justify/lang/cy.js index 80883d1..6b39beb 100644 --- a/sources/plugins/justify/lang/cy.js +++ b/sources/plugins/justify/lang/cy.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'cy', { diff --git a/sources/plugins/justify/lang/da.js b/sources/plugins/justify/lang/da.js index e595639..ac8ee29 100644 --- a/sources/plugins/justify/lang/da.js +++ b/sources/plugins/justify/lang/da.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'da', { diff --git a/sources/plugins/justify/lang/de-ch.js b/sources/plugins/justify/lang/de-ch.js index 36fc080..a2c24eb 100644 --- a/sources/plugins/justify/lang/de-ch.js +++ b/sources/plugins/justify/lang/de-ch.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'de-ch', { diff --git a/sources/plugins/justify/lang/de.js b/sources/plugins/justify/lang/de.js index dc45266..4db8725 100644 --- a/sources/plugins/justify/lang/de.js +++ b/sources/plugins/justify/lang/de.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'de', { diff --git a/sources/plugins/justify/lang/el.js b/sources/plugins/justify/lang/el.js index 1d50fd2..1bdc64f 100644 --- a/sources/plugins/justify/lang/el.js +++ b/sources/plugins/justify/lang/el.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'el', { diff --git a/sources/plugins/justify/lang/en-au.js b/sources/plugins/justify/lang/en-au.js index 53162fd..68eb09c 100644 --- a/sources/plugins/justify/lang/en-au.js +++ b/sources/plugins/justify/lang/en-au.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'en-au', { diff --git a/sources/plugins/justify/lang/en-ca.js b/sources/plugins/justify/lang/en-ca.js index d64b9bf..27718a2 100644 --- a/sources/plugins/justify/lang/en-ca.js +++ b/sources/plugins/justify/lang/en-ca.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'en-ca', { diff --git a/sources/plugins/justify/lang/en-gb.js b/sources/plugins/justify/lang/en-gb.js index adb3b56..d6db4ff 100644 --- a/sources/plugins/justify/lang/en-gb.js +++ b/sources/plugins/justify/lang/en-gb.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'en-gb', { diff --git a/sources/plugins/justify/lang/en.js b/sources/plugins/justify/lang/en.js index acaaccb..8a72e85 100644 --- a/sources/plugins/justify/lang/en.js +++ b/sources/plugins/justify/lang/en.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'en', { diff --git a/sources/plugins/justify/lang/eo.js b/sources/plugins/justify/lang/eo.js index f58b324..7531dde 100644 --- a/sources/plugins/justify/lang/eo.js +++ b/sources/plugins/justify/lang/eo.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'eo', { diff --git a/sources/plugins/justify/lang/es-mx.js b/sources/plugins/justify/lang/es-mx.js new file mode 100644 index 0000000..96443e0 --- /dev/null +++ b/sources/plugins/justify/lang/es-mx.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'justify', 'es-mx', { + block: 'Justificar', + center: 'Centrar', + left: 'Alinear a la izquierda', + right: 'Alinear a la derecha' +} ); diff --git a/sources/plugins/justify/lang/es.js b/sources/plugins/justify/lang/es.js index 23baf68..2e89bc0 100644 --- a/sources/plugins/justify/lang/es.js +++ b/sources/plugins/justify/lang/es.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'es', { diff --git a/sources/plugins/justify/lang/et.js b/sources/plugins/justify/lang/et.js index 3226e87..0fc4915 100644 --- a/sources/plugins/justify/lang/et.js +++ b/sources/plugins/justify/lang/et.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'et', { diff --git a/sources/plugins/justify/lang/eu.js b/sources/plugins/justify/lang/eu.js index dfcc507..f7d291e 100644 --- a/sources/plugins/justify/lang/eu.js +++ b/sources/plugins/justify/lang/eu.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'eu', { diff --git a/sources/plugins/justify/lang/fa.js b/sources/plugins/justify/lang/fa.js index ed6e14e..03c3c6b 100644 --- a/sources/plugins/justify/lang/fa.js +++ b/sources/plugins/justify/lang/fa.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'fa', { diff --git a/sources/plugins/justify/lang/fi.js b/sources/plugins/justify/lang/fi.js index 52ad58f..6993f10 100644 --- a/sources/plugins/justify/lang/fi.js +++ b/sources/plugins/justify/lang/fi.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'fi', { diff --git a/sources/plugins/justify/lang/fo.js b/sources/plugins/justify/lang/fo.js index 6705be4..f11a575 100644 --- a/sources/plugins/justify/lang/fo.js +++ b/sources/plugins/justify/lang/fo.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'fo', { diff --git a/sources/plugins/justify/lang/fr-ca.js b/sources/plugins/justify/lang/fr-ca.js index bb11f6e..8d59e5e 100644 --- a/sources/plugins/justify/lang/fr-ca.js +++ b/sources/plugins/justify/lang/fr-ca.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'fr-ca', { diff --git a/sources/plugins/justify/lang/fr.js b/sources/plugins/justify/lang/fr.js index 348771c..e44df52 100644 --- a/sources/plugins/justify/lang/fr.js +++ b/sources/plugins/justify/lang/fr.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'fr', { diff --git a/sources/plugins/justify/lang/gl.js b/sources/plugins/justify/lang/gl.js index 0fdd269..1995e8c 100644 --- a/sources/plugins/justify/lang/gl.js +++ b/sources/plugins/justify/lang/gl.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'gl', { diff --git a/sources/plugins/justify/lang/gu.js b/sources/plugins/justify/lang/gu.js index a59efa7..d491684 100644 --- a/sources/plugins/justify/lang/gu.js +++ b/sources/plugins/justify/lang/gu.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'gu', { diff --git a/sources/plugins/justify/lang/he.js b/sources/plugins/justify/lang/he.js index 92e7c9c..ab5c759 100644 --- a/sources/plugins/justify/lang/he.js +++ b/sources/plugins/justify/lang/he.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'he', { diff --git a/sources/plugins/justify/lang/hi.js b/sources/plugins/justify/lang/hi.js index 4606e3d..6a4fae8 100644 --- a/sources/plugins/justify/lang/hi.js +++ b/sources/plugins/justify/lang/hi.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'hi', { diff --git a/sources/plugins/justify/lang/hr.js b/sources/plugins/justify/lang/hr.js index 79282d9..852c686 100644 --- a/sources/plugins/justify/lang/hr.js +++ b/sources/plugins/justify/lang/hr.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'hr', { diff --git a/sources/plugins/justify/lang/hu.js b/sources/plugins/justify/lang/hu.js index 0aaff0f..c7b8dad 100644 --- a/sources/plugins/justify/lang/hu.js +++ b/sources/plugins/justify/lang/hu.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'hu', { diff --git a/sources/plugins/justify/lang/id.js b/sources/plugins/justify/lang/id.js index 297ae8e..d67247c 100644 --- a/sources/plugins/justify/lang/id.js +++ b/sources/plugins/justify/lang/id.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'id', { diff --git a/sources/plugins/justify/lang/is.js b/sources/plugins/justify/lang/is.js index c2f6ad4..d01a43a 100644 --- a/sources/plugins/justify/lang/is.js +++ b/sources/plugins/justify/lang/is.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'is', { diff --git a/sources/plugins/justify/lang/it.js b/sources/plugins/justify/lang/it.js index 10fc772..fd4ae51 100644 --- a/sources/plugins/justify/lang/it.js +++ b/sources/plugins/justify/lang/it.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'it', { diff --git a/sources/plugins/justify/lang/ja.js b/sources/plugins/justify/lang/ja.js index 5665a8b..6c71c86 100644 --- a/sources/plugins/justify/lang/ja.js +++ b/sources/plugins/justify/lang/ja.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ja', { diff --git a/sources/plugins/justify/lang/ka.js b/sources/plugins/justify/lang/ka.js index b80d2ef..4ba0bcb 100644 --- a/sources/plugins/justify/lang/ka.js +++ b/sources/plugins/justify/lang/ka.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ka', { diff --git a/sources/plugins/justify/lang/km.js b/sources/plugins/justify/lang/km.js index 6161873..a7546c3 100644 --- a/sources/plugins/justify/lang/km.js +++ b/sources/plugins/justify/lang/km.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'km', { diff --git a/sources/plugins/justify/lang/ko.js b/sources/plugins/justify/lang/ko.js index 13c155c..346405d 100644 --- a/sources/plugins/justify/lang/ko.js +++ b/sources/plugins/justify/lang/ko.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ko', { diff --git a/sources/plugins/justify/lang/ku.js b/sources/plugins/justify/lang/ku.js index 794b588..24ed914 100644 --- a/sources/plugins/justify/lang/ku.js +++ b/sources/plugins/justify/lang/ku.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ku', { diff --git a/sources/plugins/justify/lang/lt.js b/sources/plugins/justify/lang/lt.js index 1b373fd..08202cb 100644 --- a/sources/plugins/justify/lang/lt.js +++ b/sources/plugins/justify/lang/lt.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'lt', { diff --git a/sources/plugins/justify/lang/lv.js b/sources/plugins/justify/lang/lv.js index e20fe95..8c729c9 100644 --- a/sources/plugins/justify/lang/lv.js +++ b/sources/plugins/justify/lang/lv.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'lv', { diff --git a/sources/plugins/justify/lang/mk.js b/sources/plugins/justify/lang/mk.js index eb9d847..f45fb19 100644 --- a/sources/plugins/justify/lang/mk.js +++ b/sources/plugins/justify/lang/mk.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'mk', { diff --git a/sources/plugins/justify/lang/mn.js b/sources/plugins/justify/lang/mn.js index ff904dd..850e474 100644 --- a/sources/plugins/justify/lang/mn.js +++ b/sources/plugins/justify/lang/mn.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'mn', { diff --git a/sources/plugins/justify/lang/ms.js b/sources/plugins/justify/lang/ms.js index 41d736b..323f8e9 100644 --- a/sources/plugins/justify/lang/ms.js +++ b/sources/plugins/justify/lang/ms.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ms', { diff --git a/sources/plugins/justify/lang/nb.js b/sources/plugins/justify/lang/nb.js index aac1f86..98a3c44 100644 --- a/sources/plugins/justify/lang/nb.js +++ b/sources/plugins/justify/lang/nb.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'nb', { diff --git a/sources/plugins/justify/lang/nl.js b/sources/plugins/justify/lang/nl.js index 3b33e46..972bf82 100644 --- a/sources/plugins/justify/lang/nl.js +++ b/sources/plugins/justify/lang/nl.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'nl', { diff --git a/sources/plugins/justify/lang/no.js b/sources/plugins/justify/lang/no.js index c77daaa..cfcd72a 100644 --- a/sources/plugins/justify/lang/no.js +++ b/sources/plugins/justify/lang/no.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'no', { diff --git a/sources/plugins/justify/lang/oc.js b/sources/plugins/justify/lang/oc.js new file mode 100644 index 0000000..a13e528 --- /dev/null +++ b/sources/plugins/justify/lang/oc.js @@ -0,0 +1,10 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'justify', 'oc', { + block: 'Justificar', + center: 'Centrar', + left: 'Alinhar a esquèrra', + right: 'Alinhar a dreita' +} ); diff --git a/sources/plugins/justify/lang/pl.js b/sources/plugins/justify/lang/pl.js index 07f9807..60922b9 100644 --- a/sources/plugins/justify/lang/pl.js +++ b/sources/plugins/justify/lang/pl.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'pl', { diff --git a/sources/plugins/justify/lang/pt-br.js b/sources/plugins/justify/lang/pt-br.js index bb63097..cf40ad0 100644 --- a/sources/plugins/justify/lang/pt-br.js +++ b/sources/plugins/justify/lang/pt-br.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'pt-br', { diff --git a/sources/plugins/justify/lang/pt.js b/sources/plugins/justify/lang/pt.js index f1f233a..46ac43b 100644 --- a/sources/plugins/justify/lang/pt.js +++ b/sources/plugins/justify/lang/pt.js @@ -1,10 +1,10 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'pt', { block: 'Justificado', - center: 'Alinhar ao Centro', + center: 'Alinhar ao centro', left: 'Alinhar à esquerda', right: 'Alinhar à direita' } ); diff --git a/sources/plugins/justify/lang/ro.js b/sources/plugins/justify/lang/ro.js index 3ef171b..21caeca 100644 --- a/sources/plugins/justify/lang/ro.js +++ b/sources/plugins/justify/lang/ro.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ro', { diff --git a/sources/plugins/justify/lang/ru.js b/sources/plugins/justify/lang/ru.js index 5198476..47c98bb 100644 --- a/sources/plugins/justify/lang/ru.js +++ b/sources/plugins/justify/lang/ru.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ru', { diff --git a/sources/plugins/justify/lang/si.js b/sources/plugins/justify/lang/si.js index a29953e..6d9f373 100644 --- a/sources/plugins/justify/lang/si.js +++ b/sources/plugins/justify/lang/si.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'si', { diff --git a/sources/plugins/justify/lang/sk.js b/sources/plugins/justify/lang/sk.js index f749df5..08c3991 100644 --- a/sources/plugins/justify/lang/sk.js +++ b/sources/plugins/justify/lang/sk.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'sk', { diff --git a/sources/plugins/justify/lang/sl.js b/sources/plugins/justify/lang/sl.js index bd4cd0b..d776354 100644 --- a/sources/plugins/justify/lang/sl.js +++ b/sources/plugins/justify/lang/sl.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'sl', { diff --git a/sources/plugins/justify/lang/sq.js b/sources/plugins/justify/lang/sq.js index b184d79..1ed002c 100644 --- a/sources/plugins/justify/lang/sq.js +++ b/sources/plugins/justify/lang/sq.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'sq', { diff --git a/sources/plugins/justify/lang/sr-latn.js b/sources/plugins/justify/lang/sr-latn.js index 978c540..7fdba23 100644 --- a/sources/plugins/justify/lang/sr-latn.js +++ b/sources/plugins/justify/lang/sr-latn.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'sr-latn', { diff --git a/sources/plugins/justify/lang/sr.js b/sources/plugins/justify/lang/sr.js index 062b368..2314a96 100644 --- a/sources/plugins/justify/lang/sr.js +++ b/sources/plugins/justify/lang/sr.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'sr', { diff --git a/sources/plugins/justify/lang/sv.js b/sources/plugins/justify/lang/sv.js index 9e798ac..cac94c0 100644 --- a/sources/plugins/justify/lang/sv.js +++ b/sources/plugins/justify/lang/sv.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'sv', { diff --git a/sources/plugins/justify/lang/th.js b/sources/plugins/justify/lang/th.js index da8a403..4a9d4f9 100644 --- a/sources/plugins/justify/lang/th.js +++ b/sources/plugins/justify/lang/th.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'th', { diff --git a/sources/plugins/justify/lang/tr.js b/sources/plugins/justify/lang/tr.js index 661782c..fbc512f 100644 --- a/sources/plugins/justify/lang/tr.js +++ b/sources/plugins/justify/lang/tr.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'tr', { diff --git a/sources/plugins/justify/lang/tt.js b/sources/plugins/justify/lang/tt.js index a6b41a1..b36f69c 100644 --- a/sources/plugins/justify/lang/tt.js +++ b/sources/plugins/justify/lang/tt.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'tt', { diff --git a/sources/plugins/justify/lang/ug.js b/sources/plugins/justify/lang/ug.js index 6c71c49..e5861f5 100644 --- a/sources/plugins/justify/lang/ug.js +++ b/sources/plugins/justify/lang/ug.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'ug', { diff --git a/sources/plugins/justify/lang/uk.js b/sources/plugins/justify/lang/uk.js index 55ee9c4..5807f25 100644 --- a/sources/plugins/justify/lang/uk.js +++ b/sources/plugins/justify/lang/uk.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'uk', { diff --git a/sources/plugins/justify/lang/vi.js b/sources/plugins/justify/lang/vi.js index 0d9dce2..de0c170 100644 --- a/sources/plugins/justify/lang/vi.js +++ b/sources/plugins/justify/lang/vi.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'vi', { diff --git a/sources/plugins/justify/lang/zh-cn.js b/sources/plugins/justify/lang/zh-cn.js index f1d3df4..4c19627 100644 --- a/sources/plugins/justify/lang/zh-cn.js +++ b/sources/plugins/justify/lang/zh-cn.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'zh-cn', { diff --git a/sources/plugins/justify/lang/zh.js b/sources/plugins/justify/lang/zh.js index 9cdd4fc..0865d51 100644 --- a/sources/plugins/justify/lang/zh.js +++ b/sources/plugins/justify/lang/zh.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'zh', { diff --git a/sources/plugins/justify/plugin.js b/sources/plugins/justify/plugin.js index 15163b8..21b9221 100644 --- a/sources/plugins/justify/plugin.js +++ b/sources/plugins/justify/plugin.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ @@ -37,7 +37,6 @@ this.name = name; this.value = value; this.context = 'p'; - var classes = editor.config.justifyClasses, blockTag = editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div'; @@ -150,6 +149,17 @@ if ( block.isReadOnly() ) continue; + // Check if style or class might be applied to currently processed element (#455). + var tag = block.getName(), + isAllowedTextAlign, isAllowedCssClass; + + isAllowedTextAlign = editor.activeFilter.check( tag + '{text-align}' ); + isAllowedCssClass = editor.activeFilter.check( tag + '(' + cssClassName + ')' ); + + if ( !isAllowedCssClass && !isAllowedTextAlign ) { + continue; + } + block.removeAttribute( 'align' ); block.removeStyle( 'text-align' ); @@ -158,13 +168,13 @@ var apply = ( this.state == CKEDITOR.TRISTATE_OFF ) && ( !useComputedState || ( getAlignment( block, true ) != this.value ) ); - if ( cssClassName ) { + if ( cssClassName && isAllowedCssClass ) { // Append the desired class name. if ( apply ) block.addClass( cssClassName ); else if ( !className ) block.removeAttribute( 'class' ); - } else if ( apply ) { + } else if ( apply && isAllowedTextAlign ) { block.setStyle( 'text-align', this.value ); } } @@ -177,15 +187,31 @@ }, 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 ); + var firstBlock = path.block || path.blockLimit, + name = firstBlock.getName(), + isEditable = firstBlock.equals( editor.editable() ), + isStylable = this.cssClassName ? editor.activeFilter.check( name + '(' + this.cssClassName + ')' ) : + editor.activeFilter.check( name + '{text-align}' ); + + // #455 + // 1. Check if we are directly in editbale. Justification should be always allowed, and not highlighted. + // Checking path.elements.length is required to filter out situation `body > ul` where ul is selected and path.blockLimit returns editable. + // 2. Check if current element can have applied specific class. + // 3. Check if current element can have applied text-align style. + if ( isEditable && path.elements.length === 1 ) { + this.setState( CKEDITOR.TRISTATE_OFF ); + } else if ( !isEditable && isStylable ) { + // 2 & 3 in one condition. + this.setState( getAlignment( firstBlock, this.editor.config.useComputedState ) == this.value ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); + } else { + this.setState( CKEDITOR.TRISTATE_DISABLED ); + } } }; CKEDITOR.plugins.add( 'justify', { // 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,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,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 icons: 'justifyblock,justifycenter,justifyleft,justifyright', // %REMOVE_LINE_CORE% hidpi: true, // %REMOVE_LINE_CORE% @@ -225,7 +251,6 @@ toolbar: 'align,40' } ); } - editor.on( 'dirChanged', onDirChanged ); } } ); -- cgit v1.2.3