summaryrefslogtreecommitdiff
path: root/plugins/preview
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/preview')
-rw-r--r--plugins/preview/icons/preview-rtl.pngbin0 -> 849 bytes
-rw-r--r--plugins/preview/icons/preview.pngbin0 -> 858 bytes
-rw-r--r--plugins/preview/lang/af.js7
-rw-r--r--plugins/preview/lang/ar.js7
-rw-r--r--plugins/preview/lang/bg.js7
-rw-r--r--plugins/preview/lang/bn.js7
-rw-r--r--plugins/preview/lang/bs.js7
-rw-r--r--plugins/preview/lang/ca.js7
-rw-r--r--plugins/preview/lang/cs.js7
-rw-r--r--plugins/preview/lang/cy.js7
-rw-r--r--plugins/preview/lang/da.js7
-rw-r--r--plugins/preview/lang/de.js7
-rw-r--r--plugins/preview/lang/el.js7
-rw-r--r--plugins/preview/lang/en-au.js7
-rw-r--r--plugins/preview/lang/en-ca.js7
-rw-r--r--plugins/preview/lang/en-gb.js7
-rw-r--r--plugins/preview/lang/en.js7
-rw-r--r--plugins/preview/lang/eo.js7
-rw-r--r--plugins/preview/lang/es.js7
-rw-r--r--plugins/preview/lang/et.js7
-rw-r--r--plugins/preview/lang/eu.js7
-rw-r--r--plugins/preview/lang/fa.js7
-rw-r--r--plugins/preview/lang/fi.js7
-rw-r--r--plugins/preview/lang/fo.js7
-rw-r--r--plugins/preview/lang/fr-ca.js7
-rw-r--r--plugins/preview/lang/fr.js7
-rw-r--r--plugins/preview/lang/gl.js7
-rw-r--r--plugins/preview/lang/gu.js7
-rw-r--r--plugins/preview/lang/he.js7
-rw-r--r--plugins/preview/lang/hi.js7
-rw-r--r--plugins/preview/lang/hr.js7
-rw-r--r--plugins/preview/lang/hu.js7
-rw-r--r--plugins/preview/lang/is.js7
-rw-r--r--plugins/preview/lang/it.js7
-rw-r--r--plugins/preview/lang/ja.js7
-rw-r--r--plugins/preview/lang/ka.js7
-rw-r--r--plugins/preview/lang/km.js7
-rw-r--r--plugins/preview/lang/ko.js7
-rw-r--r--plugins/preview/lang/ku.js7
-rw-r--r--plugins/preview/lang/lt.js7
-rw-r--r--plugins/preview/lang/lv.js7
-rw-r--r--plugins/preview/lang/mk.js7
-rw-r--r--plugins/preview/lang/mn.js7
-rw-r--r--plugins/preview/lang/ms.js7
-rw-r--r--plugins/preview/lang/nb.js7
-rw-r--r--plugins/preview/lang/nl.js7
-rw-r--r--plugins/preview/lang/no.js7
-rw-r--r--plugins/preview/lang/pl.js7
-rw-r--r--plugins/preview/lang/pt-br.js7
-rw-r--r--plugins/preview/lang/pt.js7
-rw-r--r--plugins/preview/lang/ro.js7
-rw-r--r--plugins/preview/lang/ru.js7
-rw-r--r--plugins/preview/lang/si.js7
-rw-r--r--plugins/preview/lang/sk.js7
-rw-r--r--plugins/preview/lang/sl.js7
-rw-r--r--plugins/preview/lang/sq.js7
-rw-r--r--plugins/preview/lang/sr-latn.js7
-rw-r--r--plugins/preview/lang/sr.js7
-rw-r--r--plugins/preview/lang/sv.js7
-rw-r--r--plugins/preview/lang/th.js7
-rw-r--r--plugins/preview/lang/tr.js7
-rw-r--r--plugins/preview/lang/ug.js7
-rw-r--r--plugins/preview/lang/uk.js7
-rw-r--r--plugins/preview/lang/vi.js7
-rw-r--r--plugins/preview/lang/zh-cn.js7
-rw-r--r--plugins/preview/lang/zh.js7
-rw-r--r--plugins/preview/plugin.js138
-rw-r--r--plugins/preview/preview.html10
68 files changed, 596 insertions, 0 deletions
diff --git a/plugins/preview/icons/preview-rtl.png b/plugins/preview/icons/preview-rtl.png
new file mode 100644
index 0000000..68f8b59
--- /dev/null
+++ b/plugins/preview/icons/preview-rtl.png
Binary files differ
diff --git a/plugins/preview/icons/preview.png b/plugins/preview/icons/preview.png
new file mode 100644
index 0000000..e69d001
--- /dev/null
+++ b/plugins/preview/icons/preview.png
Binary files differ
diff --git a/plugins/preview/lang/af.js b/plugins/preview/lang/af.js
new file mode 100644
index 0000000..b9b52fa
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'af', {
+ preview: 'Voorbeeld'
+});
diff --git a/plugins/preview/lang/ar.js b/plugins/preview/lang/ar.js
new file mode 100644
index 0000000..c866af5
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ar', {
+ preview: 'معاينة الصفحة'
+});
diff --git a/plugins/preview/lang/bg.js b/plugins/preview/lang/bg.js
new file mode 100644
index 0000000..0176631
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'bg', {
+ preview: 'Преглед'
+});
diff --git a/plugins/preview/lang/bn.js b/plugins/preview/lang/bn.js
new file mode 100644
index 0000000..334aa4e
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'bn', {
+ preview: 'প্রিভিউ'
+});
diff --git a/plugins/preview/lang/bs.js b/plugins/preview/lang/bs.js
new file mode 100644
index 0000000..8b0c3d7
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'bs', {
+ preview: 'Prikaži'
+});
diff --git a/plugins/preview/lang/ca.js b/plugins/preview/lang/ca.js
new file mode 100644
index 0000000..a415928
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ca', {
+ preview: 'Visualització prèvia'
+});
diff --git a/plugins/preview/lang/cs.js b/plugins/preview/lang/cs.js
new file mode 100644
index 0000000..96aaab7
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'cs', {
+ preview: 'Náhled'
+});
diff --git a/plugins/preview/lang/cy.js b/plugins/preview/lang/cy.js
new file mode 100644
index 0000000..9f3cbd5
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'cy', {
+ preview: 'Rhagolwg'
+});
diff --git a/plugins/preview/lang/da.js b/plugins/preview/lang/da.js
new file mode 100644
index 0000000..79a849b
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'da', {
+ preview: 'Vis eksempel'
+});
diff --git a/plugins/preview/lang/de.js b/plugins/preview/lang/de.js
new file mode 100644
index 0000000..2db4119
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'de', {
+ preview: 'Vorschau'
+});
diff --git a/plugins/preview/lang/el.js b/plugins/preview/lang/el.js
new file mode 100644
index 0000000..d8e7af1
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'el', {
+ preview: 'Προεπισκόπιση'
+});
diff --git a/plugins/preview/lang/en-au.js b/plugins/preview/lang/en-au.js
new file mode 100644
index 0000000..2f03fad
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'en-au', {
+ preview: 'Preview'
+});
diff --git a/plugins/preview/lang/en-ca.js b/plugins/preview/lang/en-ca.js
new file mode 100644
index 0000000..5e9ac18
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'en-ca', {
+ preview: 'Preview'
+});
diff --git a/plugins/preview/lang/en-gb.js b/plugins/preview/lang/en-gb.js
new file mode 100644
index 0000000..257293e
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'en-gb', {
+ preview: 'Preview'
+});
diff --git a/plugins/preview/lang/en.js b/plugins/preview/lang/en.js
new file mode 100644
index 0000000..cd6bce0
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'en', {
+ preview: 'Preview'
+});
diff --git a/plugins/preview/lang/eo.js b/plugins/preview/lang/eo.js
new file mode 100644
index 0000000..4787cdd
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'eo', {
+ preview: 'Vidigi Aspekton'
+});
diff --git a/plugins/preview/lang/es.js b/plugins/preview/lang/es.js
new file mode 100644
index 0000000..fd8dc40
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'es', {
+ preview: 'Vista Previa'
+});
diff --git a/plugins/preview/lang/et.js b/plugins/preview/lang/et.js
new file mode 100644
index 0000000..d0435fe
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'et', {
+ preview: 'Eelvaade'
+});
diff --git a/plugins/preview/lang/eu.js b/plugins/preview/lang/eu.js
new file mode 100644
index 0000000..0aabb0c
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'eu', {
+ preview: 'Aurrebista'
+});
diff --git a/plugins/preview/lang/fa.js b/plugins/preview/lang/fa.js
new file mode 100644
index 0000000..5f7101e
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'fa', {
+ preview: 'پیشنمایش'
+});
diff --git a/plugins/preview/lang/fi.js b/plugins/preview/lang/fi.js
new file mode 100644
index 0000000..4738dea
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'fi', {
+ preview: 'Esikatsele'
+});
diff --git a/plugins/preview/lang/fo.js b/plugins/preview/lang/fo.js
new file mode 100644
index 0000000..0ee9515
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'fo', {
+ preview: 'Frumsýning'
+});
diff --git a/plugins/preview/lang/fr-ca.js b/plugins/preview/lang/fr-ca.js
new file mode 100644
index 0000000..7ae9f6f
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'fr-ca', {
+ preview: 'Prévisualiser'
+});
diff --git a/plugins/preview/lang/fr.js b/plugins/preview/lang/fr.js
new file mode 100644
index 0000000..d4ed5f7
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'fr', {
+ preview: 'Aperçu'
+});
diff --git a/plugins/preview/lang/gl.js b/plugins/preview/lang/gl.js
new file mode 100644
index 0000000..c99edd6
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'gl', {
+ preview: 'Vista previa'
+});
diff --git a/plugins/preview/lang/gu.js b/plugins/preview/lang/gu.js
new file mode 100644
index 0000000..b4f1277
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'gu', {
+ preview: 'પૂર્વદર્શન'
+});
diff --git a/plugins/preview/lang/he.js b/plugins/preview/lang/he.js
new file mode 100644
index 0000000..99391a3
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'he', {
+ preview: 'תצוגה מקדימה'
+});
diff --git a/plugins/preview/lang/hi.js b/plugins/preview/lang/hi.js
new file mode 100644
index 0000000..29af69e
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'hi', {
+ preview: 'प्रीव्यू'
+});
diff --git a/plugins/preview/lang/hr.js b/plugins/preview/lang/hr.js
new file mode 100644
index 0000000..22cc227
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'hr', {
+ preview: 'Pregledaj'
+});
diff --git a/plugins/preview/lang/hu.js b/plugins/preview/lang/hu.js
new file mode 100644
index 0000000..8d7f2ff
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'hu', {
+ preview: 'Előnézet'
+});
diff --git a/plugins/preview/lang/is.js b/plugins/preview/lang/is.js
new file mode 100644
index 0000000..5ff4cf4
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'is', {
+ preview: 'Forskoða'
+});
diff --git a/plugins/preview/lang/it.js b/plugins/preview/lang/it.js
new file mode 100644
index 0000000..887118d
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'it', {
+ preview: 'Anteprima'
+});
diff --git a/plugins/preview/lang/ja.js b/plugins/preview/lang/ja.js
new file mode 100644
index 0000000..9071e87
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ja', {
+ preview: 'プレビュー'
+});
diff --git a/plugins/preview/lang/ka.js b/plugins/preview/lang/ka.js
new file mode 100644
index 0000000..b81d911
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ka', {
+ preview: 'გადახედვა'
+});
diff --git a/plugins/preview/lang/km.js b/plugins/preview/lang/km.js
new file mode 100644
index 0000000..6ad2b66
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'km', {
+ preview: 'មើលសាកល្បង'
+});
diff --git a/plugins/preview/lang/ko.js b/plugins/preview/lang/ko.js
new file mode 100644
index 0000000..90e1cc0
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ko', {
+ preview: '미리보기'
+});
diff --git a/plugins/preview/lang/ku.js b/plugins/preview/lang/ku.js
new file mode 100644
index 0000000..2ee73fd
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ku', {
+ preview: 'پێشبینین'
+});
diff --git a/plugins/preview/lang/lt.js b/plugins/preview/lang/lt.js
new file mode 100644
index 0000000..895945a
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'lt', {
+ preview: 'Peržiūra'
+});
diff --git a/plugins/preview/lang/lv.js b/plugins/preview/lang/lv.js
new file mode 100644
index 0000000..33d5e5d
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'lv', {
+ preview: 'Priekšskatīt'
+});
diff --git a/plugins/preview/lang/mk.js b/plugins/preview/lang/mk.js
new file mode 100644
index 0000000..c5784cf
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'mk', {
+ preview: 'Preview' // MISSING
+});
diff --git a/plugins/preview/lang/mn.js b/plugins/preview/lang/mn.js
new file mode 100644
index 0000000..1c5e24b
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'mn', {
+ preview: 'Уридчлан харах'
+});
diff --git a/plugins/preview/lang/ms.js b/plugins/preview/lang/ms.js
new file mode 100644
index 0000000..7e6ba1b
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ms', {
+ preview: 'Prebiu'
+});
diff --git a/plugins/preview/lang/nb.js b/plugins/preview/lang/nb.js
new file mode 100644
index 0000000..0b17b3a
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'nb', {
+ preview: 'Forhåndsvis'
+});
diff --git a/plugins/preview/lang/nl.js b/plugins/preview/lang/nl.js
new file mode 100644
index 0000000..688168c
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'nl', {
+ preview: 'Voorbeeld'
+});
diff --git a/plugins/preview/lang/no.js b/plugins/preview/lang/no.js
new file mode 100644
index 0000000..758aee1
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'no', {
+ preview: 'Forhåndsvis'
+});
diff --git a/plugins/preview/lang/pl.js b/plugins/preview/lang/pl.js
new file mode 100644
index 0000000..10b3491
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'pl', {
+ preview: 'Podgląd'
+});
diff --git a/plugins/preview/lang/pt-br.js b/plugins/preview/lang/pt-br.js
new file mode 100644
index 0000000..c94da32
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'pt-br', {
+ preview: 'Visualizar'
+});
diff --git a/plugins/preview/lang/pt.js b/plugins/preview/lang/pt.js
new file mode 100644
index 0000000..999a593
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'pt', {
+ preview: 'Pré-visualizar'
+});
diff --git a/plugins/preview/lang/ro.js b/plugins/preview/lang/ro.js
new file mode 100644
index 0000000..98ad1c3
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ro', {
+ preview: 'Previzualizare'
+});
diff --git a/plugins/preview/lang/ru.js b/plugins/preview/lang/ru.js
new file mode 100644
index 0000000..bc45ff2
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ru', {
+ preview: 'Предварительный просмотр'
+});
diff --git a/plugins/preview/lang/si.js b/plugins/preview/lang/si.js
new file mode 100644
index 0000000..fee9a77
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'si', {
+ preview: 'නැවත '
+});
diff --git a/plugins/preview/lang/sk.js b/plugins/preview/lang/sk.js
new file mode 100644
index 0000000..13d6c5f
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'sk', {
+ preview: 'Náhľad'
+});
diff --git a/plugins/preview/lang/sl.js b/plugins/preview/lang/sl.js
new file mode 100644
index 0000000..5c2422b
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'sl', {
+ preview: 'Predogled'
+});
diff --git a/plugins/preview/lang/sq.js b/plugins/preview/lang/sq.js
new file mode 100644
index 0000000..c076dfd
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'sq', {
+ preview: 'Parashiko'
+});
diff --git a/plugins/preview/lang/sr-latn.js b/plugins/preview/lang/sr-latn.js
new file mode 100644
index 0000000..667bb7b
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'sr-latn', {
+ preview: 'Izgled stranice'
+});
diff --git a/plugins/preview/lang/sr.js b/plugins/preview/lang/sr.js
new file mode 100644
index 0000000..1038bd5
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'sr', {
+ preview: 'Изглед странице'
+});
diff --git a/plugins/preview/lang/sv.js b/plugins/preview/lang/sv.js
new file mode 100644
index 0000000..7965706
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'sv', {
+ preview: 'Förhandsgranska'
+});
diff --git a/plugins/preview/lang/th.js b/plugins/preview/lang/th.js
new file mode 100644
index 0000000..5cd7975
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'th', {
+ preview: 'ดูหน้าเอกสารตัวอย่าง'
+});
diff --git a/plugins/preview/lang/tr.js b/plugins/preview/lang/tr.js
new file mode 100644
index 0000000..06bc656
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'tr', {
+ preview: 'Ön İzleme'
+});
diff --git a/plugins/preview/lang/ug.js b/plugins/preview/lang/ug.js
new file mode 100644
index 0000000..49a7f8e
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'ug', {
+ preview: 'ئالدىن كۆزەت'
+});
diff --git a/plugins/preview/lang/uk.js b/plugins/preview/lang/uk.js
new file mode 100644
index 0000000..21b9c67
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'uk', {
+ preview: 'Попередній перегляд'
+});
diff --git a/plugins/preview/lang/vi.js b/plugins/preview/lang/vi.js
new file mode 100644
index 0000000..fa0890c
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'vi', {
+ preview: 'Xem trước'
+});
diff --git a/plugins/preview/lang/zh-cn.js b/plugins/preview/lang/zh-cn.js
new file mode 100644
index 0000000..8d1834e
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'zh-cn', {
+ preview: '预览'
+});
diff --git a/plugins/preview/lang/zh.js b/plugins/preview/lang/zh.js
new file mode 100644
index 0000000..3c07d79
--- /dev/null
+++ b/plugins/preview/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( 'preview', 'zh', {
+ preview: '預覽'
+});
diff --git a/plugins/preview/plugin.js b/plugins/preview/plugin.js
new file mode 100644
index 0000000..f618107
--- /dev/null
+++ b/plugins/preview/plugin.js
@@ -0,0 +1,138 @@
+/**
+ * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+/**
+ * @fileOverview Preview plugin.
+ */
+
+(function() {
+ var pluginPath;
+
+ var previewCmd = { modes:{wysiwyg:1,source:1 },
+ canUndo: false,
+ readOnly: 1,
+ exec: function( editor ) {
+ var sHTML,
+ config = editor.config,
+ baseTag = config.baseHref ? '<base href="' + config.baseHref + '"/>' : '',
+ eventData;
+
+ if ( config.fullPage ) {
+ sHTML = editor.getData().replace( /<head>/, '$&' + baseTag ).replace( /[^>]*(?=<\/title>)/, '$& &mdash; ' + editor.lang.preview.preview );
+ } else {
+ var bodyHtml = '<body ',
+ body = editor.document && editor.document.getBody();
+
+ if ( body ) {
+ if ( body.getAttribute( 'id' ) )
+ bodyHtml += 'id="' + body.getAttribute( 'id' ) + '" ';
+ if ( body.getAttribute( 'class' ) )
+ bodyHtml += 'class="' + body.getAttribute( 'class' ) + '" ';
+ }
+
+ bodyHtml += '>';
+
+ sHTML = editor.config.docType + '<html dir="' + editor.config.contentsLangDirection + '">' +
+ '<head>' +
+ baseTag +
+ '<title>' + editor.lang.preview.preview + '</title>' +
+ CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) +
+ '</head>' + bodyHtml +
+ editor.getData() +
+ '</body></html>';
+ }
+
+ var iWidth = 640,
+ // 800 * 0.8,
+ iHeight = 420,
+ // 600 * 0.7,
+ iLeft = 80; // (800 - 0.8 * 800) /2 = 800 * 0.1.
+ try {
+ var screen = window.screen;
+ iWidth = Math.round( screen.width * 0.8 );
+ iHeight = Math.round( screen.height * 0.7 );
+ iLeft = Math.round( screen.width * 0.1 );
+ } catch ( e ) {}
+
+ // (#9907) Allow data manipulation before preview is displayed.
+ // Also don't open the preview window when event cancelled.
+ if ( !editor.fire( 'contentPreview', eventData = { dataValue: sHTML } ) )
+ return false;
+
+ var sOpenUrl = '';
+ if ( CKEDITOR.env.ie ) {
+ window._cke_htmlToLoad = eventData.dataValue;
+ sOpenUrl = 'javascript:void( (function(){' +
+ 'document.open();' +
+ // Support for custom document.domain.
+ // Strip comments and replace parent with window.opener in the function body.
+ ( '(' + CKEDITOR.tools.fixDomain + ')();' ).replace( /\/\/.*?\n/g, '' ).replace( /parent\./g, 'window.opener.' ) +
+ 'document.write( window.opener._cke_htmlToLoad );' +
+ 'document.close();' +
+ 'window.opener._cke_htmlToLoad = null;' +
+ '})() )';
+ }
+
+ // With Firefox only, we need to open a special preview page, so
+ // anchors will work properly on it. (#9047)
+ if ( CKEDITOR.env.gecko ) {
+ window._cke_htmlToLoad = eventData.dataValue;
+ sOpenUrl = pluginPath + 'preview.html';
+ }
+
+ var oWindow = window.open( sOpenUrl, null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' +
+ iWidth + ',height=' + iHeight + ',left=' + iLeft );
+
+ if ( !CKEDITOR.env.ie && !CKEDITOR.env.gecko ) {
+ var doc = oWindow.document;
+ doc.open();
+ doc.write( eventData.dataValue );
+ doc.close();
+
+ // Chrome will need this to show the embedded. (#8016)
+ CKEDITOR.env.webkit && setTimeout( function() {
+ doc.body.innerHTML += '';
+ }, 0 );
+ }
+
+ return true;
+ }
+ };
+
+ var pluginName = 'preview';
+
+ // Register a plugin named "preview".
+ CKEDITOR.plugins.add( pluginName, {
+ 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: 'preview,preview-rtl', // %REMOVE_LINE_CORE%
+ init: function( editor ) {
+
+ // Preview is not used for the inline creator.
+ if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE )
+ return;
+
+ pluginPath = this.path;
+
+ editor.addCommand( pluginName, previewCmd );
+ editor.ui.addButton && editor.ui.addButton( 'Preview', {
+ label: editor.lang.preview.preview,
+ command: pluginName,
+ toolbar: 'document,40'
+ });
+ }
+ });
+})();
+
+/**
+ * Event fired when executing `preview` command, which allows additional data manipulation.
+ * With this event, the raw HTML content of the preview window to be displayed can be altered
+ * or modified.
+ *
+ * @event contentPreview
+ * @member CKEDITOR
+ * @param {CKEDITOR.editor} editor This editor instance.
+ * @param data
+ * @param {String} data.dataValue The data that will go to the preview.
+ */
diff --git a/plugins/preview/preview.html b/plugins/preview/preview.html
new file mode 100644
index 0000000..d6c4937
--- /dev/null
+++ b/plugins/preview/preview.html
@@ -0,0 +1,10 @@
+<script>
+
+var doc = document;
+doc.open();
+doc.write( window.opener._cke_htmlToLoad );
+doc.close();
+
+delete window.opener._cke_htmlToLoad;
+
+</script>