3 Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
\r
4 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
8 <title>UI Color Picker — CKEditor Sample</title>
\r
9 <meta charset="utf-8">
\r
10 <script src="../ckeditor.js"></script>
\r
11 <link rel="stylesheet" href="sample.css">
\r
14 <h1 class="samples">
\r
15 <a href="index.html">CKEditor Samples</a> » UI Color
\r
17 <div class="description">
\r
19 This sample shows how to automatically replace <code><textarea></code> elements
\r
20 with a CKEditor instance with an option to change the color of its user interface.<br>
\r
21 <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin
\r
22 compatibility. The Moono and Kama skins are examples of skins that work with it.
\r
25 <form action="sample_posteddata.php" method="post">
\r
27 This editor instance has a UI color value defined in configuration to change the skin color,
\r
28 To specify the color of the user interface, set the <code>uiColor</code> property:
\r
30 <pre class="samples">
\r
31 CKEDITOR.replace( '<em>textarea_id</em>', {
\r
32 <strong>uiColor: '#14B8C4'</strong>
\r
35 Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
\r
36 the <code><textarea></code> element to be replaced.
\r
39 <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>
\r
42 // Replace the <textarea id="editor"> with an CKEditor
\r
43 // instance, using default configurations.
\r
44 CKEDITOR.replace( 'editor1', {
\r
47 [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
\r
48 [ 'FontSize', 'TextColor', 'BGColor' ]
\r
55 <input type="submit" value="Submit">
\r
61 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
\r
64 Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
\r
65 Knabben. All rights reserved.
\r