update 1.0.8.0
Commits for version update
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/hidpi/justifyblock.png
vendored
Normal file
After Width: | Height: | Size: 882 B |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/hidpi/justifycenter.png
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/hidpi/justifyleft.png
vendored
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/hidpi/justifyright.png
vendored
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/justifyblock.png
vendored
Normal file
After Width: | Height: | Size: 496 B |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/justifycenter.png
vendored
Normal file
After Width: | Height: | Size: 609 B |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/justifyleft.png
vendored
Normal file
After Width: | Height: | Size: 558 B |
BIN
public/vendor/unisharp/laravel-ckeditor/plugins/justify/icons/justifyright.png
vendored
Normal file
After Width: | Height: | Size: 554 B |
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/af.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","af",{block:"Uitvul",center:"Sentreer",left:"Links oplyn",right:"Regs oplyn"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ar.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ar",{block:"ضبط",center:"توسيط",left:"محاذاة إلى اليسار",right:"محاذاة إلى اليمين"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/bg.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","bg",{block:"Двустранно подравняване",center:"Център",left:"Подравни в ляво",right:"Подравни в дясно"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/bn.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","bn",{block:"ব্লক জাস্টিফাই",center:"মাঝ বরাবর ঘেষা",left:"বা দিকে ঘেঁষা",right:"ডান দিকে ঘেঁষা"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/bs.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","bs",{block:"Puno poravnanje",center:"Centralno poravnanje",left:"Lijevo poravnanje",right:"Desno poravnanje"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ca.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ca",{block:"Justificat",center:"Centrat",left:"Alinea a l'esquerra",right:"Alinea a la dreta"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/cs.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","cs",{block:"Zarovnat do bloku",center:"Zarovnat na střed",left:"Zarovnat vlevo",right:"Zarovnat vpravo"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/cy.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","cy",{block:"Unioni",center:"Alinio i'r Canol",left:"Alinio i'r Chwith",right:"Alinio i'r Dde"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/da.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","da",{block:"Lige margener",center:"Centreret",left:"Venstrestillet",right:"Højrestillet"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/de.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","de",{block:"Blocksatz",center:"Zentriert",left:"Linksbündig",right:"Rechtsbündig"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/el.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","el",{block:"Πλήρης Στοίχιση",center:"Στο Κέντρο",left:"Στοίχιση Αριστερά",right:"Στοίχιση Δεξιά"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/en-au.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","en-au",{block:"Justify",center:"Centre",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/en-ca.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","en-ca",{block:"Justify",center:"Centre",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/en-gb.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","en-gb",{block:"Justify",center:"Centre",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/en.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","en",{block:"Justify",center:"Center",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/eo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","eo",{block:"Ĝisrandigi Ambaŭflanke",center:"Centrigi",left:"Ĝisrandigi maldekstren",right:"Ĝisrandigi dekstren"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/es.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","es",{block:"Justificado",center:"Centrar",left:"Alinear a Izquierda",right:"Alinear a Derecha"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/et.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","et",{block:"Rööpjoondus",center:"Keskjoondus",left:"Vasakjoondus",right:"Paremjoondus"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/eu.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","eu",{block:"Justifikatu",center:"Erdian",left:"Lerrokatu ezkerrean",right:"Lerrokatu eskuinean"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/fa.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","fa",{block:"بلوک چین",center:"میان چین",left:"چپ چین",right:"راست چین"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/fi.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","fi",{block:"Tasaa molemmat reunat",center:"Keskitä",left:"Tasaa vasemmat reunat",right:"Tasaa oikeat reunat"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/fo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","fo",{block:"Javnir tekstkantar",center:"Miðsett",left:"Vinstrasett",right:"Høgrasett"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/fr-ca.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","fr-ca",{block:"Justifié",center:"Centré",left:"Aligner à gauche",right:"Aligner à Droite"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/fr.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","fr",{block:"Justifier",center:"Centrer",left:"Aligner à gauche",right:"Aligner à droite"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/gl.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","gl",{block:"Xustificado",center:"Centrado",left:"Aliñar á esquerda",right:"Aliñar á dereita"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/gu.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","gu",{block:"બ્લૉક, અંતરાય જસ્ટિફાઇ",center:"સંકેંદ્રણ/સેંટરિંગ",left:"ડાબી બાજુએ/બાજુ તરફ",right:"જમણી બાજુએ/બાજુ તરફ"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/he.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","he",{block:"יישור לשוליים",center:"מרכוז",left:"יישור לשמאל",right:"יישור לימין"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/hi.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","hi",{block:"ब्लॉक जस्टीफ़ाई",center:"बीच में",left:"बायीं तरफ",right:"दायीं तरफ"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/hr.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","hr",{block:"Blok poravnanje",center:"Središnje poravnanje",left:"Lijevo poravnanje",right:"Desno poravnanje"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/hu.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","hu",{block:"Sorkizárt",center:"Középre",left:"Balra",right:"Jobbra"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/id.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","id",{block:"Rata kiri-kanan",center:"Pusat",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/is.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","is",{block:"Jafna báðum megin",center:"Miðja texta",left:"Vinstrijöfnun",right:"Hægrijöfnun"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/it.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","it",{block:"Giustifica",center:"Centra",left:"Allinea a sinistra",right:"Allinea a destra"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ja.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ja",{block:"両端揃え",center:"中央揃え",left:"左揃え",right:"右揃え"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ka.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ka",{block:"გადასწორება",center:"შუაში სწორება",left:"მარცხნივ სწორება",right:"მარჯვნივ სწორება"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/km.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","km",{block:"តម្រឹមពេញ",center:"កណ្ដាល",left:"តម្រឹមឆ្វេង",right:"តម្រឹមស្ដាំ"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ko.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ko",{block:"양쪽 맞춤",center:"가운데 정렬",left:"왼쪽 정렬",right:"오른쪽 정렬"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ku.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ku",{block:"هاوستوونی",center:"ناوەڕاست",left:"بەهێڵ کردنی چەپ",right:"بەهێڵ کردنی ڕاست"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/lt.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","lt",{block:"Lygiuoti abi puses",center:"Centruoti",left:"Lygiuoti kairę",right:"Lygiuoti dešinę"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/lv.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
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"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/mk.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","mk",{block:"Justify",center:"Center",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/mn.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","mn",{block:"Тэгшлэх",center:"Голлуулах",left:"Зүүн талд тулгах",right:"Баруун талд тулгах"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ms.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ms",{block:"Jajaran Blok",center:"Jajaran Tengah",left:"Jajaran Kiri",right:"Jajaran Kanan"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/nb.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","nb",{block:"Blokkjuster",center:"Midtstill",left:"Venstrejuster",right:"Høyrejuster"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/nl.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","nl",{block:"Uitvullen",center:"Centreren",left:"Links uitlijnen",right:"Rechts uitlijnen"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/no.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","no",{block:"Blokkjuster",center:"Midtstill",left:"Venstrejuster",right:"Høyrejuster"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/pl.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","pl",{block:"Wyjustuj",center:"Wyśrodkuj",left:"Wyrównaj do lewej",right:"Wyrównaj do prawej"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/pt-br.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","pt-br",{block:"Justificado",center:"Centralizar",left:"Alinhar Esquerda",right:"Alinhar Direita"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/pt.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","pt",{block:"Justificado",center:"Alinhar ao Centro",left:"Alinhar à esquerda",right:"Alinhar à direita"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ro.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ro",{block:"Aliniere în bloc (Block Justify)",center:"Aliniere centrală",left:"Aliniere la stânga",right:"Aliniere la dreapta"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ru.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ru",{block:"По ширине",center:"По центру",left:"По левому краю",right:"По правому краю"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/si.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","si",{block:"Justify",center:"මධ්ය",left:"Align Left",right:"Align Right"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/sk.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","sk",{block:"Zarovnať do bloku",center:"Zarovnať na stred",left:"Zarovnať vľavo",right:"Zarovnať vpravo"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/sl.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","sl",{block:"Obojestranska poravnava",center:"Sredinska poravnava",left:"Leva poravnava",right:"Desna poravnava"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/sq.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","sq",{block:"Zgjero",center:"Qendër",left:"Rreshto majtas",right:"Rreshto Djathtas"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/sr-latn.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","sr-latn",{block:"Obostrano ravnanje",center:"Centriran tekst",left:"Levo ravnanje",right:"Desno ravnanje"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/sr.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","sr",{block:"Обострано равнање",center:"Центриран текст",left:"Лево равнање",right:"Десно равнање"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/sv.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","sv",{block:"Justera till marginaler",center:"Centrera",left:"Vänsterjustera",right:"Högerjustera"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/th.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","th",{block:"จัดพอดีหน้ากระดาษ",center:"จัดกึ่งกลาง",left:"จัดชิดซ้าย",right:"จัดชิดขวา"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/tr.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","tr",{block:"İki Kenara Yaslanmış",center:"Ortalanmış",left:"Sola Dayalı",right:"Sağa Dayalı"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/tt.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","tt",{block:"Киңлеккә карап тигезләү",center:"Үзәккә тигезләү",left:"Сул як кырыйдан тигезләү",right:"Уң як кырыйдан тигезләү"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/ug.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","ug",{block:"ئىككى تەرەپتىن توغرىلا",center:"ئوتتۇرىغا توغرىلا",left:"سولغا توغرىلا",right:"ئوڭغا توغرىلا"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/uk.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","uk",{block:"По ширині",center:"По центру",left:"По лівому краю",right:"По правому краю"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/vi.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","vi",{block:"Canh đều",center:"Canh giữa",left:"Canh trái",right:"Canh phải"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/zh-cn.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","zh-cn",{block:"两端对齐",center:"居中",left:"左对齐",right:"右对齐"});
|
1
public/vendor/unisharp/laravel-ckeditor/plugins/justify/lang/zh.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("justify","zh",{block:"左右對齊",center:"置中",left:"靠左對齊",right:"靠右對齊"});
|
12
public/vendor/unisharp/laravel-ckeditor/plugins/justify/plugin.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
(function(){function n(a,c){c=void 0===c||c;var b;if(c)b=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){b=a.getParent();if(!b)break;a=b}b=a.getStyle("text-align")||a.getAttribute("align")||""}b&&(b=b.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!b&&c&&(b="rtl"==a.getComputedStyle("direction")?"right":"left");return b}function g(a,c,b){this.editor=a;this.name=c;this.value=b;this.context="p";c=a.config.justifyClasses;var h=a.config.enterMode==
|
||||
CKEDITOR.ENTER_P?"p":"div";if(c){switch(b){case "left":this.cssClassName=c[0];break;case "center":this.cssClassName=c[1];break;case "right":this.cssClassName=c[2];break;case "justify":this.cssClassName=c[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+c.join("|")+")(?\x3d$|\\s)");this.requiredContent=h+"("+this.cssClassName+")"}else this.requiredContent=h+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",
|
||||
classes:this.cssClassName||null}};a.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function l(a){var c=a.editor,b=c.createRange();b.setStartBefore(a.data.node);b.setEndAfter(a.data.node);for(var h=new CKEDITOR.dom.walker(b),d;d=h.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(a.data.node)&&d.getDirection())b.setStartAfter(d),h=new CKEDITOR.dom.walker(b);else{var e=c.config.justifyClasses;e&&(d.hasClass(e[0])?(d.removeClass(e[0]),d.addClass(e[2])):d.hasClass(e[2])&&(d.removeClass(e[2]),
|
||||
d.addClass(e[0])));e=d.getStyle("text-align");"left"==e?d.setStyle("text-align","right"):"right"==e&&d.setStyle("text-align","left")}}g.prototype={exec:function(a){var c=a.getSelection(),b=a.config.enterMode;if(c){for(var h=c.createBookmarks(),d=c.getRanges(),e=this.cssClassName,g,f,k=a.config.useComputedState,k=void 0===k||k,m=d.length-1;0<=m;m--)for(g=d[m].createIterator(),g.enlargeBr=b!=CKEDITOR.ENTER_BR;f=g.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)if(!f.isReadOnly()){f.removeAttribute("align");
|
||||
f.removeStyle("text-align");var l=e&&(f.$.className=CKEDITOR.tools.ltrim(f.$.className.replace(this.cssClassRegex,""))),p=this.state==CKEDITOR.TRISTATE_OFF&&(!k||n(f,!0)!=this.value);e?p?f.addClass(e):l||f.removeAttribute("class"):p&&f.setStyle("text-align",this.value)}a.focus();a.forceNextSelectionCheck();c.selectBookmarks(h)}},refresh:function(a,c){var b=c.block||c.blockLimit;this.setState("body"!=b.getName()&&n(b,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,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",icons:"justifyblock,justifycenter,justifyleft,justifyright",hidpi:!0,init:function(a){if(!a.blockless){var c=new g(a,"justifyleft","left"),b=new g(a,"justifycenter","center"),h=new g(a,"justifyright","right"),d=new g(a,"justifyblock","justify");
|
||||
a.addCommand("justifyleft",c);a.addCommand("justifycenter",b);a.addCommand("justifyright",h);a.addCommand("justifyblock",d);a.ui.addButton&&(a.ui.addButton("JustifyLeft",{label:a.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),a.ui.addButton("JustifyCenter",{label:a.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),a.ui.addButton("JustifyRight",{label:a.lang.justify.right,command:"justifyright",toolbar:"align,30"}),a.ui.addButton("JustifyBlock",{label:a.lang.justify.block,
|
||||
command:"justifyblock",toolbar:"align,40"}));a.on("dirChanged",l)}}})})();
|