]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blame - release/samples/old/uicolor.html
Upgrade to 4.5.7 and add some plugin
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / release / samples / old / uicolor.html
CommitLineData
7adcb81e
IB
1<!DOCTYPE html>\r
2<!--\r
3b35bd27 3Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
7adcb81e
IB
4For licensing, see LICENSE.md or http://ckeditor.com/license\r
5-->\r
6<html>\r
7<head>\r
8 <meta charset="utf-8">\r
9 <title>UI Color Picker &mdash; CKEditor Sample</title>\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="warning deprecated">\r
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>.\r
19 </div>\r
20 <div class="description">\r
21 <p>\r
22 This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements\r
23 with a CKEditor instance with an option to change the color of its user interface.<br>\r
24 <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin\r
25 compatibility. The Moono and Kama skins are examples of skins that work with it.\r
26 </p>\r
27 </div>\r
28 <form action="sample_posteddata.php" method="post">\r
29 <p>\r
30 This editor instance has a UI color value defined in configuration to change the skin color,\r
31 To specify the color of the user interface, set the <code>uiColor</code> property:\r
32 </p>\r
33 <pre class="samples">\r
34CKEDITOR.replace( '<em>textarea_id</em>', {\r
35 <strong>uiColor: '#14B8C4'</strong>\r
36});</pre>\r
37 <p>\r
38 Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of\r
39 the <code>&lt;textarea&gt;</code> element to be replaced.\r
40 </p>\r
41 <p>\r
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>\r
43 <script>\r
44\r
45 // Replace the <textarea id="editor"> with an CKEditor\r
46 // instance, using default configurations.\r
47 CKEDITOR.replace( 'editor1', {\r
48 uiColor: '#14B8C4',\r
49 toolbar: [\r
50 [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],\r
51 [ 'FontSize', 'TextColor', 'BGColor' ]\r
52 ]\r
53 });\r
54\r
55 </script>\r
56 </p>\r
57 <p>\r
58 <input type="submit" value="Submit">\r
59 </p>\r
60 </form>\r
61 <div id="footer">\r
62 <hr>\r
63 <p>\r
64 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
65 </p>\r
66 <p id="copy">\r
3b35bd27 67 Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
7adcb81e
IB
68 Knabben. All rights reserved.\r
69 </p>\r
70 </div>\r
71</body>\r
72</html>\r