aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/sourcearea
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2017-01-20 00:55:51 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2017-01-20 00:55:51 +0100
commitc63493c899de714b05b0521bb38aab60d19030ef (patch)
treefcb2b261afa0f3c2bd6b48929b64724c71192bae /sources/plugins/sourcearea
downloadludivine-ckeditor-component-c63493c899de714b05b0521bb38aab60d19030ef.tar.gz
ludivine-ckeditor-component-c63493c899de714b05b0521bb38aab60d19030ef.tar.zst
ludivine-ckeditor-component-c63493c899de714b05b0521bb38aab60d19030ef.zip
Validation initiale4.6.2.1
Diffstat (limited to 'sources/plugins/sourcearea')
-rw-r--r--sources/plugins/sourcearea/icons/hidpi/source-rtl.pngbin0 -> 1018 bytes
-rw-r--r--sources/plugins/sourcearea/icons/hidpi/source.pngbin0 -> 1041 bytes
-rw-r--r--sources/plugins/sourcearea/icons/source-rtl.pngbin0 -> 565 bytes
-rw-r--r--sources/plugins/sourcearea/icons/source.pngbin0 -> 571 bytes
-rw-r--r--sources/plugins/sourcearea/lang/af.js7
-rw-r--r--sources/plugins/sourcearea/lang/ar.js7
-rw-r--r--sources/plugins/sourcearea/lang/az.js7
-rw-r--r--sources/plugins/sourcearea/lang/bg.js7
-rw-r--r--sources/plugins/sourcearea/lang/bn.js7
-rw-r--r--sources/plugins/sourcearea/lang/bs.js7
-rw-r--r--sources/plugins/sourcearea/lang/ca.js7
-rw-r--r--sources/plugins/sourcearea/lang/cs.js7
-rw-r--r--sources/plugins/sourcearea/lang/cy.js7
-rw-r--r--sources/plugins/sourcearea/lang/da.js7
-rw-r--r--sources/plugins/sourcearea/lang/de-ch.js7
-rw-r--r--sources/plugins/sourcearea/lang/de.js7
-rw-r--r--sources/plugins/sourcearea/lang/el.js7
-rw-r--r--sources/plugins/sourcearea/lang/en-au.js7
-rw-r--r--sources/plugins/sourcearea/lang/en-ca.js7
-rw-r--r--sources/plugins/sourcearea/lang/en-gb.js7
-rw-r--r--sources/plugins/sourcearea/lang/en.js7
-rw-r--r--sources/plugins/sourcearea/lang/eo.js7
-rw-r--r--sources/plugins/sourcearea/lang/es.js7
-rw-r--r--sources/plugins/sourcearea/lang/et.js7
-rw-r--r--sources/plugins/sourcearea/lang/eu.js7
-rw-r--r--sources/plugins/sourcearea/lang/fa.js7
-rw-r--r--sources/plugins/sourcearea/lang/fi.js7
-rw-r--r--sources/plugins/sourcearea/lang/fo.js7
-rw-r--r--sources/plugins/sourcearea/lang/fr-ca.js7
-rw-r--r--sources/plugins/sourcearea/lang/fr.js7
-rw-r--r--sources/plugins/sourcearea/lang/gl.js7
-rw-r--r--sources/plugins/sourcearea/lang/gu.js7
-rw-r--r--sources/plugins/sourcearea/lang/he.js7
-rw-r--r--sources/plugins/sourcearea/lang/hi.js7
-rw-r--r--sources/plugins/sourcearea/lang/hr.js7
-rw-r--r--sources/plugins/sourcearea/lang/hu.js7
-rw-r--r--sources/plugins/sourcearea/lang/id.js7
-rw-r--r--sources/plugins/sourcearea/lang/is.js7
-rw-r--r--sources/plugins/sourcearea/lang/it.js7
-rw-r--r--sources/plugins/sourcearea/lang/ja.js7
-rw-r--r--sources/plugins/sourcearea/lang/ka.js7
-rw-r--r--sources/plugins/sourcearea/lang/km.js7
-rw-r--r--sources/plugins/sourcearea/lang/ko.js7
-rw-r--r--sources/plugins/sourcearea/lang/ku.js7
-rw-r--r--sources/plugins/sourcearea/lang/lt.js7
-rw-r--r--sources/plugins/sourcearea/lang/lv.js7
-rw-r--r--sources/plugins/sourcearea/lang/mk.js7
-rw-r--r--sources/plugins/sourcearea/lang/mn.js7
-rw-r--r--sources/plugins/sourcearea/lang/ms.js7
-rw-r--r--sources/plugins/sourcearea/lang/nb.js7
-rw-r--r--sources/plugins/sourcearea/lang/nl.js7
-rw-r--r--sources/plugins/sourcearea/lang/no.js7
-rw-r--r--sources/plugins/sourcearea/lang/oc.js7
-rw-r--r--sources/plugins/sourcearea/lang/pl.js7
-rw-r--r--sources/plugins/sourcearea/lang/pt-br.js7
-rw-r--r--sources/plugins/sourcearea/lang/pt.js7
-rw-r--r--sources/plugins/sourcearea/lang/ro.js7
-rw-r--r--sources/plugins/sourcearea/lang/ru.js7
-rw-r--r--sources/plugins/sourcearea/lang/si.js7
-rw-r--r--sources/plugins/sourcearea/lang/sk.js7
-rw-r--r--sources/plugins/sourcearea/lang/sl.js7
-rw-r--r--sources/plugins/sourcearea/lang/sq.js7
-rw-r--r--sources/plugins/sourcearea/lang/sr-latn.js7
-rw-r--r--sources/plugins/sourcearea/lang/sr.js7
-rw-r--r--sources/plugins/sourcearea/lang/sv.js7
-rw-r--r--sources/plugins/sourcearea/lang/th.js7
-rw-r--r--sources/plugins/sourcearea/lang/tr.js7
-rw-r--r--sources/plugins/sourcearea/lang/tt.js7
-rw-r--r--sources/plugins/sourcearea/lang/ug.js7
-rw-r--r--sources/plugins/sourcearea/lang/uk.js7
-rw-r--r--sources/plugins/sourcearea/lang/vi.js7
-rw-r--r--sources/plugins/sourcearea/lang/zh-cn.js7
-rw-r--r--sources/plugins/sourcearea/lang/zh.js7
-rw-r--r--sources/plugins/sourcearea/plugin.js168
74 files changed, 651 insertions, 0 deletions
diff --git a/sources/plugins/sourcearea/icons/hidpi/source-rtl.png b/sources/plugins/sourcearea/icons/hidpi/source-rtl.png
new file mode 100644
index 0000000..c95da32
--- /dev/null
+++ b/sources/plugins/sourcearea/icons/hidpi/source-rtl.png
Binary files differ
diff --git a/sources/plugins/sourcearea/icons/hidpi/source.png b/sources/plugins/sourcearea/icons/hidpi/source.png
new file mode 100644
index 0000000..2f3eae1
--- /dev/null
+++ b/sources/plugins/sourcearea/icons/hidpi/source.png
Binary files differ
diff --git a/sources/plugins/sourcearea/icons/source-rtl.png b/sources/plugins/sourcearea/icons/source-rtl.png
new file mode 100644
index 0000000..5353eee
--- /dev/null
+++ b/sources/plugins/sourcearea/icons/source-rtl.png
Binary files differ
diff --git a/sources/plugins/sourcearea/icons/source.png b/sources/plugins/sourcearea/icons/source.png
new file mode 100644
index 0000000..0783e85
--- /dev/null
+++ b/sources/plugins/sourcearea/icons/source.png
Binary files differ
diff --git a/sources/plugins/sourcearea/lang/af.js b/sources/plugins/sourcearea/lang/af.js
new file mode 100644
index 0000000..a5a499e
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/af.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'af', {
6 toolbar: 'Bron'
7} );
diff --git a/sources/plugins/sourcearea/lang/ar.js b/sources/plugins/sourcearea/lang/ar.js
new file mode 100644
index 0000000..40808ac
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ar.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ar', {
6 toolbar: 'المصدر'
7} );
diff --git a/sources/plugins/sourcearea/lang/az.js b/sources/plugins/sourcearea/lang/az.js
new file mode 100644
index 0000000..9aeff4b
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/az.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'az', {
6 toolbar: 'HTML mənbəyini göstər'
7} );
diff --git a/sources/plugins/sourcearea/lang/bg.js b/sources/plugins/sourcearea/lang/bg.js
new file mode 100644
index 0000000..4902635
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/bg.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'bg', {
6 toolbar: 'Изходен код'
7} );
diff --git a/sources/plugins/sourcearea/lang/bn.js b/sources/plugins/sourcearea/lang/bn.js
new file mode 100644
index 0000000..b050458
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/bn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'bn', {
6 toolbar: 'উৎস'
7} );
diff --git a/sources/plugins/sourcearea/lang/bs.js b/sources/plugins/sourcearea/lang/bs.js
new file mode 100644
index 0000000..c0b5e09
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/bs.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'bs', {
6 toolbar: 'HTML kôd'
7} );
diff --git a/sources/plugins/sourcearea/lang/ca.js b/sources/plugins/sourcearea/lang/ca.js
new file mode 100644
index 0000000..c958e9b
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ca.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ca', {
6 toolbar: 'Codi font'
7} );
diff --git a/sources/plugins/sourcearea/lang/cs.js b/sources/plugins/sourcearea/lang/cs.js
new file mode 100644
index 0000000..dccf574
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/cs.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'cs', {
6 toolbar: 'Zdroj'
7} );
diff --git a/sources/plugins/sourcearea/lang/cy.js b/sources/plugins/sourcearea/lang/cy.js
new file mode 100644
index 0000000..b8ce201
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/cy.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'cy', {
6 toolbar: 'HTML'
7} );
diff --git a/sources/plugins/sourcearea/lang/da.js b/sources/plugins/sourcearea/lang/da.js
new file mode 100644
index 0000000..bf02c14
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/da.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'da', {
6 toolbar: 'Kilde'
7} );
diff --git a/sources/plugins/sourcearea/lang/de-ch.js b/sources/plugins/sourcearea/lang/de-ch.js
new file mode 100644
index 0000000..c039623
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/de-ch.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'de-ch', {
6 toolbar: 'Quellcode'
7} );
diff --git a/sources/plugins/sourcearea/lang/de.js b/sources/plugins/sourcearea/lang/de.js
new file mode 100644
index 0000000..dfa995f
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/de.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'de', {
6 toolbar: 'Quellcode'
7} );
diff --git a/sources/plugins/sourcearea/lang/el.js b/sources/plugins/sourcearea/lang/el.js
new file mode 100644
index 0000000..0a8d8a8
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/el.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'el', {
6 toolbar: 'Κώδικας'
7} );
diff --git a/sources/plugins/sourcearea/lang/en-au.js b/sources/plugins/sourcearea/lang/en-au.js
new file mode 100644
index 0000000..10e7843
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/en-au.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'en-au', {
6 toolbar: 'Source'
7} );
diff --git a/sources/plugins/sourcearea/lang/en-ca.js b/sources/plugins/sourcearea/lang/en-ca.js
new file mode 100644
index 0000000..f5e61da
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/en-ca.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'en-ca', {
6 toolbar: 'Source'
7} );
diff --git a/sources/plugins/sourcearea/lang/en-gb.js b/sources/plugins/sourcearea/lang/en-gb.js
new file mode 100644
index 0000000..5d876aa
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/en-gb.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'en-gb', {
6 toolbar: 'Source'
7} );
diff --git a/sources/plugins/sourcearea/lang/en.js b/sources/plugins/sourcearea/lang/en.js
new file mode 100644
index 0000000..90a24e9
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/en.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'en', {
6 toolbar: 'Source'
7} );
diff --git a/sources/plugins/sourcearea/lang/eo.js b/sources/plugins/sourcearea/lang/eo.js
new file mode 100644
index 0000000..613de63
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/eo.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'eo', {
6 toolbar: 'Fonto'
7} );
diff --git a/sources/plugins/sourcearea/lang/es.js b/sources/plugins/sourcearea/lang/es.js
new file mode 100644
index 0000000..014a967
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/es.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'es', {
6 toolbar: 'Fuente HTML'
7} );
diff --git a/sources/plugins/sourcearea/lang/et.js b/sources/plugins/sourcearea/lang/et.js
new file mode 100644
index 0000000..9a73ece
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/et.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'et', {
6 toolbar: 'Lähtekood'
7} );
diff --git a/sources/plugins/sourcearea/lang/eu.js b/sources/plugins/sourcearea/lang/eu.js
new file mode 100644
index 0000000..350b3e2
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/eu.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'eu', {
6 toolbar: 'Iturburua'
7} );
diff --git a/sources/plugins/sourcearea/lang/fa.js b/sources/plugins/sourcearea/lang/fa.js
new file mode 100644
index 0000000..40757c0
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/fa.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'fa', {
6 toolbar: 'منبع'
7} );
diff --git a/sources/plugins/sourcearea/lang/fi.js b/sources/plugins/sourcearea/lang/fi.js
new file mode 100644
index 0000000..fba260e
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/fi.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'fi', {
6 toolbar: 'Koodi'
7} );
diff --git a/sources/plugins/sourcearea/lang/fo.js b/sources/plugins/sourcearea/lang/fo.js
new file mode 100644
index 0000000..f384c40
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/fo.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'fo', {
6 toolbar: 'Kelda'
7} );
diff --git a/sources/plugins/sourcearea/lang/fr-ca.js b/sources/plugins/sourcearea/lang/fr-ca.js
new file mode 100644
index 0000000..707686f
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/fr-ca.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'fr-ca', {
6 toolbar: 'Source'
7} );
diff --git a/sources/plugins/sourcearea/lang/fr.js b/sources/plugins/sourcearea/lang/fr.js
new file mode 100644
index 0000000..57d4f5f
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/fr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'fr', {
6 toolbar: 'Source'
7} );
diff --git a/sources/plugins/sourcearea/lang/gl.js b/sources/plugins/sourcearea/lang/gl.js
new file mode 100644
index 0000000..c68a1da
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/gl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'gl', {
6 toolbar: 'Orixe'
7} );
diff --git a/sources/plugins/sourcearea/lang/gu.js b/sources/plugins/sourcearea/lang/gu.js
new file mode 100644
index 0000000..a1c9b66
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/gu.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'gu', {
6 toolbar: 'મૂળ કે પ્રાથમિક દસ્તાવેજ'
7} );
diff --git a/sources/plugins/sourcearea/lang/he.js b/sources/plugins/sourcearea/lang/he.js
new file mode 100644
index 0000000..8b0f28d
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/he.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'he', {
6 toolbar: 'מקור'
7} );
diff --git a/sources/plugins/sourcearea/lang/hi.js b/sources/plugins/sourcearea/lang/hi.js
new file mode 100644
index 0000000..0d8cc1b
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/hi.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'hi', {
6 toolbar: 'सोर्स'
7} );
diff --git a/sources/plugins/sourcearea/lang/hr.js b/sources/plugins/sourcearea/lang/hr.js
new file mode 100644
index 0000000..dca2202
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/hr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'hr', {
6 toolbar: 'Kôd'
7} );
diff --git a/sources/plugins/sourcearea/lang/hu.js b/sources/plugins/sourcearea/lang/hu.js
new file mode 100644
index 0000000..9628fe4
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/hu.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'hu', {
6 toolbar: 'Forráskód'
7} );
diff --git a/sources/plugins/sourcearea/lang/id.js b/sources/plugins/sourcearea/lang/id.js
new file mode 100644
index 0000000..f8e25c5
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/id.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'id', {
6 toolbar: 'Sumber'
7} );
diff --git a/sources/plugins/sourcearea/lang/is.js b/sources/plugins/sourcearea/lang/is.js
new file mode 100644
index 0000000..a90207d
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/is.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'is', {
6 toolbar: 'Kóði'
7} );
diff --git a/sources/plugins/sourcearea/lang/it.js b/sources/plugins/sourcearea/lang/it.js
new file mode 100644
index 0000000..b445a21
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/it.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'it', {
6 toolbar: 'Sorgente'
7} );
diff --git a/sources/plugins/sourcearea/lang/ja.js b/sources/plugins/sourcearea/lang/ja.js
new file mode 100644
index 0000000..3f026b6
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ja.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ja', {
6 toolbar: 'ソース'
7} );
diff --git a/sources/plugins/sourcearea/lang/ka.js b/sources/plugins/sourcearea/lang/ka.js
new file mode 100644
index 0000000..f06b130
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ka.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ka', {
6 toolbar: 'კოდები'
7} );
diff --git a/sources/plugins/sourcearea/lang/km.js b/sources/plugins/sourcearea/lang/km.js
new file mode 100644
index 0000000..9cd4769
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/km.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'km', {
6 toolbar: 'អក្សរ​កូដ'
7} );
diff --git a/sources/plugins/sourcearea/lang/ko.js b/sources/plugins/sourcearea/lang/ko.js
new file mode 100644
index 0000000..26fe7ff
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ko.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ko', {
6 toolbar: '소스'
7} );
diff --git a/sources/plugins/sourcearea/lang/ku.js b/sources/plugins/sourcearea/lang/ku.js
new file mode 100644
index 0000000..a3f1263
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ku.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ku', {
6 toolbar: 'سەرچاوە'
7} );
diff --git a/sources/plugins/sourcearea/lang/lt.js b/sources/plugins/sourcearea/lang/lt.js
new file mode 100644
index 0000000..c3304dc
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/lt.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'lt', {
6 toolbar: 'Šaltinis'
7} );
diff --git a/sources/plugins/sourcearea/lang/lv.js b/sources/plugins/sourcearea/lang/lv.js
new file mode 100644
index 0000000..c3ef246
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/lv.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'lv', {
6 toolbar: 'HTML kods'
7} );
diff --git a/sources/plugins/sourcearea/lang/mk.js b/sources/plugins/sourcearea/lang/mk.js
new file mode 100644
index 0000000..eeccabd
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/mk.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'mk', {
6 toolbar: 'Source' // MISSING
7} );
diff --git a/sources/plugins/sourcearea/lang/mn.js b/sources/plugins/sourcearea/lang/mn.js
new file mode 100644
index 0000000..a7c1288
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/mn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'mn', {
6 toolbar: 'Код'
7} );
diff --git a/sources/plugins/sourcearea/lang/ms.js b/sources/plugins/sourcearea/lang/ms.js
new file mode 100644
index 0000000..f09ac53
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ms.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ms', {
6 toolbar: 'Sumber'
7} );
diff --git a/sources/plugins/sourcearea/lang/nb.js b/sources/plugins/sourcearea/lang/nb.js
new file mode 100644
index 0000000..87b75a8
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/nb.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'nb', {
6 toolbar: 'Kilde'
7} );
diff --git a/sources/plugins/sourcearea/lang/nl.js b/sources/plugins/sourcearea/lang/nl.js
new file mode 100644
index 0000000..dc61f34
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/nl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'nl', {
6 toolbar: 'Broncode'
7} );
diff --git a/sources/plugins/sourcearea/lang/no.js b/sources/plugins/sourcearea/lang/no.js
new file mode 100644
index 0000000..86f386d
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/no.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'no', {
6 toolbar: 'Kilde'
7} );
diff --git a/sources/plugins/sourcearea/lang/oc.js b/sources/plugins/sourcearea/lang/oc.js
new file mode 100644
index 0000000..90f418f
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/oc.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'oc', {
6 toolbar: 'Font'
7} );
diff --git a/sources/plugins/sourcearea/lang/pl.js b/sources/plugins/sourcearea/lang/pl.js
new file mode 100644
index 0000000..48734a8
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/pl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'pl', {
6 toolbar: 'Źródło dokumentu'
7} );
diff --git a/sources/plugins/sourcearea/lang/pt-br.js b/sources/plugins/sourcearea/lang/pt-br.js
new file mode 100644
index 0000000..54e3ce1
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/pt-br.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'pt-br', {
6 toolbar: 'Código-Fonte'
7} );
diff --git a/sources/plugins/sourcearea/lang/pt.js b/sources/plugins/sourcearea/lang/pt.js
new file mode 100644
index 0000000..7fd6c23
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/pt.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'pt', {
6 toolbar: 'Fonte'
7} );
diff --git a/sources/plugins/sourcearea/lang/ro.js b/sources/plugins/sourcearea/lang/ro.js
new file mode 100644
index 0000000..5eb00c4
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ro.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ro', {
6 toolbar: 'Sursa'
7} );
diff --git a/sources/plugins/sourcearea/lang/ru.js b/sources/plugins/sourcearea/lang/ru.js
new file mode 100644
index 0000000..304695c
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ru.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ru', {
6 toolbar: 'Источник'
7} );
diff --git a/sources/plugins/sourcearea/lang/si.js b/sources/plugins/sourcearea/lang/si.js
new file mode 100644
index 0000000..22996eb
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/si.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'si', {
6 toolbar: 'මුලාශ්‍රය'
7} );
diff --git a/sources/plugins/sourcearea/lang/sk.js b/sources/plugins/sourcearea/lang/sk.js
new file mode 100644
index 0000000..aed1c61
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/sk.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'sk', {
6 toolbar: 'Zdroj'
7} );
diff --git a/sources/plugins/sourcearea/lang/sl.js b/sources/plugins/sourcearea/lang/sl.js
new file mode 100644
index 0000000..b9a2b5f
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/sl.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'sl', {
6 toolbar: 'Izvorna koda'
7} );
diff --git a/sources/plugins/sourcearea/lang/sq.js b/sources/plugins/sourcearea/lang/sq.js
new file mode 100644
index 0000000..f4512ce
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/sq.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'sq', {
6 toolbar: 'Burimi'
7} );
diff --git a/sources/plugins/sourcearea/lang/sr-latn.js b/sources/plugins/sourcearea/lang/sr-latn.js
new file mode 100644
index 0000000..0d8ebd7
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/sr-latn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'sr-latn', {
6 toolbar: 'Kôd'
7} );
diff --git a/sources/plugins/sourcearea/lang/sr.js b/sources/plugins/sourcearea/lang/sr.js
new file mode 100644
index 0000000..a872556
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/sr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'sr', {
6 toolbar: 'Kôд'
7} );
diff --git a/sources/plugins/sourcearea/lang/sv.js b/sources/plugins/sourcearea/lang/sv.js
new file mode 100644
index 0000000..a05d49d
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/sv.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'sv', {
6 toolbar: 'Källa'
7} );
diff --git a/sources/plugins/sourcearea/lang/th.js b/sources/plugins/sourcearea/lang/th.js
new file mode 100644
index 0000000..4afb9bc
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/th.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'th', {
6 toolbar: 'ดูรหัส HTML'
7} );
diff --git a/sources/plugins/sourcearea/lang/tr.js b/sources/plugins/sourcearea/lang/tr.js
new file mode 100644
index 0000000..7a9f70a
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/tr.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'tr', {
6 toolbar: 'Kaynak'
7} );
diff --git a/sources/plugins/sourcearea/lang/tt.js b/sources/plugins/sourcearea/lang/tt.js
new file mode 100644
index 0000000..ca05df1
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/tt.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'tt', {
6 toolbar: 'Чыганак'
7} );
diff --git a/sources/plugins/sourcearea/lang/ug.js b/sources/plugins/sourcearea/lang/ug.js
new file mode 100644
index 0000000..791c596
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/ug.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'ug', {
6 toolbar: 'مەنبە'
7} );
diff --git a/sources/plugins/sourcearea/lang/uk.js b/sources/plugins/sourcearea/lang/uk.js
new file mode 100644
index 0000000..905af47
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/uk.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'uk', {
6 toolbar: 'Джерело'
7} );
diff --git a/sources/plugins/sourcearea/lang/vi.js b/sources/plugins/sourcearea/lang/vi.js
new file mode 100644
index 0000000..df7eb93
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/vi.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'vi', {
6 toolbar: 'Mã HTML'
7} );
diff --git a/sources/plugins/sourcearea/lang/zh-cn.js b/sources/plugins/sourcearea/lang/zh-cn.js
new file mode 100644
index 0000000..a98c869
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/zh-cn.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'zh-cn', {
6 toolbar: '源码'
7} );
diff --git a/sources/plugins/sourcearea/lang/zh.js b/sources/plugins/sourcearea/lang/zh.js
new file mode 100644
index 0000000..043dd11
--- /dev/null
+++ b/sources/plugins/sourcearea/lang/zh.js
@@ -0,0 +1,7 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'sourcearea', 'zh', {
6 toolbar: '原始碼'
7} );
diff --git a/sources/plugins/sourcearea/plugin.js b/sources/plugins/sourcearea/plugin.js
new file mode 100644
index 0000000..837bc30
--- /dev/null
+++ b/sources/plugins/sourcearea/plugin.js
@@ -0,0 +1,168 @@
1/**
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6/**
7 * @fileOverview The Source Editing Area plugin. It registers the "source" editing
8 * mode, which displays raw HTML data being edited in the editor.
9 */
10
11( function() {
12 CKEDITOR.plugins.add( 'sourcearea', {
13 // jscs:disable maximumLineLength
14 lang: 'af,ar,az,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,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%
15 // jscs:enable maximumLineLength
16 icons: 'source,source-rtl', // %REMOVE_LINE_CORE%
17 hidpi: true, // %REMOVE_LINE_CORE%
18 init: function( editor ) {
19 // Source mode in inline editors is only available through the "sourcedialog" plugin.
20 if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE )
21 return;
22
23 var sourcearea = CKEDITOR.plugins.sourcearea;
24
25 editor.addMode( 'source', function( callback ) {
26 var contentsSpace = editor.ui.space( 'contents' ),
27 textarea = contentsSpace.getDocument().createElement( 'textarea' );
28
29 textarea.setStyles(
30 CKEDITOR.tools.extend( {
31 // IE7 has overflow the <textarea> from wrapping table cell.
32 width: CKEDITOR.env.ie7Compat ? '99%' : '100%',
33 height: '100%',
34 resize: 'none',
35 outline: 'none',
36 'text-align': 'left'
37 },
38 CKEDITOR.tools.cssVendorPrefix( 'tab-size', editor.config.sourceAreaTabSize || 4 ) ) );
39
40 // Make sure that source code is always displayed LTR,
41 // regardless of editor language (#10105).
42 textarea.setAttribute( 'dir', 'ltr' );
43
44 textarea.addClass( 'cke_source' ).addClass( 'cke_reset' ).addClass( 'cke_enable_context_menu' );
45
46 editor.ui.space( 'contents' ).append( textarea );
47
48 var editable = editor.editable( new sourceEditable( editor, textarea ) );
49
50 // Fill the textarea with the current editor data.
51 editable.setData( editor.getData( 1 ) );
52
53 // Having to make <textarea> fixed sized to conquer the following bugs:
54 // 1. The textarea height/width='100%' doesn't constraint to the 'td' in IE6/7.
55 // 2. Unexpected vertical-scrolling behavior happens whenever focus is moving out of editor
56 // if text content within it has overflowed. (#4762)
57 if ( CKEDITOR.env.ie ) {
58 editable.attachListener( editor, 'resize', onResize, editable );
59 editable.attachListener( CKEDITOR.document.getWindow(), 'resize', onResize, editable );
60 CKEDITOR.tools.setTimeout( onResize, 0, editable );
61 }
62
63 editor.fire( 'ariaWidget', this );
64
65 callback();
66 } );
67
68 editor.addCommand( 'source', sourcearea.commands.source );
69
70 if ( editor.ui.addButton ) {
71 editor.ui.addButton( 'Source', {
72 label: editor.lang.sourcearea.toolbar,
73 command: 'source',
74 toolbar: 'mode,10'
75 } );
76 }
77
78 editor.on( 'mode', function() {
79 editor.getCommand( 'source' ).setState( editor.mode == 'source' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
80 } );
81
82 var needsFocusHack = CKEDITOR.env.ie && CKEDITOR.env.version == 9;
83
84 function onResize() {
85 // We have to do something with focus on IE9, because if sourcearea had focus
86 // before being resized, the caret ends somewhere in the editor UI (#11839).
87 var wasActive = needsFocusHack && this.equals( CKEDITOR.document.getActive() );
88
89 // Holder rectange size is stretched by textarea,
90 // so hide it just for a moment.
91 this.hide();
92 this.setStyle( 'height', this.getParent().$.clientHeight + 'px' );
93 this.setStyle( 'width', this.getParent().$.clientWidth + 'px' );
94 // When we have proper holder size, show textarea again.
95 this.show();
96
97 if ( wasActive )
98 this.focus();
99 }
100 }
101 } );
102
103 var sourceEditable = CKEDITOR.tools.createClass( {
104 base: CKEDITOR.editable,
105 proto: {
106 setData: function( data ) {
107 this.setValue( data );
108 this.status = 'ready';
109 this.editor.fire( 'dataReady' );
110 },
111
112 getData: function() {
113 return this.getValue();
114 },
115
116 // Insertions are not supported in source editable.
117 insertHtml: function() {},
118 insertElement: function() {},
119 insertText: function() {},
120
121 // Read-only support for textarea.
122 setReadOnly: function( isReadOnly ) {
123 this[ ( isReadOnly ? 'set' : 'remove' ) + 'Attribute' ]( 'readOnly', 'readonly' );
124 },
125
126 detach: function() {
127 sourceEditable.baseProto.detach.call( this );
128 this.clearCustomData();
129 this.remove();
130 }
131 }
132 } );
133} )();
134
135CKEDITOR.plugins.sourcearea = {
136 commands: {
137 source: {
138 modes: { wysiwyg: 1, source: 1 },
139 editorFocus: false,
140 readOnly: 1,
141 exec: function( editor ) {
142 if ( editor.mode == 'wysiwyg' )
143 editor.fire( 'saveSnapshot' );
144 editor.getCommand( 'source' ).setState( CKEDITOR.TRISTATE_DISABLED );
145 editor.setMode( editor.mode == 'source' ? 'wysiwyg' : 'source' );
146 },
147
148 canUndo: false
149 }
150 }
151};
152
153/**
154 * Controls the `tab-size` CSS property of the source editing area. Use it to set the width
155 * of the tab character in the source view. Enter an integer to denote the number of spaces
156 * that the tab will contain.
157 *
158 * **Note:** Works only with {@link #dataIndentationChars}
159 * set to `'\t'`. Please consider that not all browsers support the `tab-size` CSS
160 * property yet.
161 *
162 * // Set tab-size to 10 characters.
163 * config.sourceAreaTabSize = 10;
164 *
165 * @cfg {Number} [sourceAreaTabSize=4]
166 * @member CKEDITOR.config
167 * @see CKEDITOR.config#dataIndentationChars
168 */