]> git.0d.be Git - panikdb.git/blob - panikdb/static/ckeditor/ckeditor/samples/uicolor.html
cb613111ebda15819a3ec224f36a7ff55a8583cb
[panikdb.git] / panikdb / static / ckeditor / ckeditor / samples / uicolor.html
1 <!DOCTYPE html>\r
2 <!--\r
3 Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
4 For licensing, see LICENSE.md or http://ckeditor.com/license\r
5 -->\r
6 <html>\r
7 <head>\r
8         <title>UI Color Picker &mdash; 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
12 </head>\r
13 <body>\r
14         <h1 class="samples">\r
15                 <a href="index.html">CKEditor Samples</a> &raquo; UI Color\r
16         </h1>\r
17         <div class="description">\r
18                 <p>\r
19                         This sample shows how to automatically replace <code>&lt;textarea&gt;</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
23                 </p>\r
24         </div>\r
25         <form action="sample_posteddata.php" method="post">\r
26         <p>\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
29         </p>\r
30         <pre class="samples">\r
31 CKEDITOR.replace( '<em>textarea_id</em>', {\r
32         <strong>uiColor: '#14B8C4'</strong>\r
33 });</pre>\r
34         <p>\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>&lt;textarea&gt;</code> element to be replaced.\r
37         </p>\r
38         <p>\r
39                 <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>\r
40                 <script>\r
41 \r
42                         // Replace the <textarea id="editor"> with an CKEditor\r
43                         // instance, using default configurations.\r
44                         CKEDITOR.replace( 'editor1', {\r
45                                 uiColor: '#14B8C4',\r
46                                 toolbar: [\r
47                                         [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],\r
48                                         [ 'FontSize', 'TextColor', 'BGColor' ]\r
49                                 ]\r
50                         });\r
51 \r
52                 </script>\r
53         </p>\r
54         <p>\r
55                 <input type="submit" value="Submit">\r
56         </p>\r
57         </form>\r
58         <div id="footer">\r
59                 <hr>\r
60                 <p>\r
61                         CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
62                 </p>\r
63                 <p id="copy">\r
64                         Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
65                         Knabben. All rights reserved.\r
66                 </p>\r
67         </div>\r
68 </body>\r
69 </html>\r