summaryrefslogtreecommitdiff
path: root/samples/assets
diff options
context:
space:
mode:
Diffstat (limited to 'samples/assets')
-rw-r--r--samples/assets/inlineall/logo.pngbin0 -> 4411 bytes
-rw-r--r--samples/assets/outputxhtml/outputxhtml.css204
-rw-r--r--samples/assets/posteddata.php59
-rw-r--r--samples/assets/sample.css3
-rw-r--r--samples/assets/sample.jpgbin0 -> 17932 bytes
-rw-r--r--samples/assets/uilanguages/languages.js85
6 files changed, 351 insertions, 0 deletions
diff --git a/samples/assets/inlineall/logo.png b/samples/assets/inlineall/logo.png
new file mode 100644
index 0000000..334e7ac
--- /dev/null
+++ b/samples/assets/inlineall/logo.png
Binary files differ
diff --git a/samples/assets/outputxhtml/outputxhtml.css b/samples/assets/outputxhtml/outputxhtml.css
new file mode 100644
index 0000000..eab9374
--- /dev/null
+++ b/samples/assets/outputxhtml/outputxhtml.css
@@ -0,0 +1,204 @@
+/*
+ * Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.html or http://ckeditor.com/license
+ *
+ * Styles used by the XHTML 1.1 sample page (xhtml.html).
+ */
+
+/**
+ * Basic definitions for the editing area.
+ */
+body
+{
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 80%;
+ color: #000000;
+ background-color: #ffffff;
+ padding: 5px;
+ margin: 0px;
+}
+
+/**
+ * Core styles.
+ */
+
+.Bold
+{
+ font-weight: bold;
+}
+
+.Italic
+{
+ font-style: italic;
+}
+
+.Underline
+{
+ text-decoration: underline;
+}
+
+.StrikeThrough
+{
+ text-decoration: line-through;
+}
+
+.Subscript
+{
+ vertical-align: sub;
+ font-size: smaller;
+}
+
+.Superscript
+{
+ vertical-align: super;
+ font-size: smaller;
+}
+
+/**
+ * Font faces.
+ */
+
+.FontComic
+{
+ font-family: 'Comic Sans MS';
+}
+
+.FontCourier
+{
+ font-family: 'Courier New';
+}
+
+.FontTimes
+{
+ font-family: 'Times New Roman';
+}
+
+/**
+ * Font sizes.
+ */
+
+.FontSmaller
+{
+ font-size: smaller;
+}
+
+.FontLarger
+{
+ font-size: larger;
+}
+
+.FontSmall
+{
+ font-size: 8pt;
+}
+
+.FontBig
+{
+ font-size: 14pt;
+}
+
+.FontDouble
+{
+ font-size: 200%;
+}
+
+/**
+ * Font colors.
+ */
+.FontColor1
+{
+ color: #ff9900;
+}
+
+.FontColor2
+{
+ color: #0066cc;
+}
+
+.FontColor3
+{
+ color: #ff0000;
+}
+
+.FontColor1BG
+{
+ background-color: #ff9900;
+}
+
+.FontColor2BG
+{
+ background-color: #0066cc;
+}
+
+.FontColor3BG
+{
+ background-color: #ff0000;
+}
+
+/**
+ * Indentation.
+ */
+
+.Indent1
+{
+ margin-left: 40px;
+}
+
+.Indent2
+{
+ margin-left: 80px;
+}
+
+.Indent3
+{
+ margin-left: 120px;
+}
+
+/**
+ * Alignment.
+ */
+
+.JustifyLeft
+{
+ text-align: left;
+}
+
+.JustifyRight
+{
+ text-align: right;
+}
+
+.JustifyCenter
+{
+ text-align: center;
+}
+
+.JustifyFull
+{
+ text-align: justify;
+}
+
+/**
+ * Other.
+ */
+
+code
+{
+ font-family: courier, monospace;
+ background-color: #eeeeee;
+ padding-left: 1px;
+ padding-right: 1px;
+ border: #c0c0c0 1px solid;
+}
+
+kbd
+{
+ padding: 0px 1px 0px 1px;
+ border-width: 1px 2px 2px 1px;
+ border-style: solid;
+}
+
+blockquote
+{
+ color: #808080;
+}
diff --git a/samples/assets/posteddata.php b/samples/assets/posteddata.php
new file mode 100644
index 0000000..bb45656
--- /dev/null
+++ b/samples/assets/posteddata.php
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<?php
+/*
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+?>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Sample &mdash; CKEditor</title>
+ <link rel="stylesheet" href="sample.css">
+</head>
+<body>
+ <h1 class="samples">
+ CKEditor &mdash; Posted Data
+ </h1>
+ <table border="1" cellspacing="0" id="outputSample">
+ <colgroup><col width="120"></colgroup>
+ <thead>
+ <tr>
+ <th>Field&nbsp;Name</th>
+ <th>Value</th>
+ </tr>
+ </thead>
+<?php
+
+if (!empty($_POST))
+{
+ foreach ( $_POST as $key => $value )
+ {
+ if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
+ continue;
+
+ if ( get_magic_quotes_gpc() )
+ $value = htmlspecialchars( stripslashes((string)$value) );
+ else
+ $value = htmlspecialchars( (string)$value );
+?>
+ <tr>
+ <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th>
+ <td><pre class="samples"><?php echo $value; ?></pre></td>
+ </tr>
+ <?php
+ }
+}
+?>
+ </table>
+ <div id="footer">
+ <hr>
+ <p>
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
+ </p>
+ <p id="copy">
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
+ </p>
+ </div>
+</body>
+</html>
diff --git a/samples/assets/sample.css b/samples/assets/sample.css
new file mode 100644
index 0000000..eca3fc7
--- /dev/null
+++ b/samples/assets/sample.css
@@ -0,0 +1,3 @@
+/**
+ * Required by tests (dom/document.html).
+ */ \ No newline at end of file
diff --git a/samples/assets/sample.jpg b/samples/assets/sample.jpg
new file mode 100644
index 0000000..a4a77fa
--- /dev/null
+++ b/samples/assets/sample.jpg
Binary files differ
diff --git a/samples/assets/uilanguages/languages.js b/samples/assets/uilanguages/languages.js
new file mode 100644
index 0000000..f0c536d
--- /dev/null
+++ b/samples/assets/uilanguages/languages.js
@@ -0,0 +1,85 @@
+/**
+ * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.html or http://ckeditor.com/license
+ */
+
+var CKEDITOR_LANGS = (function() {
+ var langs = {
+ af: 'Afrikaans',
+ ar: 'Arabic',
+ bg: 'Bulgarian',
+ bn: 'Bengali/Bangla',
+ bs: 'Bosnian',
+ ca: 'Catalan',
+ cs: 'Czech',
+ cy: 'Welsh',
+ da: 'Danish',
+ de: 'German',
+ el: 'Greek',
+ en: 'English',
+ 'en-au': 'English (Australia)',
+ 'en-ca': 'English (Canadian)',
+ 'en-gb': 'English (United Kingdom)',
+ eo: 'Esperanto',
+ es: 'Spanish',
+ et: 'Estonian',
+ eu: 'Basque',
+ fa: 'Persian',
+ fi: 'Finnish',
+ fo: 'Faroese',
+ fr: 'French',
+ 'fr-ca': 'French (Canada)',
+ gl: 'Galician',
+ gu: 'Gujarati',
+ he: 'Hebrew',
+ hi: 'Hindi',
+ hr: 'Croatian',
+ hu: 'Hungarian',
+ is: 'Icelandic',
+ it: 'Italian',
+ ja: 'Japanese',
+ ka: 'Georgian',
+ km: 'Khmer',
+ ko: 'Korean',
+ ku : 'Kurdish',
+ lt: 'Lithuanian',
+ lv: 'Latvian',
+ mk: 'Macedonian',
+ mn: 'Mongolian',
+ ms: 'Malay',
+ nb: 'Norwegian Bokmal',
+ nl: 'Dutch',
+ no: 'Norwegian',
+ pl: 'Polish',
+ pt: 'Portuguese (Portugal)',
+ 'pt-br': 'Portuguese (Brazil)',
+ ro: 'Romanian',
+ ru: 'Russian',
+ si: 'Sinhala',
+ sk: 'Slovak',
+ sq : 'Albanian',
+ sl: 'Slovenian',
+ sr: 'Serbian (Cyrillic)',
+ 'sr-latn': 'Serbian (Latin)',
+ sv: 'Swedish',
+ th: 'Thai',
+ tr: 'Turkish',
+ ug: 'Uighur',
+ uk: 'Ukrainian',
+ vi: 'Vietnamese',
+ zh: 'Chinese Traditional',
+ 'zh-cn': 'Chinese Simplified'
+ };
+
+ var langsArray = [];
+
+ for ( var code in CKEDITOR.lang.languages ) {
+ langsArray.push({ code: code, name: ( langs[ code ] || code ) } );
+ }
+
+ langsArray.sort( function( a, b ) {
+ return ( a.name < b.name ) ? -1 : 1;
+ });
+
+ return langsArray;
+})();