1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/ckeditor/samples/old/uicolor.html Thu Dec 15 18:10:20 2016 +0300
1.3 @@ -0,0 +1,72 @@
1.4 +<!DOCTYPE html>
1.5 +<!--
1.6 +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
1.7 +For licensing, see LICENSE.md or http://ckeditor.com/license
1.8 +-->
1.9 +<html>
1.10 +<head>
1.11 + <meta charset="utf-8">
1.12 + <title>UI Color Picker — CKEditor Sample</title>
1.13 + <script src="../../ckeditor.js"></script>
1.14 + <link rel="stylesheet" href="sample.css">
1.15 +</head>
1.16 +<body>
1.17 + <h1 class="samples">
1.18 + <a href="index.html">CKEditor Samples</a> » UI Color
1.19 + </h1>
1.20 + <div class="warning deprecated">
1.21 + This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/uicolor.html">brand new version in CKEditor SDK</a>.
1.22 + </div>
1.23 + <div class="description">
1.24 + <p>
1.25 + This sample shows how to automatically replace <code><textarea></code> elements
1.26 + with a CKEditor instance with an option to change the color of its user interface.<br>
1.27 + <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin
1.28 + compatibility. The Moono and Kama skins are examples of skins that work with it.
1.29 + </p>
1.30 + </div>
1.31 + <form action="sample_posteddata.php" method="post">
1.32 + <p>
1.33 + This editor instance has a UI color value defined in configuration to change the skin color,
1.34 + To specify the color of the user interface, set the <code>uiColor</code> property:
1.35 + </p>
1.36 + <pre class="samples">
1.37 +CKEDITOR.replace( '<em>textarea_id</em>', {
1.38 + <strong>uiColor: '#14B8C4'</strong>
1.39 +});</pre>
1.40 + <p>
1.41 + Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
1.42 + the <code><textarea></code> element to be replaced.
1.43 + </p>
1.44 + <p>
1.45 + <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
1.46 + <script>
1.47 +
1.48 + // Replace the <textarea id="editor"> with an CKEditor
1.49 + // instance, using default configurations.
1.50 + CKEDITOR.replace( 'editor1', {
1.51 + uiColor: '#14B8C4',
1.52 + toolbar: [
1.53 + [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
1.54 + [ 'FontSize', 'TextColor', 'BGColor' ]
1.55 + ]
1.56 + });
1.57 +
1.58 + </script>
1.59 + </p>
1.60 + <p>
1.61 + <input type="submit" value="Submit">
1.62 + </p>
1.63 + </form>
1.64 + <div id="footer">
1.65 + <hr>
1.66 + <p>
1.67 + CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
1.68 + </p>
1.69 + <p id="copy">
1.70 + Copyright © 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
1.71 + Knabben. All rights reserved.
1.72 + </p>
1.73 + </div>
1.74 +</body>
1.75 +</html>