ckeditor/samples/old/uicolor.html
author indvd00m (gotoindvdum[at]gmail[dot]com)
Thu, 15 Dec 2016 18:10:20 +0300
changeset 0 44d330dccc59
permissions -rw-r--r--
Init sample
indvd00m@0
     1
<!DOCTYPE html>
indvd00m@0
     2
<!--
indvd00m@0
     3
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
indvd00m@0
     4
For licensing, see LICENSE.md or http://ckeditor.com/license
indvd00m@0
     5
-->
indvd00m@0
     6
<html>
indvd00m@0
     7
<head>
indvd00m@0
     8
	<meta charset="utf-8">
indvd00m@0
     9
	<title>UI Color Picker &mdash; CKEditor Sample</title>
indvd00m@0
    10
	<script src="../../ckeditor.js"></script>
indvd00m@0
    11
	<link rel="stylesheet" href="sample.css">
indvd00m@0
    12
</head>
indvd00m@0
    13
<body>
indvd00m@0
    14
	<h1 class="samples">
indvd00m@0
    15
		<a href="index.html">CKEditor Samples</a> &raquo; UI Color
indvd00m@0
    16
	</h1>
indvd00m@0
    17
	<div class="warning deprecated">
indvd00m@0
    18
		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>.
indvd00m@0
    19
	</div>
indvd00m@0
    20
	<div class="description">
indvd00m@0
    21
		<p>
indvd00m@0
    22
			This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements
indvd00m@0
    23
			with a CKEditor instance with an option to change the color of its user interface.<br>
indvd00m@0
    24
			<strong>Note:</strong>The UI skin color feature depends on the CKEditor skin
indvd00m@0
    25
			compatibility. The Moono and Kama skins are examples of skins that work with it.
indvd00m@0
    26
		</p>
indvd00m@0
    27
	</div>
indvd00m@0
    28
	<form action="sample_posteddata.php" method="post">
indvd00m@0
    29
	<p>
indvd00m@0
    30
		This editor instance has a UI color value defined in configuration to change the skin color,
indvd00m@0
    31
		To specify the color of the user interface, set the <code>uiColor</code> property:
indvd00m@0
    32
	</p>
indvd00m@0
    33
	<pre class="samples">
indvd00m@0
    34
CKEDITOR.replace( '<em>textarea_id</em>', {
indvd00m@0
    35
	<strong>uiColor: '#14B8C4'</strong>
indvd00m@0
    36
});</pre>
indvd00m@0
    37
	<p>
indvd00m@0
    38
		Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
indvd00m@0
    39
		the <code>&lt;textarea&gt;</code> element to be replaced.
indvd00m@0
    40
	</p>
indvd00m@0
    41
	<p>
indvd00m@0
    42
		<textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
indvd00m@0
    43
		<script>
indvd00m@0
    44
indvd00m@0
    45
			// Replace the <textarea id="editor"> with an CKEditor
indvd00m@0
    46
			// instance, using default configurations.
indvd00m@0
    47
			CKEDITOR.replace( 'editor1', {
indvd00m@0
    48
				uiColor: '#14B8C4',
indvd00m@0
    49
				toolbar: [
indvd00m@0
    50
					[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
indvd00m@0
    51
					[ 'FontSize', 'TextColor', 'BGColor' ]
indvd00m@0
    52
				]
indvd00m@0
    53
			});
indvd00m@0
    54
indvd00m@0
    55
		</script>
indvd00m@0
    56
	</p>
indvd00m@0
    57
	<p>
indvd00m@0
    58
		<input type="submit" value="Submit">
indvd00m@0
    59
	</p>
indvd00m@0
    60
	</form>
indvd00m@0
    61
	<div id="footer">
indvd00m@0
    62
		<hr>
indvd00m@0
    63
		<p>
indvd00m@0
    64
			CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
indvd00m@0
    65
		</p>
indvd00m@0
    66
		<p id="copy">
indvd00m@0
    67
			Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
indvd00m@0
    68
			Knabben. All rights reserved.
indvd00m@0
    69
		</p>
indvd00m@0
    70
	</div>
indvd00m@0
    71
</body>
indvd00m@0
    72
</html>