summaryrefslogtreecommitdiff
path: root/plugins/removeformat
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2013-07-15 14:22:23 +0100
committerlsces <lester@lsces.co.uk>2013-07-15 14:22:23 +0100
commit6d4c4f12d15ae68d912972921997a8c5180c9aea (patch)
tree104274447272d09617c483cf6b0ee79559c9fe6f /plugins/removeformat
parentde6d09676a9527919813a4474cc28af554a35fe1 (diff)
downloadckeditor-6d4c4f12d15ae68d912972921997a8c5180c9aea.tar.gz
ckeditor-6d4c4f12d15ae68d912972921997a8c5180c9aea.tar.bz2
ckeditor-6d4c4f12d15ae68d912972921997a8c5180c9aea.zip
Upgrade to CKEditor V4
Directory structure changed so many files removed and replace in a new location This batch is the delete and add
Diffstat (limited to 'plugins/removeformat')
-rw-r--r--plugins/removeformat/icons/removeformat.pngbin0 -> 889 bytes
-rw-r--r--plugins/removeformat/lang/af.js7
-rw-r--r--plugins/removeformat/lang/ar.js7
-rw-r--r--plugins/removeformat/lang/bg.js7
-rw-r--r--plugins/removeformat/lang/bn.js7
-rw-r--r--plugins/removeformat/lang/bs.js7
-rw-r--r--plugins/removeformat/lang/ca.js7
-rw-r--r--plugins/removeformat/lang/cs.js7
-rw-r--r--plugins/removeformat/lang/cy.js7
-rw-r--r--plugins/removeformat/lang/da.js7
-rw-r--r--plugins/removeformat/lang/de.js7
-rw-r--r--plugins/removeformat/lang/el.js7
-rw-r--r--plugins/removeformat/lang/en-au.js7
-rw-r--r--plugins/removeformat/lang/en-ca.js7
-rw-r--r--plugins/removeformat/lang/en-gb.js7
-rw-r--r--plugins/removeformat/lang/en.js7
-rw-r--r--plugins/removeformat/lang/eo.js7
-rw-r--r--plugins/removeformat/lang/es.js7
-rw-r--r--plugins/removeformat/lang/et.js7
-rw-r--r--plugins/removeformat/lang/eu.js7
-rw-r--r--plugins/removeformat/lang/fa.js7
-rw-r--r--plugins/removeformat/lang/fi.js7
-rw-r--r--plugins/removeformat/lang/fo.js7
-rw-r--r--plugins/removeformat/lang/fr-ca.js7
-rw-r--r--plugins/removeformat/lang/fr.js7
-rw-r--r--plugins/removeformat/lang/gl.js7
-rw-r--r--plugins/removeformat/lang/gu.js7
-rw-r--r--plugins/removeformat/lang/he.js7
-rw-r--r--plugins/removeformat/lang/hi.js7
-rw-r--r--plugins/removeformat/lang/hr.js7
-rw-r--r--plugins/removeformat/lang/hu.js7
-rw-r--r--plugins/removeformat/lang/is.js7
-rw-r--r--plugins/removeformat/lang/it.js7
-rw-r--r--plugins/removeformat/lang/ja.js7
-rw-r--r--plugins/removeformat/lang/ka.js7
-rw-r--r--plugins/removeformat/lang/km.js7
-rw-r--r--plugins/removeformat/lang/ko.js7
-rw-r--r--plugins/removeformat/lang/ku.js7
-rw-r--r--plugins/removeformat/lang/lt.js7
-rw-r--r--plugins/removeformat/lang/lv.js7
-rw-r--r--plugins/removeformat/lang/mk.js7
-rw-r--r--plugins/removeformat/lang/mn.js7
-rw-r--r--plugins/removeformat/lang/ms.js7
-rw-r--r--plugins/removeformat/lang/nb.js7
-rw-r--r--plugins/removeformat/lang/nl.js7
-rw-r--r--plugins/removeformat/lang/no.js7
-rw-r--r--plugins/removeformat/lang/pl.js7
-rw-r--r--plugins/removeformat/lang/pt-br.js7
-rw-r--r--plugins/removeformat/lang/pt.js7
-rw-r--r--plugins/removeformat/lang/ro.js7
-rw-r--r--plugins/removeformat/lang/ru.js7
-rw-r--r--plugins/removeformat/lang/si.js7
-rw-r--r--plugins/removeformat/lang/sk.js7
-rw-r--r--plugins/removeformat/lang/sl.js7
-rw-r--r--plugins/removeformat/lang/sq.js7
-rw-r--r--plugins/removeformat/lang/sr-latn.js7
-rw-r--r--plugins/removeformat/lang/sr.js7
-rw-r--r--plugins/removeformat/lang/sv.js7
-rw-r--r--plugins/removeformat/lang/th.js7
-rw-r--r--plugins/removeformat/lang/tr.js7
-rw-r--r--plugins/removeformat/lang/ug.js7
-rw-r--r--plugins/removeformat/lang/uk.js7
-rw-r--r--plugins/removeformat/lang/vi.js7
-rw-r--r--plugins/removeformat/lang/zh-cn.js7
-rw-r--r--plugins/removeformat/lang/zh.js7
-rw-r--r--plugins/removeformat/plugin.js173
66 files changed, 621 insertions, 0 deletions
diff --git a/plugins/removeformat/icons/removeformat.png b/plugins/removeformat/icons/removeformat.png
new file mode 100644
index 0000000..c313632
--- /dev/null
+++ b/plugins/removeformat/icons/removeformat.png
Binary files differ
diff --git a/plugins/removeformat/lang/af.js b/plugins/removeformat/lang/af.js
new file mode 100644
index 0000000..021b188
--- /dev/null
+++ b/plugins/removeformat/lang/af.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'af', {
+ toolbar: 'Verwyder opmaak'
+});
diff --git a/plugins/removeformat/lang/ar.js b/plugins/removeformat/lang/ar.js
new file mode 100644
index 0000000..0be4e23
--- /dev/null
+++ b/plugins/removeformat/lang/ar.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ar', {
+ toolbar: 'إزالة التنسيقات'
+});
diff --git a/plugins/removeformat/lang/bg.js b/plugins/removeformat/lang/bg.js
new file mode 100644
index 0000000..18e3443
--- /dev/null
+++ b/plugins/removeformat/lang/bg.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'bg', {
+ toolbar: 'Премахване на форматирането'
+});
diff --git a/plugins/removeformat/lang/bn.js b/plugins/removeformat/lang/bn.js
new file mode 100644
index 0000000..f1b23d2
--- /dev/null
+++ b/plugins/removeformat/lang/bn.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'bn', {
+ toolbar: 'ফরমেট সরাও'
+});
diff --git a/plugins/removeformat/lang/bs.js b/plugins/removeformat/lang/bs.js
new file mode 100644
index 0000000..3314a71
--- /dev/null
+++ b/plugins/removeformat/lang/bs.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'bs', {
+ toolbar: 'Poništi format'
+});
diff --git a/plugins/removeformat/lang/ca.js b/plugins/removeformat/lang/ca.js
new file mode 100644
index 0000000..7b0742e
--- /dev/null
+++ b/plugins/removeformat/lang/ca.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ca', {
+ toolbar: 'Elimina Format'
+});
diff --git a/plugins/removeformat/lang/cs.js b/plugins/removeformat/lang/cs.js
new file mode 100644
index 0000000..7b03bd8
--- /dev/null
+++ b/plugins/removeformat/lang/cs.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'cs', {
+ toolbar: 'Odstranit formátování'
+});
diff --git a/plugins/removeformat/lang/cy.js b/plugins/removeformat/lang/cy.js
new file mode 100644
index 0000000..3fd5e1d
--- /dev/null
+++ b/plugins/removeformat/lang/cy.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'cy', {
+ toolbar: 'Tynnu Fformat'
+});
diff --git a/plugins/removeformat/lang/da.js b/plugins/removeformat/lang/da.js
new file mode 100644
index 0000000..95baacf
--- /dev/null
+++ b/plugins/removeformat/lang/da.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'da', {
+ toolbar: 'Fjern formatering'
+});
diff --git a/plugins/removeformat/lang/de.js b/plugins/removeformat/lang/de.js
new file mode 100644
index 0000000..01595d8
--- /dev/null
+++ b/plugins/removeformat/lang/de.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'de', {
+ toolbar: 'Formatierungen entfernen'
+});
diff --git a/plugins/removeformat/lang/el.js b/plugins/removeformat/lang/el.js
new file mode 100644
index 0000000..765c828
--- /dev/null
+++ b/plugins/removeformat/lang/el.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'el', {
+ toolbar: 'Αφαίρεση Μορφοποίησης'
+});
diff --git a/plugins/removeformat/lang/en-au.js b/plugins/removeformat/lang/en-au.js
new file mode 100644
index 0000000..2eb37ac
--- /dev/null
+++ b/plugins/removeformat/lang/en-au.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'en-au', {
+ toolbar: 'Remove Format'
+});
diff --git a/plugins/removeformat/lang/en-ca.js b/plugins/removeformat/lang/en-ca.js
new file mode 100644
index 0000000..183ff18
--- /dev/null
+++ b/plugins/removeformat/lang/en-ca.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'en-ca', {
+ toolbar: 'Remove Format'
+});
diff --git a/plugins/removeformat/lang/en-gb.js b/plugins/removeformat/lang/en-gb.js
new file mode 100644
index 0000000..3648e9e
--- /dev/null
+++ b/plugins/removeformat/lang/en-gb.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'en-gb', {
+ toolbar: 'Remove Format'
+});
diff --git a/plugins/removeformat/lang/en.js b/plugins/removeformat/lang/en.js
new file mode 100644
index 0000000..c94ef08
--- /dev/null
+++ b/plugins/removeformat/lang/en.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'en', {
+ toolbar: 'Remove Format'
+});
diff --git a/plugins/removeformat/lang/eo.js b/plugins/removeformat/lang/eo.js
new file mode 100644
index 0000000..57c9f6e
--- /dev/null
+++ b/plugins/removeformat/lang/eo.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'eo', {
+ toolbar: 'Forigi Formaton'
+});
diff --git a/plugins/removeformat/lang/es.js b/plugins/removeformat/lang/es.js
new file mode 100644
index 0000000..90323f9
--- /dev/null
+++ b/plugins/removeformat/lang/es.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'es', {
+ toolbar: 'Eliminar Formato'
+});
diff --git a/plugins/removeformat/lang/et.js b/plugins/removeformat/lang/et.js
new file mode 100644
index 0000000..9c0394f
--- /dev/null
+++ b/plugins/removeformat/lang/et.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'et', {
+ toolbar: 'Vormingu eemaldamine'
+});
diff --git a/plugins/removeformat/lang/eu.js b/plugins/removeformat/lang/eu.js
new file mode 100644
index 0000000..80c3ae5
--- /dev/null
+++ b/plugins/removeformat/lang/eu.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'eu', {
+ toolbar: 'Kendu Formatua'
+});
diff --git a/plugins/removeformat/lang/fa.js b/plugins/removeformat/lang/fa.js
new file mode 100644
index 0000000..159577f
--- /dev/null
+++ b/plugins/removeformat/lang/fa.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'fa', {
+ toolbar: 'برداشتن فرمت'
+});
diff --git a/plugins/removeformat/lang/fi.js b/plugins/removeformat/lang/fi.js
new file mode 100644
index 0000000..ac5660e
--- /dev/null
+++ b/plugins/removeformat/lang/fi.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'fi', {
+ toolbar: 'Poista muotoilu'
+});
diff --git a/plugins/removeformat/lang/fo.js b/plugins/removeformat/lang/fo.js
new file mode 100644
index 0000000..0a55b70
--- /dev/null
+++ b/plugins/removeformat/lang/fo.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'fo', {
+ toolbar: 'Strika sniðgeving'
+});
diff --git a/plugins/removeformat/lang/fr-ca.js b/plugins/removeformat/lang/fr-ca.js
new file mode 100644
index 0000000..2addbec
--- /dev/null
+++ b/plugins/removeformat/lang/fr-ca.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'fr-ca', {
+ toolbar: 'Supprimer le formatage'
+});
diff --git a/plugins/removeformat/lang/fr.js b/plugins/removeformat/lang/fr.js
new file mode 100644
index 0000000..c192eb5
--- /dev/null
+++ b/plugins/removeformat/lang/fr.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'fr', {
+ toolbar: 'Supprimer la mise en forme'
+});
diff --git a/plugins/removeformat/lang/gl.js b/plugins/removeformat/lang/gl.js
new file mode 100644
index 0000000..f7a8a32
--- /dev/null
+++ b/plugins/removeformat/lang/gl.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'gl', {
+ toolbar: 'Retirar o formato'
+});
diff --git a/plugins/removeformat/lang/gu.js b/plugins/removeformat/lang/gu.js
new file mode 100644
index 0000000..49a972e
--- /dev/null
+++ b/plugins/removeformat/lang/gu.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'gu', {
+ toolbar: 'ફૉર્મટ કાઢવું'
+});
diff --git a/plugins/removeformat/lang/he.js b/plugins/removeformat/lang/he.js
new file mode 100644
index 0000000..5001e20
--- /dev/null
+++ b/plugins/removeformat/lang/he.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'he', {
+ toolbar: 'הסרת העיצוב'
+});
diff --git a/plugins/removeformat/lang/hi.js b/plugins/removeformat/lang/hi.js
new file mode 100644
index 0000000..f373a27
--- /dev/null
+++ b/plugins/removeformat/lang/hi.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'hi', {
+ toolbar: 'फ़ॉर्मैट हटायें'
+});
diff --git a/plugins/removeformat/lang/hr.js b/plugins/removeformat/lang/hr.js
new file mode 100644
index 0000000..5f50528
--- /dev/null
+++ b/plugins/removeformat/lang/hr.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'hr', {
+ toolbar: 'Ukloni formatiranje'
+});
diff --git a/plugins/removeformat/lang/hu.js b/plugins/removeformat/lang/hu.js
new file mode 100644
index 0000000..c498654
--- /dev/null
+++ b/plugins/removeformat/lang/hu.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'hu', {
+ toolbar: 'Formázás eltávolítása'
+});
diff --git a/plugins/removeformat/lang/is.js b/plugins/removeformat/lang/is.js
new file mode 100644
index 0000000..c37f5ae
--- /dev/null
+++ b/plugins/removeformat/lang/is.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'is', {
+ toolbar: 'Fjarlægja snið'
+});
diff --git a/plugins/removeformat/lang/it.js b/plugins/removeformat/lang/it.js
new file mode 100644
index 0000000..803b5b5
--- /dev/null
+++ b/plugins/removeformat/lang/it.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'it', {
+ toolbar: 'Elimina formattazione'
+});
diff --git a/plugins/removeformat/lang/ja.js b/plugins/removeformat/lang/ja.js
new file mode 100644
index 0000000..e813840
--- /dev/null
+++ b/plugins/removeformat/lang/ja.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ja', {
+ toolbar: 'フォーマット削除'
+});
diff --git a/plugins/removeformat/lang/ka.js b/plugins/removeformat/lang/ka.js
new file mode 100644
index 0000000..81beef1
--- /dev/null
+++ b/plugins/removeformat/lang/ka.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ka', {
+ toolbar: 'ფორმატირების მოხსნა'
+});
diff --git a/plugins/removeformat/lang/km.js b/plugins/removeformat/lang/km.js
new file mode 100644
index 0000000..6071884
--- /dev/null
+++ b/plugins/removeformat/lang/km.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'km', {
+ toolbar: 'ជម្រះ​ទ្រង់​ទ្រាយ'
+});
diff --git a/plugins/removeformat/lang/ko.js b/plugins/removeformat/lang/ko.js
new file mode 100644
index 0000000..5620d32
--- /dev/null
+++ b/plugins/removeformat/lang/ko.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ko', {
+ toolbar: '포맷 지우기'
+});
diff --git a/plugins/removeformat/lang/ku.js b/plugins/removeformat/lang/ku.js
new file mode 100644
index 0000000..531cde9
--- /dev/null
+++ b/plugins/removeformat/lang/ku.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ku', {
+ toolbar: 'لابردنی داڕشتەکە'
+});
diff --git a/plugins/removeformat/lang/lt.js b/plugins/removeformat/lang/lt.js
new file mode 100644
index 0000000..d74da42
--- /dev/null
+++ b/plugins/removeformat/lang/lt.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'lt', {
+ toolbar: 'Panaikinti formatą'
+});
diff --git a/plugins/removeformat/lang/lv.js b/plugins/removeformat/lang/lv.js
new file mode 100644
index 0000000..2d2aa56
--- /dev/null
+++ b/plugins/removeformat/lang/lv.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'lv', {
+ toolbar: 'Noņemt stilus'
+});
diff --git a/plugins/removeformat/lang/mk.js b/plugins/removeformat/lang/mk.js
new file mode 100644
index 0000000..7d261a5
--- /dev/null
+++ b/plugins/removeformat/lang/mk.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'mk', {
+ toolbar: 'Remove Format' // MISSING
+});
diff --git a/plugins/removeformat/lang/mn.js b/plugins/removeformat/lang/mn.js
new file mode 100644
index 0000000..d3faebc
--- /dev/null
+++ b/plugins/removeformat/lang/mn.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'mn', {
+ toolbar: 'Параргафын загварыг авч хаях'
+});
diff --git a/plugins/removeformat/lang/ms.js b/plugins/removeformat/lang/ms.js
new file mode 100644
index 0000000..ba0aac2
--- /dev/null
+++ b/plugins/removeformat/lang/ms.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ms', {
+ toolbar: 'Buang Format'
+});
diff --git a/plugins/removeformat/lang/nb.js b/plugins/removeformat/lang/nb.js
new file mode 100644
index 0000000..652cf45
--- /dev/null
+++ b/plugins/removeformat/lang/nb.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'nb', {
+ toolbar: 'Fjern formatering'
+});
diff --git a/plugins/removeformat/lang/nl.js b/plugins/removeformat/lang/nl.js
new file mode 100644
index 0000000..93bd72b
--- /dev/null
+++ b/plugins/removeformat/lang/nl.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'nl', {
+ toolbar: 'Opmaak verwijderen'
+});
diff --git a/plugins/removeformat/lang/no.js b/plugins/removeformat/lang/no.js
new file mode 100644
index 0000000..ef6cfbf
--- /dev/null
+++ b/plugins/removeformat/lang/no.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'no', {
+ toolbar: 'Fjern formatering'
+});
diff --git a/plugins/removeformat/lang/pl.js b/plugins/removeformat/lang/pl.js
new file mode 100644
index 0000000..0133272
--- /dev/null
+++ b/plugins/removeformat/lang/pl.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'pl', {
+ toolbar: 'Usuń formatowanie'
+});
diff --git a/plugins/removeformat/lang/pt-br.js b/plugins/removeformat/lang/pt-br.js
new file mode 100644
index 0000000..9698019
--- /dev/null
+++ b/plugins/removeformat/lang/pt-br.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'pt-br', {
+ toolbar: 'Remover Formatação'
+});
diff --git a/plugins/removeformat/lang/pt.js b/plugins/removeformat/lang/pt.js
new file mode 100644
index 0000000..7f21a0f
--- /dev/null
+++ b/plugins/removeformat/lang/pt.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'pt', {
+ toolbar: 'Eliminar Formato'
+});
diff --git a/plugins/removeformat/lang/ro.js b/plugins/removeformat/lang/ro.js
new file mode 100644
index 0000000..e225c65
--- /dev/null
+++ b/plugins/removeformat/lang/ro.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ro', {
+ toolbar: 'Înlătură formatarea'
+});
diff --git a/plugins/removeformat/lang/ru.js b/plugins/removeformat/lang/ru.js
new file mode 100644
index 0000000..e695e3b
--- /dev/null
+++ b/plugins/removeformat/lang/ru.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ru', {
+ toolbar: 'Убрать форматирование'
+});
diff --git a/plugins/removeformat/lang/si.js b/plugins/removeformat/lang/si.js
new file mode 100644
index 0000000..2bf61ca
--- /dev/null
+++ b/plugins/removeformat/lang/si.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'si', {
+ toolbar: 'සැකසීම වෙනස් කරන්න'
+});
diff --git a/plugins/removeformat/lang/sk.js b/plugins/removeformat/lang/sk.js
new file mode 100644
index 0000000..80baef0
--- /dev/null
+++ b/plugins/removeformat/lang/sk.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'sk', {
+ toolbar: 'Odstrániť formátovanie'
+});
diff --git a/plugins/removeformat/lang/sl.js b/plugins/removeformat/lang/sl.js
new file mode 100644
index 0000000..b55ebc8
--- /dev/null
+++ b/plugins/removeformat/lang/sl.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'sl', {
+ toolbar: 'Odstrani oblikovanje'
+});
diff --git a/plugins/removeformat/lang/sq.js b/plugins/removeformat/lang/sq.js
new file mode 100644
index 0000000..fdce429
--- /dev/null
+++ b/plugins/removeformat/lang/sq.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'sq', {
+ toolbar: 'Largo Formatin'
+});
diff --git a/plugins/removeformat/lang/sr-latn.js b/plugins/removeformat/lang/sr-latn.js
new file mode 100644
index 0000000..fc20f76
--- /dev/null
+++ b/plugins/removeformat/lang/sr-latn.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'sr-latn', {
+ toolbar: 'Ukloni formatiranje'
+});
diff --git a/plugins/removeformat/lang/sr.js b/plugins/removeformat/lang/sr.js
new file mode 100644
index 0000000..50aca5e
--- /dev/null
+++ b/plugins/removeformat/lang/sr.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'sr', {
+ toolbar: 'Уклони форматирање'
+});
diff --git a/plugins/removeformat/lang/sv.js b/plugins/removeformat/lang/sv.js
new file mode 100644
index 0000000..858b37a
--- /dev/null
+++ b/plugins/removeformat/lang/sv.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'sv', {
+ toolbar: 'Radera formatering'
+});
diff --git a/plugins/removeformat/lang/th.js b/plugins/removeformat/lang/th.js
new file mode 100644
index 0000000..66a8912
--- /dev/null
+++ b/plugins/removeformat/lang/th.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'th', {
+ toolbar: 'ล้างรูปแบบ'
+});
diff --git a/plugins/removeformat/lang/tr.js b/plugins/removeformat/lang/tr.js
new file mode 100644
index 0000000..f293f4e
--- /dev/null
+++ b/plugins/removeformat/lang/tr.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'tr', {
+ toolbar: 'Biçimi Kaldır'
+});
diff --git a/plugins/removeformat/lang/ug.js b/plugins/removeformat/lang/ug.js
new file mode 100644
index 0000000..d954cdb
--- /dev/null
+++ b/plugins/removeformat/lang/ug.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'ug', {
+ toolbar: 'پىچىمنى چىقىرىۋەت'
+});
diff --git a/plugins/removeformat/lang/uk.js b/plugins/removeformat/lang/uk.js
new file mode 100644
index 0000000..ec60212
--- /dev/null
+++ b/plugins/removeformat/lang/uk.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'uk', {
+ toolbar: 'Очистити форматування'
+});
diff --git a/plugins/removeformat/lang/vi.js b/plugins/removeformat/lang/vi.js
new file mode 100644
index 0000000..003f794
--- /dev/null
+++ b/plugins/removeformat/lang/vi.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'vi', {
+ toolbar: 'Xoá định dạng'
+});
diff --git a/plugins/removeformat/lang/zh-cn.js b/plugins/removeformat/lang/zh-cn.js
new file mode 100644
index 0000000..ee8ae9e
--- /dev/null
+++ b/plugins/removeformat/lang/zh-cn.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'zh-cn', {
+ toolbar: '清除格式'
+});
diff --git a/plugins/removeformat/lang/zh.js b/plugins/removeformat/lang/zh.js
new file mode 100644
index 0000000..19af357
--- /dev/null
+++ b/plugins/removeformat/lang/zh.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+CKEDITOR.plugins.setLang( 'removeformat', 'zh', {
+ toolbar: '清除格式'
+});
diff --git a/plugins/removeformat/plugin.js b/plugins/removeformat/plugin.js
new file mode 100644
index 0000000..cf92981
--- /dev/null
+++ b/plugins/removeformat/plugin.js
@@ -0,0 +1,173 @@
+/**
+ * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+CKEDITOR.plugins.add( 'removeformat', {
+ 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: 'removeformat', // %REMOVE_LINE_CORE%
+ init: function( editor ) {
+ editor.addCommand( 'removeFormat', CKEDITOR.plugins.removeformat.commands.removeformat );
+ editor.ui.addButton && editor.ui.addButton( 'RemoveFormat', {
+ label: editor.lang.removeformat.toolbar,
+ command: 'removeFormat',
+ toolbar: 'cleanup,10'
+ });
+ }
+});
+
+CKEDITOR.plugins.removeformat = {
+ commands: {
+ removeformat: {
+ exec: function( editor ) {
+ var tagsRegex = editor._.removeFormatRegex || ( editor._.removeFormatRegex = new RegExp( '^(?:' + editor.config.removeFormatTags.replace( /,/g, '|' ) + ')$', 'i' ) );
+
+ var removeAttributes = editor._.removeAttributes || ( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) );
+
+ var filter = CKEDITOR.plugins.removeformat.filter;
+ var ranges = editor.getSelection().getRanges( 1 ),
+ iterator = ranges.createIterator(),
+ range;
+
+ while ( ( range = iterator.getNextRange() ) ) {
+ if ( !range.collapsed )
+ range.enlarge( CKEDITOR.ENLARGE_ELEMENT );
+
+ // Bookmark the range so we can re-select it after processing.
+ var bookmark = range.createBookmark(),
+ // The style will be applied within the bookmark boundaries.
+ startNode = bookmark.startNode,
+ endNode = bookmark.endNode,
+ currentNode;
+
+ // We need to check the selection boundaries (bookmark spans) to break
+ // the code in a way that we can properly remove partially selected nodes.
+ // For example, removing a <b> style from
+ // <b>This is [some text</b> to show <b>the] problem</b>
+ // ... where [ and ] represent the selection, must result:
+ // <b>This is </b>[some text to show the]<b> problem</b>
+ // The strategy is simple, we just break the partial nodes before the
+ // removal logic, having something that could be represented this way:
+ // <b>This is </b>[<b>some text</b> to show <b>the</b>]<b> problem</b>
+
+ var breakParent = function( node ) {
+ // Let's start checking the start boundary.
+ var path = editor.elementPath( node ),
+ pathElements = path.elements;
+
+ for ( var i = 1, pathElement; pathElement = pathElements[ i ]; i++ ) {
+ if ( pathElement.equals( path.block ) || pathElement.equals( path.blockLimit ) )
+ break;
+
+ // If this element can be removed (even partially).
+ if ( tagsRegex.test( pathElement.getName() ) && filter( editor, pathElement ) )
+ node.breakParent( pathElement );
+ }
+ };
+
+ breakParent( startNode );
+ if ( endNode ) {
+ breakParent( endNode );
+
+ // Navigate through all nodes between the bookmarks.
+ currentNode = startNode.getNextSourceNode( true, CKEDITOR.NODE_ELEMENT );
+
+ while ( currentNode ) {
+ // If we have reached the end of the selection, stop looping.
+ if ( currentNode.equals( endNode ) )
+ break;
+
+ // Cache the next node to be processed. Do it now, because
+ // currentNode may be removed.
+ var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT );
+
+ // This node must not be a fake element.
+ if ( !( currentNode.getName() == 'img' && currentNode.data( 'cke-realelement' ) ) && filter( editor, currentNode ) ) {
+ // Remove elements nodes that match with this style rules.
+ if ( tagsRegex.test( currentNode.getName() ) )
+ currentNode.remove( 1 );
+ else {
+ currentNode.removeAttributes( removeAttributes );
+ editor.fire( 'removeFormatCleanup', currentNode );
+ }
+ }
+
+ currentNode = nextNode;
+ }
+ }
+
+ range.moveToBookmark( bookmark );
+ }
+
+ // The selection path may not changed, but we should force a selection
+ // change event to refresh command states, due to the above attribution change. (#9238)
+ editor.forceNextSelectionCheck();
+ editor.getSelection().selectRanges( ranges );
+ }
+ }
+ },
+
+ // Perform the remove format filters on the passed element.
+ // @param {CKEDITOR.editor} editor
+ // @param {CKEDITOR.dom.element} element
+ filter: function( editor, element ) {
+ // If editor#addRemoveFotmatFilter hasn't been executed yet value is not initialized.
+ var filters = editor._.removeFormatFilters || [];
+ for ( var i = 0; i < filters.length; i++ ) {
+ if ( filters[ i ]( element ) === false )
+ return false;
+ }
+ return true;
+ }
+};
+
+/**
+ * Add to a collection of functions to decide whether a specific
+ * element should be considered as formatting element and thus
+ * could be removed during `removeFormat` command.
+ *
+ * **Note:** Only available with the existence of `removeformat` plugin.
+ *
+ * // Don't remove empty span.
+ * editor.addRemoveFormatFilter( function( element ) {
+ * return !( element.is( 'span' ) && CKEDITOR.tools.isEmpty( element.getAttributes() ) );
+ * } );
+ *
+ * @since 3.3
+ * @member CKEDITOR.editor
+ * @param {Function} func The function to be called, which will be passed a {CKEDITOR.dom.element} element to test.
+ */
+CKEDITOR.editor.prototype.addRemoveFormatFilter = function( func ) {
+ if ( !this._.removeFormatFilters )
+ this._.removeFormatFilters = [];
+
+ this._.removeFormatFilters.push( func );
+};
+
+/**
+ * A comma separated list of elements to be removed when executing the `remove
+ * format` command. Note that only inline elements are allowed.
+ *
+ * @cfg
+ * @member CKEDITOR.config
+ */
+CKEDITOR.config.removeFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var';
+
+/**
+ * A comma separated list of elements attributes to be removed when executing
+ * the `remove format` command.
+ *
+ * @cfg
+ * @member CKEDITOR.config
+ */
+CKEDITOR.config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign';
+
+/**
+ * Fired after an element was cleaned by the removeFormat plugin.
+ *
+ * @event removeFormatCleanup
+ * @member CKEDITOR.editor
+ * @param {CKEDITOR.editor} editor This editor instance.
+ * @param data
+ * @param {CKEDITOR.dom.element} data.element The element that was cleaned up.
+ */